Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.52k stars 4.95k forks source link

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

Open ArcturusZhang opened 1 month ago

ArcturusZhang commented 1 month ago

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

zzhxiaofeng commented 1 month ago

@parvsaxena Please help have a look, thank you.