Skip to content

Commit

Permalink
Fix Swagger Correctness Issues For HealthcareApis (#12651)
Browse files Browse the repository at this point in the history
* Initial commit

* Fix model validation

* Fix typo
  • Loading branch information
anrudraw authored Feb 2, 2021
1 parent decf0c3 commit 0529893
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@
"value": [
{
"name": "Microsoft.HealthcareApis/services/read",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/write",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/delete",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/locations/operationresults/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.HealthcareApis",
"resource": "operationresults",
Expand All @@ -33,11 +37,13 @@
},
{
"name": "Microsoft.HealthcareApis/checkNameAvailability/post",
"isDataAction": false,
"display": {},
"origin": "user"
},
{
"name": "Microsoft.HealthcareApis/Operations/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.HealthcareApis",
"resource": "operations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"maxAge": 1440,
"allowCredentials": false
}
},
"identity": {
"type": "SystemAssigned"
}
}
},
Expand Down Expand Up @@ -92,6 +95,11 @@
"maxAge": 1440,
"allowCredentials": false
}
},
"identity": {
"principalId": "03fe6ae0-952c-4e4b-954b-cc0364dd252e",
"tenantId": "72f988bf-86f1-41af-91ab-2d8cd011db47",
"type": "SystemAssigned"
}
}
},
Expand Down Expand Up @@ -140,6 +148,11 @@
"maxAge": 1440,
"allowCredentials": false
}
},
"identity": {
"principalId": "03fe6ae0-952c-4e4b-954b-cc0364dd252e",
"tenantId": "72f988bf-86f1-41af-91ab-2d8cd011db47",
"type": "SystemAssigned"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,34 @@
"etag": {
"description": "An etag associated with the resource, used for optimistic concurrency when editing it.",
"type": "string"
},
"identity": {
"type": "object",
"description": "Setting indicating whether the service has a managed identity associated with it.",
"properties": {
"principalId": {
"readOnly": true,
"type": "string",
"description": "The principal ID of the resource identity."
},
"tenantId": {
"readOnly": true,
"type": "string",
"description": "The tenant ID of the resource."
},
"type": {
"description": "Type of identity being specified, currently SystemAssigned and None are allowed.",
"type": "string",
"enum": [
"SystemAssigned",
"None"
],
"x-ms-enum": {
"name": "ManagedServiceIdentityType",
"modelAsString": true
}
}
}
}
},
"x-ms-azure-resource": true,
Expand Down Expand Up @@ -757,6 +785,10 @@
"type": "string",
"description": "Operation name: {provider}/{resource}/{read | write | action | delete}"
},
"isDataAction": {
"description": "Gets or sets a value indicating whether the operation is a data action or not",
"type": "boolean"
},
"origin": {
"readOnly": true,
"type": "string",
Expand All @@ -765,6 +797,10 @@
"display": {
"description": "The information displayed about the operation.",
"$ref": "#/definitions/OperationDisplay"
},
"properties": {
"$ref": "#/definitions/OperationProperties",
"description": "Properties of the operation"
}
}
},
Expand Down Expand Up @@ -794,6 +830,11 @@
}
}
},
"OperationProperties": {
"description": "Operation properties.",
"type": "object",
"properties": {}
},
"CheckNameAvailabilityParameters": {
"description": "Input values.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"properties": {}
}
},
"202": {},
"404": {
"body": {
"error": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@
"value": [
{
"name": "Microsoft.HealthcareApis/services/read",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/write",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/delete",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/locations/operationresults/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.HealthcareApis",
"resource": "operationresults",
Expand All @@ -33,11 +37,13 @@
},
{
"name": "Microsoft.HealthcareApis/checkNameAvailability/post",
"isDataAction": false,
"display": {},
"origin": "user"
},
{
"name": "Microsoft.HealthcareApis/Operations/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.HealthcareApis",
"resource": "operations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@
"$ref": "#/definitions/OperationResultsDescription"
}
},
"202": {
"description": "Accepted - Get request accepted; the operation will complete asynchronously."
},
"404": {
"description": "No operation result was found matching operationResultId.",
"schema": {
Expand Down Expand Up @@ -803,6 +806,10 @@
"type": "string",
"description": "Operation name: {provider}/{resource}/{read | write | action | delete}"
},
"isDataAction": {
"description": "Gets or sets a value indicating whether the operation is a data action or not",
"type": "boolean"
},
"origin": {
"readOnly": true,
"type": "string",
Expand All @@ -811,6 +818,10 @@
"display": {
"description": "The information displayed about the operation.",
"$ref": "#/definitions/OperationDisplay"
},
"properties": {
"$ref": "#/definitions/OperationProperties",
"description": "Properties of the operation"
}
}
},
Expand Down Expand Up @@ -840,6 +851,11 @@
}
}
},
"OperationProperties": {
"description": "Operation properties.",
"type": "object",
"properties": {}
},
"CheckNameAvailabilityParameters": {
"description": "Input values.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"properties": {}
}
},
"202": {},
"404": {
"body": {
"error": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@
"value": [
{
"name": "Microsoft.HealthcareApis/services/read",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/write",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/delete",
"isDataAction": false,
"display": {},
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/locations/operationresults/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.HealthcareApis",
"resource": "operationresults",
Expand All @@ -33,11 +37,13 @@
},
{
"name": "Microsoft.HealthcareApis/checkNameAvailability/post",
"isDataAction": false,
"display": {},
"origin": "user"
},
{
"name": "Microsoft.HealthcareApis/Operations/read",
"isDataAction": false,
"display": {
"provider": "Microsoft.HealthcareApis",
"resource": "operations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,9 @@
"$ref": "#/definitions/OperationResultsDescription"
}
},
"202": {
"description": "Accepted - Get request accepted; the operation will complete asynchronously."
},
"404": {
"description": "No operation result was found matching operationResultId.",
"schema": {
Expand Down Expand Up @@ -808,6 +811,10 @@
"type": "string",
"description": "Operation name: {provider}/{resource}/{read | write | action | delete}"
},
"isDataAction": {
"description": "Gets or sets a value indicating whether the operation is a data action or not",
"type": "boolean"
},
"origin": {
"readOnly": true,
"type": "string",
Expand All @@ -816,6 +823,10 @@
"display": {
"description": "The information displayed about the operation.",
"$ref": "#/definitions/OperationDisplay"
},
"properties": {
"$ref": "#/definitions/OperationProperties",
"description": "Properties of the operation"
}
}
},
Expand Down Expand Up @@ -845,6 +856,11 @@
}
}
},
"OperationProperties": {
"description": "Operation properties.",
"type": "object",
"properties": {}
},
"CheckNameAvailabilityParameters": {
"description": "Input values.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@
{
"name": "Microsoft.HealthcareApis/services/read",
"display": {},
"isDataAction": false,
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/write",
"display": {},
"isDataAction": false,
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/services/delete",
"display": {},
"isDataAction": false,
"origin": "user,system"
},
{
Expand All @@ -29,11 +32,13 @@
"operation": "read",
"description": "Get the status of an asynchronous operation"
},
"isDataAction": false,
"origin": "user,system"
},
{
"name": "Microsoft.HealthcareApis/checkNameAvailability/post",
"display": {},
"isDataAction": false,
"origin": "user"
},
{
Expand All @@ -44,6 +49,7 @@
"operation": "read",
"description": "Get the list of operations supported by this Resource Provider."
},
"isDataAction": false,
"origin": "user,system"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"publicNetworkAccess": "Disabled"
}
}
}
},
"202": {}
}
}
Loading

0 comments on commit 0529893

Please sign in to comment.