Skip to content

Conversation

lovisaberggren
Copy link
Collaborator

Proposed changes

Adds IPA validation to run on optional-spec-validations workflow. Creates an issue if the validation fails, similarly to the Postman validation.

Jira ticket: CLOUDP-294708

cp -rf "openapi-foas.json" "./tools/postman/openapi/atlas-api.json"
pushd tools/postman
make convert_to_collection
npx -- @stoplight/spectral-cli@"${SPECTRAL_VERSION}" lint ./tmp/collection.json --ruleset=./validation/spectral.yaml
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wasn't sure why we run a pinned version for Postman here, passed as a variable (or where this variable is coming from). For IPA validations it will use the version from the package.json (same as the validation run on PRs/locally). We can update the Postman validation to use the same approach as IPA validation unless there is a reason for this approach here

@lovisaberggren lovisaberggren marked this pull request as ready for review January 16, 2025 14:36
@lovisaberggren lovisaberggren requested a review from a team as a code owner January 16, 2025 14:36
@lovisaberggren lovisaberggren merged commit 93e7ca7 into main Jan 16, 2025
11 checks passed
@lovisaberggren lovisaberggren deleted the CLOUDP-294708 branch January 16, 2025 14:42
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