Azure / Azure/azure-rest-api-specs
[BUG] Discriminated set models contain same value on discriminator values in purview
@parvsaxena is already working on this.
Since Jun 5, 2024.
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 6k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/1c7df99f6a84335cfd7bf5be8c800d72c1dddbc2/specification/purview/data-plane/Azure.Analytics.Purview.Scanning/preview/2018-12-01-preview/scanningService.json
### API Spec version
2018-12-01-preview
### Describe the bug
https://github.com/Azure/azure-rest-api-specs/blob/1c7df99f6a84335cfd7bf5be8c800d72c1dddbc2/specification/purview/data-plane/Azure.Analytics.Purview.Scanning/preview/2018-12-01-preview/scanningService.json#L6368-L6386
Here we have two models in the same discriminated set but they have the same discriminator value: None
This is incorrect.
### Expected behavior
Every variant in a discriminated set should have unique discriminator values
### Actual behavior
2 of them have the same value.
### Reproduction Steps
Just check the swagger.
### Environment
Irrelevant
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.