Skip to content

Commit 70a329f

Browse files
authored
Merge pull request #743 from rpocklin/fix-response-codes-xero-finance
fix: xero-finance.yaml responses numeric to string
2 parents 0ca6d65 + e535f0c commit 70a329f

12 files changed

+40
-39
lines changed

validator/scripts/validate-all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ruleset="./validator/spectral.yaml"
1010

1111
# Array of all YAML files
1212
files=(
13+
"xero-finance.yaml"
1314
"xero-identity.yaml"
1415
"xero-projects.yaml"
1516
"xero-app-store.yaml"

xero-app-store.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: Xero AppStore API
55
description: These endpoints are for Xero Partners to interact with the App Store Billing platform
66
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/

xero-finance.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: Xero Finance API
55
description: The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
66
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/
@@ -389,7 +389,7 @@ paths:
389389
type: string
390390
example: "2020-06-30"
391391
responses:
392-
200:
392+
"200":
393393
description: Success
394394
content:
395395
application/json:
@@ -453,7 +453,7 @@ paths:
453453
total: 14.81
454454
total: 14.81
455455
total: 14.81
456-
400:
456+
"400":
457457
description: Bad Request
458458
content:
459459
application/json:
@@ -464,7 +464,7 @@ paths:
464464
title: InvalidRequest
465465
status: 400
466466
detail: Organisation xxx does not exist
467-
503:
467+
"503":
468468
description: Server Error
469469
content:
470470
application/json:
@@ -503,7 +503,7 @@ paths:
503503
type: string
504504
example: "2021-09-15"
505505
responses:
506-
200:
506+
"200":
507507
description: Success
508508
content:
509509
application/json:
@@ -607,7 +607,7 @@ paths:
607607
name: Loan - Shellcoll Distribution 2019
608608
reportingCode: LIA.CUR.LOA
609609
total: -15000.5
610-
400:
610+
"400":
611611
description: Bad Request
612612
content:
613613
application/json:
@@ -618,7 +618,7 @@ paths:
618618
title: InvalidRequest
619619
status: 400
620620
detail: Organisation xxx does not exist
621-
503:
621+
"503":
622622
description: Server Error
623623
content:
624624
application/json:
@@ -657,7 +657,7 @@ paths:
657657
type: string
658658
example: "2021-09-15"
659659
responses:
660-
200:
660+
"200":
661661
description: Success
662662
content:
663663
application/json:
@@ -709,7 +709,7 @@ paths:
709709
name: Office Expenses
710710
reportingCode: EXP
711711
total: 144.47
712-
400:
712+
"400":
713713
description: Bad Request
714714
content:
715715
application/json:
@@ -741,7 +741,7 @@ paths:
741741
type: string
742742
example: "2021-09-15"
743743
responses:
744-
200:
744+
"200":
745745
description: Success
746746
content:
747747
application/json:
@@ -769,7 +769,7 @@ paths:
769769
value: 123
770770
entryType: CREDIT
771771
signedMovement: 0
772-
400:
772+
"400":
773773
description: Bad Request
774774
content:
775775
application/json:
@@ -1116,7 +1116,7 @@ paths:
11161116
reportingCode: REV.OTH
11171117
lineAmount: 15.0
11181118
accountType: REVENUE
1119-
- paymentId: f94dad64-658c-491f-b901-05d38e9e8702
1119+
- paymentId: f94dad64-658c-491f-b9.1.15d38e9e8702
11201120
date: "2021-01-01"
11211121
amount: 5.0
11221122
bankAmount: 5.0

xero-identity.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: Xero OAuth 2 Identity Service API
55
description: These endpoints are related to managing authentication tokens and identity for Xero API
66
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/

xero-payroll-au.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: Xero Payroll AU API
55
description: This is the Xero Payroll API for orgs in Australia region.
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
@@ -467,7 +467,7 @@ paths:
467467
example:
468468
Id: 00000000-0000-0000-0000-000000000000
469469
Status: OK
470-
ProviderName: 3f93110a-df13-49c7-b82f-a069813df188
470+
ProviderName: 3f9.1.1a-df13-49c7-b82f-a069813df188
471471
DateTimeUTC: /Date(1573621524786)/
472472
Employees:
473473
- EmployeeID: cdfb8371-0b21-4b8a-8903-1024df6c391e
@@ -583,7 +583,7 @@ paths:
583583
EmployeeID: b34e89ff-770d-4099-b7e5-f968767118bc
584584
LeaveTypeID: 184ea8f7-d143-46dd-bef3-0c60e1aa6fca
585585
LeavePeriods:
586-
- PayPeriodStartDate: /Date(1571961600000+0000)/
586+
- PayPeriodStartDate: /Date(15719.1.10000+0000)/
587587
PayPeriodEndDate: /Date(1572480000000+0000)/
588588
LeavePeriodStatus: SCHEDULED
589589
NumberOfUnits: 0
@@ -601,7 +601,7 @@ paths:
601601
EmployeeID: b34e89ff-770d-4099-b7e5-f968767118bc
602602
LeaveTypeID: 184ea8f7-d143-46dd-bef3-0c60e1aa6fca
603603
LeavePeriods:
604-
- PayPeriodStartDate: /Date(1571961600000+0000)/
604+
- PayPeriodStartDate: /Date(15719.1.10000+0000)/
605605
PayPeriodEndDate: /Date(1572480000000+0000)/
606606
LeavePeriodStatus: SCHEDULED
607607
NumberOfUnits: 0
@@ -823,7 +823,7 @@ paths:
823823
EmployeeID: b34e89ff-770d-4099-b7e5-f968767118bc
824824
LeaveTypeID: 184ea8f7-d143-46dd-bef3-0c60e1aa6fca
825825
LeavePeriods:
826-
- PayPeriodStartDate: /Date(1571961600000+0000)/
826+
- PayPeriodStartDate: /Date(15719.1.10000+0000)/
827827
PayPeriodEndDate: /Date(1572480000000+0000)/
828828
LeavePeriodStatus: SCHEDULED
829829
NumberOfUnits: 8
@@ -841,7 +841,7 @@ paths:
841841
EmployeeID: b34e89ff-770d-4099-b7e5-f968767118bc
842842
LeaveTypeID: 184ea8f7-d143-46dd-bef3-0c60e1aa6fca
843843
LeavePeriods:
844-
- PayPeriodStartDate: /Date(1571961600000+0000)/
844+
- PayPeriodStartDate: /Date(15719.1.10000+0000)/
845845
PayPeriodEndDate: /Date(1572480000000+0000)/
846846
LeavePeriodStatus: PROCESSED
847847
NumberOfUnits: 8
@@ -854,7 +854,7 @@ paths:
854854
EndDate: /Date(1572645600000+0000)/
855855
UpdatedDateUTC: /Date(1573447343000+0000)/
856856
PayOutType: DEFAULT
857-
- LeaveApplicationID: 3f93110a-df13-49c7-b82f-a069813df188
857+
- LeaveApplicationID: 3f9.1.1a-df13-49c7-b82f-a069813df188
858858
EmployeeID: cdfb8371-0b21-4b8a-8903-1024df6c391e
859859
LeaveTypeID: 184ea8f7-d143-46dd-bef3-0c60e1aa6fca
860860
LeavePeriods:
@@ -1024,7 +1024,7 @@ paths:
10241024
example:
10251025
Id: 00000000-0000-0000-0000-000000000000
10261026
Status: OK
1027-
ProviderName: 3f93110a-df13-49c7-b82f-a069813df188
1027+
ProviderName: 3f9.1.1a-df13-49c7-b82f-a069813df188
10281028
DateTimeUTC: /Date(1573679792293)/
10291029
LeaveApplications:
10301030
- LeaveApplicationID: 1d4cd583-0107-4386-936b-672eb3d1f624
@@ -3127,7 +3127,7 @@ paths:
31273127
example:
31283128
Id: 00000000-0000-0000-0000-000000000000
31293129
Status: OK
3130-
ProviderName: 3f93110a-df13-49c7-b82f-a069813df188
3130+
ProviderName: 3f9.1.1a-df13-49c7-b82f-a069813df188
31313131
DateTimeUTC: /Date(1573516185258)/
31323132
Timesheets:
31333133
- TimesheetID: a7eb0a79-8511-4ee7-b473-3a25f28abcb9

xero-payroll-nz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: 'Xero Payroll NZ'
55
description: 'This is the Xero Payroll API for orgs in the NZ region.'
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero-payroll-uk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: 'Xero Payroll UK'
55
description: 'This is the Xero Payroll API for orgs in the UK region.'
66
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"

xero-projects.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: "9.1.0"
3+
version: "9.1.1"
44
title: Xero Projects API
55
description: This is the Xero Projects API
66
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/

xero_accounting.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.0.0
22
info:
33
title: Xero Accounting API
4-
version: 9.1.0
4+
version: 9.1.1
55
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/
66
contact:
77
name: Xero Platform Team
@@ -981,7 +981,7 @@ paths:
981981
CurrencyCode: NZD
982982
BatchPaymentID: b649632e-2782-4c74-95a5-d994d7140ed9
983983
DateString: 2022-08-01T00:00:00
984-
Date: /Date(1659312000000+0000)/
984+
Date: /Date(1659.1.100000+0000)/
985985
Payments: []
986986
Type: PAYBATCH
987987
Status: DELETED
@@ -1108,7 +1108,7 @@ paths:
11081108
CurrencyCode: NZD
11091109
BatchPaymentID: b649632e-2782-4c74-95a5-d994d7140ed9
11101110
DateString: 2022-08-01T00:00:00
1111-
Date: /Date(1659312000000+0000)/
1111+
Date: /Date(1659.1.100000+0000)/
11121112
Payments: []
11131113
Type: PAYBATCH
11141114
Status: DELETED
@@ -1523,7 +1523,7 @@ paths:
15231523
ProviderName: Xero API Partner
15241524
DateTimeUTC: /Date(1551213568047)/
15251525
BankTransactions:
1526-
- BankTransactionID: 1289c190-e46d-434b-9628-463ffdb52f00
1526+
- BankTransactionID: 1289.1.1-e46d-434b-9628-463ffdb52f00
15271527
BankAccount:
15281528
AccountID: 6f7594f2-f059-4d56-9e67-47ac9733bfe9
15291529
Code: "088"
@@ -1780,7 +1780,7 @@ paths:
17801780
ProviderName: Xero API Partner
17811781
DateTimeUTC: /Date(1551213568047)/
17821782
BankTransactions:
1783-
- BankTransactionID: 1289c190-e46d-434b-9628-463ffdb52f00
1783+
- BankTransactionID: 1289.1.1-e46d-434b-9628-463ffdb52f00
17841784
BankAccount:
17851785
AccountID: 6f7594f2-f059-4d56-9e67-47ac9733bfe9
17861786
Code: "088"
@@ -2155,7 +2155,7 @@ paths:
21552155
ProviderName: Xero API Partner
21562156
DateTimeUTC: /Date(1551213568875)/
21572157
BankTransactions:
2158-
- BankTransactionID: 1289c190-e46d-434b-9628-463ffdb52f00
2158+
- BankTransactionID: 1289.1.1-e46d-434b-9628-463ffdb52f00
21592159
BankAccount:
21602160
AccountID: 6f7594f2-f059-4d56-9e67-47ac9733bfe9
21612161
Code: "088"
@@ -7562,7 +7562,7 @@ paths:
75627562
SubTotal: 40.00
75637563
TotalTax: 0.00
75647564
Total: 40.00
7565-
UpdatedDateUTC: /Date(1541176290160+0000)/
7565+
UpdatedDateUTC: /Date(154117629.1.1+0000)/
75667566
CurrencyCode: NZD
75677567
- Type: ACCREC
75687568
InvoiceID: 046d8a6d-1ae1-4b4d-9340-5601bdf41b87
@@ -9754,7 +9754,7 @@ paths:
97549754
TargetLineItemID: d5128ff1-0f39-4d2a-a6d5-46dfaf5f075c
97559755
Status: ONDRAFT
97569756
Type: BILLABLEEXPENSE
9757-
UpdatedDateUTC: /Date(1552347991000+0000)/
9757+
UpdatedDateUTC: /Date(15523479.1.10+0000)/
97589758
SourceTransactionTypeCode: ACCPAY
97599759
put:
97609760
security:
@@ -9858,7 +9858,7 @@ paths:
98589858
TargetLineItemID: d5128ff1-0f39-4d2a-a6d5-46dfaf5f075c
98599859
Status: ONDRAFT
98609860
Type: BILLABLEEXPENSE
9861-
UpdatedDateUTC: /Date(1552347991000+0000)/
9861+
UpdatedDateUTC: /Date(15523479.1.10+0000)/
98629862
SourceTransactionTypeCode: ACCPAY
98639863
post:
98649864
security:
@@ -14372,7 +14372,7 @@ paths:
1437214372
Option: Eastside
1437314373
Date: /Date(1571875200000)/
1437414374
DateString: 2019-10-24T00:00:00
14375-
ExpiryDate: /Date(1571961600000)/
14375+
ExpiryDate: /Date(15719.1.10000)/
1437614376
ExpiryDateString: 2019-10-25T00:00:00
1437714377
Status: ACCEPTED
1437814378
CurrencyRate: 0.937053

xero_assets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
openapi: 3.0.0
22
info:
3-
version: 9.1.0
3+
version: 9.1.1
44
title: Xero Assets API
55
description: The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
66
termsOfService: https://developer.xero.com/xero-developer-platform-terms-conditions/

0 commit comments

Comments
 (0)