SDK Error
ARM OpenAPI(swagger) specs
The model name {0} is duplicated with {1} .
Do not rely on case sensitivity to differentiate models.
February 23, 2021
February 23, 2021
In Python SDK, model names are converted to forms starting with capital. So all of "AAAA", "aaaa", "Aaaa" will be transformed to "Aaaa". So differentiating model names by their case sensitivities would break Python SDK generation.
Rename the duplicate name .
The following would be invalid:
"definitions": {
"SKU": {
"type": "string",
"description": "SKU in request"
},
"sku": {
"type": "string",
"description": "SKU in response"
}
}
The following would be valid:
"definitions": {
"requestSKU": {
"type": "string",
"description": "SKU in request"
},
"responseSKU": {
"type": "string",
"description": "SKU in response"
}
}