huma
huma copied to clipboard
Bug: API doc hidden is not *real* hidden
The operation provide a hidden field that users can set to hide the endpoint from API documentation. However the is an broken feature, the corresponding schema will still display in the openapi spec. For example though the endpoint A is not in the doc, request/response schema definition will appear in the openapi spec.
Nice catch! The schemas are used for validation, so I'll have to figure out how to hide them while still keeping them around to validate the request.