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

fix: instantiate Ajv2020 for OAS 3.1 #1009

Merged

Conversation

luisfidelis
Copy link

@luisfidelis luisfidelis commented Nov 8, 2024

hey, i was testing the version 6.0.0 alpha compliant with OAS 3.1 but i couldn't get this working fine with unevaluatedProperties constraint. I checked the code and it was missing the Ajv2020 in request validator.

I changed a bit the structure by creating factories for the Ajv instance and also for the schema, both based on the openapi version. Let me know if it's not standard in the project.

Note: i don't know what's going on with codacy check, it's complaining about missing eslint config for some examples but i didn't change them.

@cdimascio cdimascio merged commit ef8e7ba into cdimascio:oas3.1 Nov 10, 2024
4 of 5 checks passed
@cdimascio
Copy link
Owner

Thanks will look to roll this into a new alpha release

@cdimascio
Copy link
Owner

cdimascio commented Nov 11, 2024

current latest alpha is express-openapi-validator@6.0.0-alpha.5 and includes this change

npm install express-openapi-validator@6.0.0-alpha.5

im very interested in feedeback regarding the validators oas3.1 support

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

Successfully merging this pull request may close these issues.

2 participants