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

Which version of OpenAPI spec does Validate(context.Context, ...ValidationOption) method validate against? #812

Closed
andrewrowe-wk opened this issue Jun 21, 2023 · 1 comment

Comments

@andrewrowe-wk
Copy link

Hello!

When using the Validate(context.Context, ...ValidationOption) method to validate a loaded openAPI spec, which version of the spec is it validating against? From what I can tell the validation rules are hard-coded in the logic of the Go code, as opposed to validating against a particular version of the schema (for example: https://spec.openapis.org/oas/3.0/schema/2021-09-28). Am I correct in this?

@fenollp
Copy link
Collaborator

fenollp commented Jun 22, 2023

Yes but there is ongoing work to be able to validate openapiv3 documents against other versions of the openapiv3 spec => #744

@fenollp fenollp closed this as completed Jun 22, 2023
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

No branches or pull requests

2 participants