Azure / Azure/azure-openapi-validator
LintDiff did not catch anonymous model in ARM swagger
- Dominant language
- TypeScript
- Stars
- 53
- Forks
- 57
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
PR https://github.com/Azure/azure-rest-api-specs/pull/24998 contains Swagger with [anonymous model](https://github.com/Azure/azure-rest-api-specs/blob/52f765effde90f870a7edfd708d97918dbda82c6/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2023-07-01-preview/virtualNetworks.json#L421-L446)
There should be a rule to catch that https://github.com/Azure/azure-rest-api-specs/pull/24998, but it seems not work in above case.
CI run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2998970&view=logs&j=0574a2a6-2d0a-5ec6-40e4-4c6e2f70bea2&t=80c3e782-49f0-5d1c-70dd-cbee57bdd0c7
**To Reproduce**
Steps to reproduce the behavior:
Run LintDiff on https://github.com/Azure/azure-rest-api-specs/blob/52f765effde90f870a7edfd708d97918dbda82c6/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2023-07-01-preview/virtualNetworks.json
**Expected behavior**
LintDiff fail with error on anonymous model.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22] UnifiedPipeline 0.218.0
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.