Open Hydrock opened 1 year ago
Perhaps it is possible to specify a scheme with a raw format? this option would suit me as well. For example, I would describe the open api scheme in the form of a template string and the plugin would poison this scheme in the ui bypassing object parsing
So far I have decided to describe the bodies of the 200 201 and 202 response codes. I will know that in fact all the answers are with code 200 - but this solution looks ugly.
Actually you should use the schema option if possible https://fastify.dev/docs/latest/Reference/Validation-and-Serialization
Prerequisites
Issue
Good day everyone.
I'm using simple protocol named as JSDOC Long story short - on every request, server response with code 200 but JSON body may contain different content (payload, errors, etc.)
I should make schema for this multiply content.
With OpenAPI we can use components:
You can try it here
Sorry, but I could not find how to realise it.
Please, help me find an answer to this question.
P.S. Do you have chat or community about this repository?