Skip to content

Commit

Permalink
fix: billing model validation errors (#6784)
Browse files Browse the repository at this point in the history
Add "body" for RESPONSE_BODY_NOT_IN_EXAMPLE errors
  • Loading branch information
nschonni authored and sergey-shandar committed Jul 31, 2019
1 parent e7b375b commit 4e0d41f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"responses": {
"200": {
"200": {
"body": {
"value": [
{
"id": "10000000-aaaa-bbbb-cccc-100000000000_6fd330f6-7d26-4aff-b9cf-7bd699f965b9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,37 +5,39 @@
},
"responses": {
"200": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055",
"name": "00000000-0000-0000-0000-000000000055",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"currency": "USD",
"details": "Credits",
"expiration": "4/2020",
"paymentMethodType": "Credits"
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000055",
"name": "00000000-0000-0000-0000-000000000055",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"currency": "USD",
"details": "Credits",
"expiration": "4/2020",
"paymentMethodType": "Credits"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026",
"name": "00000000-0000-0000-0000-000000000026",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"details": "Check Wire",
"paymentMethodType": "CheckWire"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026",
"name": "00000000-0000-0000-0000-000000000026",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"details": "Check Wire",
"paymentMethodType": "CheckWire"
}
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000022/paymentMethods/00000000-0000-0000-0000-000000000026",
"name": "00000000-0000-0000-0000-000000000026",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"details": "Check Wire",
"paymentMethodType": "CheckWire"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/00000000-0000-0000-0000-000000000011/paymentMethods/00000000-0000-0000-0000-000000000026",
"name": "00000000-0000-0000-0000-000000000026",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"details": "Check Wire",
"paymentMethodType": "CheckWire"
}
}
]
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,30 @@
},
"responses": {
"200": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055",
"name": "00000000-0000-0000-0000-000000000055",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"currency": "USD",
"details": "Credits",
"expiration": "4/2020",
"paymentMethodType": "Credits"
"body": {
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000055",
"name": "00000000-0000-0000-0000-000000000055",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"currency": "USD",
"details": "Credits",
"expiration": "4/2020",
"paymentMethodType": "Credits"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026",
"name": "00000000-0000-0000-0000-000000000026",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"details": "Check Wire",
"paymentMethodType": "CheckWire"
}
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethods/00000000-0000-0000-0000-000000000026",
"name": "00000000-0000-0000-0000-000000000026",
"type": "Microsoft.Billing/paymentMethods",
"properties": {
"details": "Check Wire",
"paymentMethodType": "CheckWire"
}
}
]
]
}
}
}
}

0 comments on commit 4e0d41f

Please sign in to comment.