Closed RotemBot closed 6 years ago
Can you be more explicit
The body parameters don't match the parameters I defined
How do I override/cancel the default 'body'?
Do you have a model for Assignment
? if so check if the body matches it
Yes, of course I have a model assignment. I know it matches it, I want to override the default.
oh I see, the problem is body
is not overriding models. Will look into it later today
Thanks!
Also, in this example, I need 'annotators' to be an array, or json object. As you can see, it is not reflected in the result. How do I do that?
you can use array
as type https://swagger.io/docs/specification/data-models/data-types/
That doesn't work, because then you need to specify the items' type (i.e. 'string'). I've tried doing that with and without specifying items, and it did not work.
This is what happens:
Any chance you can give a full example of defining an array param through custom routes, and what it looks like in the swagger UI?
@theo4u Any update on the problem with body
?
And please can you give a full example of defining a string array as a param? (Not how to do it in a swagger file, but in a custom route definition).
going to look into this later today
This is my route definition:
This is what I get in the Swagger UI: