Skip to main content

valid-streaming-endpoint-response-type

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

Primitive types cannot be used as a default response type of streaming endpoints. Only model types are allowed.

PropertyValue
EnabledYes
Maximum SeverityError
MessageStreaming endpoint must have a model type response.
CodeAPIMATICPRE_V308
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Responses
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic streaming response type endpoint

Suggested Fixes

  • Disable streaming for the endpoint.
  • Reference an appropriate complex type for this endpoint. Define one in the custom types if it does not exist already.

For More Information