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

Subclassing JSONSchema validator class with OAS30Validator #48

Closed
p1c2u opened this issue Aug 25, 2022 · 1 comment
Closed

Subclassing JSONSchema validator class with OAS30Validator #48

p1c2u opened this issue Aug 25, 2022 · 1 comment

Comments

@p1c2u
Copy link
Collaborator

p1c2u commented Aug 25, 2022

OAS 3.0 is incompatible with JSON Schema because it assumes context-sensitive validation (readOnly and writeOnly for request and response), which JSON Schema doesn't support.

Subclassing jsonschema validator classes is not intended to be part of their public API but it's the only way to add context-sensitive validation support.

@p1c2u
Copy link
Collaborator Author

p1c2u commented Jun 13, 2023

With new OAS30ReadValidator and OAS30WriteValidator this is no longer the case hence closing.

@p1c2u p1c2u closed this as completed Jun 13, 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

1 participant