Azure / Azure/azure-rest-api-specs
machinelearningservices has duplicate "x-ms-discriminator-value": "uri_folder" with DataVersionBase
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
The `x-ms-discriminator-value`s need to be unique under DataVersionBase.
``` json
"DataImport": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/DataVersionBase"
}
],
"properties": {
"assetName": {
"description": "Name of the asset for data import job to create",
"type": "string",
"x-nullable": true
},
"source": {
"description": "Source data of the asset to import from",
"$ref": "#/definitions/DataImportSource",
"x-nullable": true
}
},
"x-ms-discriminator-value": "uri_folder",
"additionalProperties": false
},
"UriFolderDataVersion": {
"description": "uri-folder data version entity",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/DataVersionBase"
}
],
"x-ms-discriminator-value": "uri_folder",
"additionalProperties": false
},
```
Contributor guide
Research direction
Locate the machinelearningservices schema definitions for DataImport, UriFolderDataVersion, and DataVersionBase shown in the issue. Compare their x-ms-discriminator-value entries, determine the intended unique values, and run the repository's relevant specification validation to confirm that no discriminator duplicates remain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api, machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100