-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Description
Which of model difinitions respects the specification 2.0 ?
First:
"ApplicationGatewayIPConfiguration": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ApplicationGatewayIPConfigurationPropertiesFormat"
},
"name": {
"type": "string",
"description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
},
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
},
"allOf": [{
"$ref": "#/definitions/SubResource"
}],
"description": "IP configuration of application gateway"
}
or second? :
"ApplicationGatewayIPConfiguration": {
"allOf": [{
"$ref": "#/definitions/SubResource"
},
{
"type": "object",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ApplicationGatewayIPConfigurationPropertiesFormat"
},
"name": {
"type": "string",
"description": "Gets name of the resource that is unique within a resource group. This name can be used to access the resource"
},
"etag": {
"type": "string",
"description": "A unique read-only string that changes whenever the resource is updated"
}
}
}],
"description": "IP configuration of application gateway"
}
The question is appeared because Swagger CodeGen ignore the first definition, but Azure Rest API uses it ( https://github.com/Azure/azure-rest-api-specs/blob/master/arm-network/2016-03-30/swagger/network.json ). In the specification we can find examples and descriptions related only to the second case.
Metadata
Metadata
Assignees
Labels
No labels