huma icon indicating copy to clipboard operation
huma copied to clipboard

$schema in request body of input example

Open jceb opened this issue 2 years ago • 0 comments

I noticed that the $schema property is present in the request body of my endpoint input:

schema

However, this causes an error when I click on "Try it" in the API documentation interface and send the example body without removing the $schema property first. The reason is that $schema is not expected by the API and so it throws an error.

IMHO it makes sense to have the schema somewhere in the API documentation but not as part of the example body of an input. It seems most relevant in the response data.

jceb avatar May 05 '22 05:05 jceb