Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation doesn't work with JSON:API mime type #373

Open
harshveers opened this issue Apr 2, 2022 · 1 comment
Open

Validation doesn't work with JSON:API mime type #373

harshveers opened this issue Apr 2, 2022 · 1 comment

Comments

@harshveers
Copy link

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

@anttiviljami
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants