openapi-backend icon indicating copy to clipboard operation
openapi-backend copied to clipboard

Validation doesn't work with JSON:API mime type

Open harshveers opened this issue 2 years ago • 1 comments

If we have mimetype of JSON:API(application/vnd.api+json), validations don't work.

harshveers avatar Apr 02 '22 17:04 harshveers

Hi @harshveers! openapi-backend currently only compiles requestBody validators for schemas listed under application/json content https://github.com/anttiviljami/openapi-backend/blob/master/src/validation.ts#L556

PRs are accepted if you feel like application/vnd.api+json should also be handled

anttiviljami avatar Aug 27 '22 07:08 anttiviljami