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 BodyTopLevelPropertiesOnly to support get-only APIs #709

Merged
merged 6 commits into from
Jun 14, 2024

Conversation

bdefoy
Copy link
Member

@bdefoy bdefoy commented Jun 13, 2024

BodyTopLevelProperties currently does not catch invalid top-level properties for get only APIs. This PR adds behavior to the rule to examine get operations in addition to the put and patch operations that it already examined.

Copy link
Member

@rkmanda rkmanda left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Member

@mikeharder mikeharder left a comment

Choose a reason for hiding this comment

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

Revert changes to az-dataplane.js

@bdefoy bdefoy requested a review from mikeharder June 13, 2024 20:40
@bdefoy bdefoy enabled auto-merge (squash) June 13, 2024 20:41
Copy link
Member

@mikeharder mikeharder left a comment

Choose a reason for hiding this comment

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

I think you also want to bump the package version here, so you can publish a new version after merging:

https://github.com/azure/azure-openapi-validator/blob/main/packages/rulesets/package.json#L3

@bdefoy bdefoy requested a review from mikeharder June 13, 2024 21:33
@konrad-jamrozik
Copy link
Contributor

konrad-jamrozik commented Jun 14, 2024

@bdefoy note the current deployment process is here:

@bdefoy bdefoy merged commit ceb3ad5 into main Jun 14, 2024
4 checks passed
@bdefoy bdefoy deleted the bdefoy/body-top-level-properties-get-api-support branch June 14, 2024 00: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.

4 participants