Azure / Azure/azure-rest-api-specs

[BUG] Discriminated set models contain same value on discriminator values in purview

Open
#29,321 1 comment 0 reactions 1 assignee View on GitHub

@parvsaxena is already working on this.

Since Jun 5, 2024.

bug data-plane
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.