Azure / Azure/azure-rest-api-specs

machinelearningservices has duplicate "x-ms-discriminator-value": "uri_folder" with DataVersionBase

Open
#25,911 3 comments 0 reactions 0 assignees View on GitHub
MachineLearningServices Service Attention
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.