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(validate): surface all validation errors #639

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

erunion
Copy link
Member

@erunion erunion commented Oct 17, 2022

🚥 Fix #638

🧰 Changes

This updates our @readme/openapi-parser and oas-normalize dependencies to begin surfacing all validation errors in OpenAPI and Swagger validation.

@erunion erunion added bug Something isn't working command:openapi Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands labels Oct 17, 2022
@@ -50,8 +50,8 @@
"jsonpath": "^1.1.1",
"mime-types": "^2.1.35",
"node-fetch": "^2.6.1",
"oas": "^18.4.4",
"oas-normalize": "^7.0.0",
"oas": "^19.0.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing new there that's going to be used within the library, I just released a v19 last week so might as well update it here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even use oas anywhere? Nothing comes up during my quick search

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore me, it's used in the reducer.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We load it in for the reducer command as that code is in oas.

Copy link
Member

@kanadgupta kanadgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you consider this a breaking change? If so, could you rename the PR title from fix(validate) to feat(breaking/validate)?

@erunion
Copy link
Member Author

erunion commented Oct 17, 2022

@kanadgupta No I wouldn't consider this a breaking change.

@erunion erunion merged commit 39b2c61 into main Oct 17, 2022
@erunion erunion deleted the feat/surface-all-validation-errors branch October 17, 2022 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command:openapi Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question: validate command to report all validation issues instead of one at a time
2 participants