-
Notifications
You must be signed in to change notification settings - Fork 18
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
Wiretap shows violations when response object has string as null when the open API specifies nullable: true #97
Comments
what was the version of the OAS spec ? so sould be type : [string , null ] |
the version is version: 3.0.0 |
any further updates on this issue? |
The problem here is that this schema validation is performed by a dependency, not wiretap, it's being handled by github.com/santhosh-tekuri/jsonschema/v5 Code is here: https://github.com/pb33f/libopenapi-validator/blob/main/schema_validation/validate_schema.go#L126 |
should a ticket been raised ? |
Any update on supporting this? This blocks me from being able to adopt this tool. It looks like the dependency that is to blame is on v6. |
@daveshanley nullable is a mess introduced in 3.0 and removed in 3.1.0 the upgrade to the newest version https://github.com/santhosh-tekuri/jsonschema/releases/tag/v6.0.0 will not help as it is not related to json schema but to OAS directly @mdiwakar i would advise you to upgrade to OAS 3.1 if you can, otherwise the fix is a oneOf only for version 3.0 |
Specification:
nullable true is not handled correctly.
The text was updated successfully, but these errors were encountered: