Validation not catching duplicate discriminator values #7041
Labels
Central-EngSys
This issue is owned by the Engineering System team.
Spec PR Tools
Tooling that runs in azure-rest-api-specs repo.
Swagger
Issues for APIView support of Swagger
TypeSpec
Issues or feature requests for tooling to support TypeSpec (Cadl)
A partner found a bug in the swagger for iotcentral 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.The text was updated successfully, but these errors were encountered: