huma
huma copied to clipboard
$schema in request body of input example
I noticed that the $schema
property is present in the request body of my endpoint input:
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.