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.
Which of model difinitions respects the specification 2.0 ?
First:
or second? :
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.