Skip to content

Conversation

@wtrocki
Copy link
Member

@wtrocki wtrocki commented Mar 17, 2025

Proposed changes

For exception management I have been manually copying downstream PR's openAPI so far. This PR automates it so you can automatically refresh exceptions based on new openapi changes.

Example:

 npm run ipa-filter-violations xgen-IPA-102-collection-identifier-camelCase https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml

Example for fixed issues (verification of exception PR):

npm run ipa-filter-violations xgen-IPA-108-delete-response-should-be-empty https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml 

> ipa-filter-violations
> node tools/spectral/ipa/scripts/filter-ipa-violations.js xgen-IPA-108-delete-response-should-be-empty https://raw.githubusercontent.com/mongodb/openapi/refs/heads/dev/openapi/.raw/v2.yaml

Filtering violations for rule ID: xgen-IPA-108-delete-response-should-be-empty
Running IPA validation...
Using remote OpenAPI file: xxx
Downloading OpenAPI file from xxx
Download complete
(node:35488) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Filtering results...
Results saved to/openapi/xgen-IPA-108-delete-response-should-be-empty-violations.md
Found 0 violations to fix
....
Results saved to /Users/w.trocki/Projects/sandbox/openapi/xgen-IPA-108-delete-request-no-body-violations.md
Found 0 violations to fix

@wtrocki wtrocki requested a review from a team as a code owner March 17, 2025 11:35
@wtrocki wtrocki merged commit b8aa96d into main Mar 18, 2025
13 checks passed
@wtrocki wtrocki deleted the task-dev-url branch March 18, 2025 12:09
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

Successfully merging this pull request may close these issues.

2 participants