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.
|Streaming endpoint must have a model type response.
|Code Generation, Developer Experience Portal, API Transformer
- 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.