Closed alexjs-dev closed 4 years ago
Hi, this is not a bug. It is possible in multiple ways:
feathers-swagger is just a helper library to create a swagger definition. And there you have to define different definitions, if that is necessary.
feathers-swagger has abilities to automatic generate stuff either by using operationsGenerators (example) or by using getOperationRefs and schemasGenerator (example) together.
Still it will be more straightforward to manually overwrite where necessary.
Hello,
I have successfully imported a mongoose model into feathers-swagger docs, and am getting correct data in all of my requests, however the data for POST request must be changed, because some fields are read-only.
Currently there is no way to do it... My tries:
swaggerSchemaProfile.properties looks like: