-
Notifications
You must be signed in to change notification settings - Fork 5
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
Typos in ref ids are not detected #119
Comments
Hi, thanks for reporting! It should check for invalid refs (see openapi-schema-validator/test/test-resolve.js Line 122 in 1353040
But apparently your case falls between the cracks. I will check! Kind regards, |
ok, I checked and its a bit tricky :-) Up until now validation only checked if the specification matched the JSONschema for that specification. Since we can't validate the I have a PR in the works that adds a ref check to validation so that a specification that matches the JSONschema of OpenAPI but holds invalid refs is still marked as invalid. Kind regards, |
Released as 2.1.3 on NPM.
Kind regards, |
Great, thanks for such a quick fix! Everything looks cool now) |
Hello, it looks like your library makes a good job in finding the format issues. However, incorrect ref ids are not detected. I'm not sure if it's intended or not.
Version used: 2.1.2
Schema example:
Actual result:
"valid": true
I was using the CLI command for testing: npx -p @seriousme/openapi-schema-validator validate-api "invalid.spec.yaml"
The text was updated successfully, but these errors were encountered: