danielgtaylor / huma

Huma REST/HTTP API Framework for Golang with OpenAPI 3.1
https://huma.rocks/
MIT License
1.91k stars 139 forks source link

Errors have bogus schema #79

Closed mt35-rs closed 1 year ago

mt35-rs commented 1 year ago

The 404 handler generates an RFC 7807 application/problem+json, but it doesn't point to a valid schema. Here is a sample 404 response:

{"$schema":"http://localhost:8888/ErrorModel.json","detail":"Cannot find /ErrorModel.json","status":404,"title":"Not Found"}

The $schema field should be http://localhost:8888/schemas/ErrorModel.json. Note the presence of /schemas in the path.

mt35-rs commented 1 year ago

This should be addressed by #80.

mt35-rs commented 1 year ago

Closing because #80 was merged.