From 8bdea6dc0d28d29c5bfc2877447ca8f5608f20e1 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Wed, 12 Jun 2019 18:18:04 -0400 Subject: [PATCH] chore: jsonfmt billing Ran `jsonfmt -w "specification/billing/**/*.json"` --- .../preview/2018-11-01-preview/billing.json | 40 ++++++------- .../examples/CreateBillingProfile.json | 2 +- .../examples/UpdateBillingAccount.json | 2 +- .../examples/ValidateAddressInvalid.json | 58 +++++++++---------- .../examples/ValidateAddressValid.json | 28 ++++----- .../ValidateProductTransferFailure.json | 6 +- .../ValidateProductTransferSuccess.json | 8 +-- .../ValidateSubscriptionTransferFailure.json | 6 +- .../ValidateSubscriptionTransferSuccess.json | 8 +-- 9 files changed, 79 insertions(+), 79 deletions(-) diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json index 488e6dc967a0..9d0f890cf182 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json @@ -148,7 +148,7 @@ }, "202": { "description": "Accepted. Billing account update is in progress." - }, + }, "default": { "description": "Error response describing why the operation failed.", "schema": { @@ -3626,25 +3626,25 @@ } } }, - "ValidateAddressResponse": { - "type":"object", - "description" :" Result of the address validation", - "properties" : { - "status": { - "description": "status of the address validation.", - "$ref": "#/definitions/AddressValidationStatus" - }, - "suggestedAddresses": { - "description": "list of suggested addresses.", - "type": "array", - "items": { - "$ref": "#/definitions/Address" + "ValidateAddressResponse": { + "type": "object", + "description": "Result of the address validation", + "properties": { + "status": { + "description": "status of the address validation.", + "$ref": "#/definitions/AddressValidationStatus" + }, + "suggestedAddresses": { + "description": "list of suggested addresses.", + "type": "array", + "items": { + "$ref": "#/definitions/Address" + } + }, + "validationMessage": { + "description": "Validation error message.", + "type": "string" } - }, - "validationMessage" : { - "description": "Validation error message.", - "type": "string" - } } }, "AddressValidationStatus": { @@ -3658,7 +3658,7 @@ "name": "addressValidationStatus", "modelAsString": true } - }, + }, "InitiateTransferProperties": { "type": "object", "description": "Request parameters to initiate transfer.", diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CreateBillingProfile.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CreateBillingProfile.json index 03f7cd3e77a5..3bd226e8f49b 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CreateBillingProfile.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/CreateBillingProfile.json @@ -68,4 +68,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/UpdateBillingAccount.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/UpdateBillingAccount.json index 693af0eb8693..bcd167458350 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/UpdateBillingAccount.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/UpdateBillingAccount.json @@ -49,4 +49,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressInvalid.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressInvalid.json index d397f2ceddef..cef8bdaeb63f 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressInvalid.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressInvalid.json @@ -7,37 +7,37 @@ "region": "wa", "postalCode": "98004", "country": "us" - } + } }, "responses": { "200": { "body": { - "status": "Invalid", - "suggestedAddresses": [ - { - "country": "US", - "region": "WA", - "city": "Bellevue", - "addressLine1": "100 110th Ave NE", - "postalCode": "98004" - }, - { - "country": "US", - "region": "WA", - "city": "Bellevue", - "addressLine1": "102 110th Ave NE", - "postalCode": "98004-5804" - }, - { - "country": "US", - "region": "WA", - "city": "Bellevue", - "addressLine1": "104 110th Ave NE", - "postalCode": "98004-5804" - } - ], - "validationMessage" : "Invalid address" - } - } + "status": "Invalid", + "suggestedAddresses": [ + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "100 110th Ave NE", + "postalCode": "98004" + }, + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "102 110th Ave NE", + "postalCode": "98004-5804" + }, + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "104 110th Ave NE", + "postalCode": "98004-5804" + } + ], + "validationMessage": "Invalid address" + } + } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressValid.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressValid.json index 7ce28c1f7523..efff459f6a34 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressValid.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateAddressValid.json @@ -7,22 +7,22 @@ "region": "wa", "postalCode": "98004", "country": "us" - } + } }, "responses": { "200": { "body": { - "status": "Valid", - "suggestedAddresses": [ - { - "country": "US", - "region": "WA", - "city": "Bellevue", - "addressLine1": "555 110th Ave NE", - "postalCode": "98004-5124" - } - ] - } - } + "status": "Valid", + "suggestedAddresses": [ + { + "country": "US", + "region": "WA", + "city": "Bellevue", + "addressLine1": "555 110th Ave NE", + "postalCode": "98004-5124" + } + ] + } + } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json index de33919caad3..1f3396204209 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferFailure.json @@ -14,10 +14,10 @@ "body": { "isTransferEligible": false, "errorDetails": { - "code" : "ProductTypeNotSupported", - "message" : "Product '{productName}' is not allowed to be transferred." + "code": "ProductTypeNotSupported", + "message": "Product '{productName}' is not allowed to be transferred." } } } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json index 7edb141ae853..c05be235d44d 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateProductTransferSuccess.json @@ -12,8 +12,8 @@ "responses": { "200": { "body": { - "isTransferEligible": true - } - } + "isTransferEligible": true + } + } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json index e0004f41cd19..a342d036c8af 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferFailure.json @@ -14,10 +14,10 @@ "body": { "isTransferEligible": false, "errorDetails": { - "code" : "SubscriptionNotActive", - "message" : "Invoice Sections can only be changed for active subscriptions." + "code": "SubscriptionNotActive", + "message": "Invoice Sections can only be changed for active subscriptions." } } } } -} \ No newline at end of file +} diff --git a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json index c5e93cf366ec..c007d9775dd0 100644 --- a/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json +++ b/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/examples/ValidateSubscriptionTransferSuccess.json @@ -12,8 +12,8 @@ "responses": { "200": { "body": { - "isTransferEligible": true - } - } + "isTransferEligible": true + } + } } -} \ No newline at end of file +}