Skip to content
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

[S360 fix] Add details field to ErrorResponse #22910

Merged
merged 4 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@
}
}
},
"x-ms-examples": {
"List Operations": {
"$ref": "./examples/OperationsList.json"
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
Expand Down Expand Up @@ -578,6 +583,27 @@
"description": "Error message indicating why the operation failed.",
"type": "string",
"readOnly": true
},
"details": {
"description": "List of inner error messages indicating why the operation failed.",
"type": "array",
"uniqueItems": false,
"x-ms-identifiers": [],
"items": {
"type": "object",
"properties": {
"code": {
"description": "Error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string",
"readOnly": true
}
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2015-06-01",
"subscriptionId": "subid",
"publisherId": "pubid",
"offerId": "offid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2015-06-01",
"subscriptionId": "subid",
"publisherId": "pubid",
"offerId": "offid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2015-06-01",
"subscriptionId": "subid",
"offerType": "virtualmachine",
"publisherId": "pubid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2015-06-01",
"subscriptionId": "subid"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"parameters": {
"api-version": "2015-06-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.MarketplaceOrdering/agreements/read",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "Get all Agreements",
"description": "Return all agreements under given subscription"
}
},
{
"name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/read",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "Get Agreement",
"description": "Return an agreement for a given marketplace item"
}
},
{
"name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/sign/action",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "Sign Agreement",
"description": "Sign an agreement for a given marketplace item"
}
},
{
"name": "Microsoft.MarketplaceOrdering/agreements/offers/plans/cancel/action",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "Cancel Agreement",
"description": "Cancel an agreement for a given marketplace item"
}
},
{
"name": "Microsoft.MarketplaceOrdering/offertypes/publishers/offers/plans/agreements/read",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "Get Agreement for virtual machine",
"description": "Get an agreement for a given marketplace virtual machine item"
}
},
{
"name": "Microsoft.MarketplaceOrdering/offertypes/publishers/offers/plans/agreements/write",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "Save Agreement for virtual machine",
"description": "Sign or Cancel an agreement for a given marketplace virtual machine item"
}
},
{
"name": "Microsoft.MarketplaceOrdering/operations/read",
"display": {
"provider": "Microsoft Marketplace Ordering",
"resource": "Agreement",
"operation": "List Operations",
"description": "List all possible operations in the API"
}
}
]
}
},
"415": {
"body": {
"Message": "media type unsupported"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2015-06-01",
"subscriptionId": "subid",
"offerType": "virtualmachine",
"publisherId": "pubid",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parameters": {
"api-version": "2016-04-01",
"api-version": "2015-06-01",
"subscriptionId": "subid",
"publisherId": "pubid",
"offerId": "offid",
Expand Down