The BodyTopLevelProperties rule is mistakenly flagging paged responses
@bdefoy is already working on this.
Since Jul 24, 2024.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
The BodyTopLevelProperties check is incorrectly flagging the response in List operations, which rturn a page of data as if they were resource GET operations. There are several examples in this PR: https://github.com/Azure/azure-rest-api-specs-pr/pull/18696
To Reproduce
Steps to reproduce the behavior:
Create list operations like: https://github.com/Azure/azure-rest-api-specs-pr/blob/a6bade603572212620a6cbb906f400e19d899b1b/specification/edge/resource-manager/Microsoft.Edge/configurationmanager/preview/2024-06-01-preview/configurationmanager.json#L62-L99
Expected behavior
This check should not be applied to list operations at all - in ARM specs, having an odd number of PATH segments and a last segment that is not a path variable should prevent the rule from being applied
Screenshots
See the link above.
Desktop (please complete the following information):
n/a, this occurs in CI
Additional context
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 57
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure/azure-openapi-validator
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Azure/azure-openapi-validator#235 ·
-
Azure/azure-openapi-validator#849 · 1 assignee ·
-
Azure/azure-openapi-validator#835 · 1 assignee ·
-
Azure/azure-openapi-validator#812 · 3 comments · 1 assignee ·
-
Azure/azure-openapi-validator#809 · 2 comments · 1 assignee ·
All issues in Azure/azure-openapi-validator
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·