Azure / Azure/azure-sdk-tools

Validation not catching duplicate discriminator values

Open
#7,041 0 comments 0 reactions 1 assignee Claimed by @konrad-jamrozik View on GitHub
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

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.