Azure / Azure/azure-openapi-validator

R2018 XmsEnumValidation is not validating the enum defined inline in the response

Open
#378 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
53
Forks
57
Avg merge
1d 23h
Merged PRs (30d)
2

Description

**Describe the bug**
`XmsEnumValidation` is not validating the enum defined inline in the response

**To Reproduce**
See an example in [this swagger](https://github.com/Azure/azure-rest-api-specs/blob/fc5c9985c2868a3064a778886bb6f422c886b933/specification/peering/resource-manager/Microsoft.Peering/stable/2022-06-01/peering.json#L97) and it is introduced by [this PR](https://github.com/Azure/azure-rest-api-specs/pull/19815), no violation of this rule found in the log of LintDiff on this PR

**Expected behavior**
Lint tool should report an error on this schema

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.