Skip to content

Commit e3f4d1b

Browse files
committed
feat: use pretty print for proper formatting
1 parent 15e691b commit e3f4d1b

12 files changed

+17820
-3308
lines changed

.github/workflows/update-OAS-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- name: Update OAS version of the spec yaml files
6666
run: |
6767
for file in xero_accounting.yaml xero_assets.yaml xero_bankfeeds.yaml xero_files.yaml xero-app-store.yaml xero-finance.yaml xero-identity.yaml xero-payroll-au.yaml xero-payroll-nz.yaml xero-payroll-uk.yaml xero-projects.yaml; do
68-
yq eval ".info.version = \"${{steps.get_latest_release_number.outputs.releaseVersion}}\"" -i "$file"
68+
yq eval --no-colors --prettyPrint ".info.version = \"${{steps.get_latest_release_number.outputs.releaseVersion}}\"" -i "$file"
6969
echo "updated version in $file"
7070
done
7171

xero-app-store.yaml

Lines changed: 131 additions & 54 deletions
Large diffs are not rendered by default.

xero-finance.yaml

Lines changed: 497 additions & 375 deletions
Large diffs are not rendered by default.

xero-identity.yaml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
openapi: 3.0.0
22
info:
3-
version: "6.3.0"
3+
version: 6.3.0
44
title: Xero OAuth 2 Identity Service API
55
description: These endpoints are related to managing authentication tokens and identity for Xero API
6-
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
6+
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/
77
contact:
8-
name: "Xero Platform Team"
9-
10-
url: "https://developer.xero.com"
8+
name: Xero Platform Team
9+
10+
url: https://developer.xero.com
1111
license:
1212
name: MIT
13-
url: 'https://github.com/XeroAPI/Xero-OpenAPI/blob/master/LICENSE'
13+
url: https://github.com/XeroAPI/Xero-OpenAPI/blob/master/LICENSE
1414
servers:
1515
- description: Xero Identity service API
16-
url: 'https://api.xero.com'
16+
url: https://api.xero.com
1717
paths:
1818
/Connections:
1919
get:
@@ -29,13 +29,13 @@ paths:
2929
required: false
3030
name: authEventId
3131
description: Filter by authEventId
32-
example: "00000000-0000-0000-0000-000000000000"
32+
example: 00000000-0000-0000-0000-000000000000
3333
schema:
3434
type: string
3535
format: uuid
36-
x-basepath: 'https://api.xero.com'
36+
x-basepath: https://api.xero.com
3737
responses:
38-
'200':
38+
"200":
3939
description: Success - return response of type Connections array with 0 to n Connection
4040
content:
4141
application/json:
@@ -44,7 +44,7 @@ paths:
4444
items:
4545
$ref: '#/components/schemas/Connection'
4646
example: '[ { "id": "7cb59f93-2964-421d-bb5e-a0f7a4572a44", "tenantId": "fe79f7dd-b6d4-4a92-ba7b-538af6289c58", "tenantName": "Demo Company (NZ)", "tenantType": "ORGANISATION", "createdDateUtc": "2019-12-07T18:46:19.5165400", "updatedDateUtc": "2019-12-07T18:46:19.5187840" } ]'
47-
'/Connections/{id}':
47+
/Connections/{id}:
4848
delete:
4949
security:
5050
- OAuth2: []
@@ -53,7 +53,7 @@ paths:
5353
description: Override the base server url that include version
5454
operationId: deleteConnection
5555
summary: Deletes a connection for this user (i.e. disconnect a tenant)
56-
x-basepath: 'https://api.xero.com'
56+
x-basepath: https://api.xero.com
5757
parameters:
5858
- required: true
5959
in: path
@@ -63,15 +63,15 @@ paths:
6363
type: string
6464
format: uuid
6565
responses:
66-
'204':
66+
"204":
6767
description: Success - connection has been deleted no content returned
68-
'404':
68+
"404":
6969
description: Resource not found
7070
components:
7171
schemas:
7272
Connection:
7373
externalDocs:
74-
url: 'http://developer.xero.com'
74+
url: http://developer.xero.com
7575
properties:
7676
id:
7777
description: Xero identifier
@@ -96,16 +96,16 @@ components:
9696
type: string
9797
format: date-time
9898
x-is-datetime: true
99-
x-php-format: '\DateTime'
99+
x-php-format: \DateTime
100100
updatedDateUtc:
101101
description: The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app.
102102
type: string
103103
format: date-time
104104
x-is-datetime: true
105-
x-php-format: '\DateTime'
105+
x-php-format: \DateTime
106106
RefreshToken:
107107
externalDocs:
108-
url: 'http://developer.xero.com'
108+
url: http://developer.xero.com
109109
type: object
110110
properties:
111111
grant_type:
@@ -122,7 +122,7 @@ components:
122122
type: string
123123
AccessToken:
124124
externalDocs:
125-
url: 'http://developer.xero.com'
125+
url: http://developer.xero.com
126126
type: object
127127
properties:
128128
id_token:
@@ -150,8 +150,8 @@ components:
150150
description: For more information
151151
flows:
152152
authorizationCode:
153-
authorizationUrl: 'https://login.xero.com/identity/connect/authorize'
154-
tokenUrl: 'https://identity.xero.com/connect/token'
153+
authorizationUrl: https://login.xero.com/identity/connect/authorize
154+
tokenUrl: https://identity.xero.com/connect/token
155155
scopes:
156156
email: Grant read-only access to your email
157157
openid: Grant read-only access to your open id

0 commit comments

Comments
 (0)