Validation not catching duplicate discriminator values
Open
Central-EngSys
Spec PR Tools
Swagger
TypeSpec
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 115
Description
A partner found a [bug in the swagger for iotcentral](https://github.com/Azure/azure-rest-api-specs/issues/25931) where the same discriminator value `command` was used in two different models. Seems we don't have swagger validation to catch this, or any error wasn't required to be fixed. We should also make sure that the TypeSpec compiler/linter is checking for this case as well.
Contributor guide
Assessment
This issue has not been assessed yet.