Skip to content

Commit

Permalink
Fix Duplicated model name with non-identical definitions build error
Browse files Browse the repository at this point in the history
This reverts commit 616851d and commits fixes.
  • Loading branch information
bashahee committed Jun 1, 2018
1 parent c7c452a commit d1c40f7
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,40 +289,6 @@
}
},
"definitions": {
"Resource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"description": "Azure resource name",
"readOnly": true
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
},
"location": {
"type": "string",
"description": "Resource location"
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true,
"description": "An azure resource object"
},
"TagsResource": {
"properties": {
"tags": {
Expand All @@ -348,7 +314,7 @@
},
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "../../../common/v1/types.json#/definitions/Resource"
}
],
"required": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,44 +282,6 @@
}
},
"definitions": {
"Resource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"description": "Azure resource name",
"readOnly": true
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
},
"location": {
"type": "string",
"description": "Resource location",
"x-ms-mutability": [
"create",
"read"
]
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true,
"description": "An azure resource object"
},
"TagsResource": {
"properties": {
"tags": {
Expand Down Expand Up @@ -354,7 +316,7 @@
"description": "An Application Insights web test definition.",
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "../../../common/v1/types.json#/definitions/Resource"
}
],
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,41 +255,6 @@
}
},
"definitions": {
"Resource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"description": "Azure resource name",
"readOnly": true
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
},
"location": {
"type": "string",
"description": "Resource location",
"x-ms-mutability": [
"create",
"read"
]
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"x-ms-azure-resource": true,
"description": "An azure resource object"
},
"Workbooks": {
"properties": {
"value": {
Expand All @@ -306,7 +271,7 @@
"description": "An Application Insights workbook definition.",
"allOf": [
{
"$ref": "#/definitions/Resource"
"$ref": "../../../common/v1/types.json#/definitions/Resource"
}
],
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"swagger":"2.0",
"info":{
"version":"1.0",
"title":"Common types"
},
"paths":{

},
"definitions": {
"Resource": {
"properties": {
"id": {
"type": "string",
"readOnly": true,
"description": "Azure resource Id"
},
"name": {
"type": "string",
"description": "Azure resource name",
"readOnly": true
},
"type": {
"type": "string",
"readOnly": true,
"description": "Azure resource type"
},
"location": {
"type": "string",
"description": "Resource location",
"x-ms-mutability": [
"create",
"read"
]
},
"tags": {
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"x-ms-azure-resource": true,
"description": "An azure resource object"
}
},
"parameters":{

}
}
1 change: 0 additions & 1 deletion specification/sql/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ input-file:
- Microsoft.Sql/2015-05-01-preview/blobAuditingPolicies.json
- Microsoft.Sql/2015-05-01-preview/encryptionProtectors.json
- Microsoft.Sql/2015-05-01-preview/failoverGroups.json
- Microsoft.Sql/2015-05-01-preview/operations.json
- Microsoft.Sql/2015-05-01-preview/serverKeys.json
- Microsoft.Sql/2015-05-01-preview/servers.json
- Microsoft.Sql/2015-05-01-preview/syncAgents.json
Expand Down

0 comments on commit d1c40f7

Please sign in to comment.