You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, we automatically lose this valuable information when defining content (even if we use useReturnTypeSchema).
For example, for the following code:
This hinders the process of generating concise and enriched documentation. Besides, I could not find in the documentation any reference saying that if content is defined the default schema is not used. This is particularly relevant as it is not possible to achieve this schema description using annotations in the code.
The text was updated successfully, but these errors were encountered:
When defining
content
in the @ApiResponse the default schema is no longer defined in the OpenApi spec.If we annotate our endpoint using the following:
We have the following schema being generated:
However, we automatically lose this valuable information when defining
content
(even if we useuseReturnTypeSchema
).For example, for the following code:
We get the following:
This hinders the process of generating concise and enriched documentation. Besides, I could not find in the documentation any reference saying that if content is defined the default schema is not used. This is particularly relevant as it is not possible to achieve this schema description using annotations in the code.
The text was updated successfully, but these errors were encountered: