-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microsoft.Relay API version 2021-11-01 #17480
Changes from 14 commits
222fc84
5aedec2
1fa91f9
86d798d
e70f2e9
2662273
b2f1dff
cab4c59
a41f00d
08b4100
bf4aab6
72ecda2
fc208dc
16bfb3b
e3566ce
749b1ea
a02cac2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2.0", | ||
"title": "Common types" | ||
}, | ||
"paths": {}, | ||
"definitions": { | ||
"ProxyResource": { | ||
"title": "Resource", | ||
"description": "Common fields that are returned in the response for all Azure Resource Manager resources", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" | ||
}, | ||
"name": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The name of the resource" | ||
}, | ||
"type": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The type of the resource. E.g. \"Microsoft.EventHub/Namespaces\" or \"Microsoft.EventHub/Namespaces/EventHubs\"" | ||
}, | ||
"location": { | ||
"type": "string", | ||
"readOnly": true, | ||
"description": "The geo-location where the resource lives" | ||
} | ||
}, | ||
"x-ms-azure-resource": true | ||
}, | ||
"ErrorDetail": { | ||
"description": "The error detail.", | ||
"type": "object", | ||
"properties": { | ||
"code": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The error code." | ||
}, | ||
"message": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The error message." | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code and message should be "required" (this had to be enforced by service as well) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now using Error Response from common type. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If no other JSON uses it, can it be removed? Same for If there is other swagger JSON that uses it and they are not by this PR, you can leave it here. |
||
"target": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The error target." | ||
}, | ||
"details": { | ||
"readOnly": true, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ErrorDetail" | ||
}, | ||
"x-ms-identifiers": [], | ||
"description": "The error details." | ||
}, | ||
"additionalInfo": { | ||
"readOnly": true, | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ErrorAdditionalInfo" | ||
}, | ||
"x-ms-identifiers": [], | ||
"description": "The error additional info." | ||
} | ||
} | ||
}, | ||
"ErrorResponse": { | ||
"description": "Error response indicates Event Hub service is not able to process the incoming request. The reason is provided in the error message.", | ||
"type": "object", | ||
"properties": { | ||
"error": { | ||
"description": "The error object.", | ||
"$ref": "#/definitions/ErrorDetail" | ||
} | ||
} | ||
}, | ||
"ErrorAdditionalInfo": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"readOnly": true, | ||
"type": "string", | ||
"description": "The additional info type." | ||
}, | ||
"info": { | ||
"readOnly": true, | ||
"type": "object", | ||
"description": "The additional info." | ||
} | ||
}, | ||
"description": "The resource management error additional info." | ||
} | ||
}, | ||
"parameters": {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Authorization?
Please fix this in your swagger and examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed