Skip to content

Commit 41d8c7d

Browse files
committed
Add new vendorExtension for Objects with single Array
x-isObjectArray: true - this is is currently used in PHP templates to add helper methods and enable simpler code when working with an array of objects inside a model. for example the Array of Account objects in Accounts.
1 parent f921c8f commit 41d8c7d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

accounting-yaml/xero_accounting.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17928,6 +17928,7 @@ components:
1792817928
type: object
1792917929
Accounts:
1793017930
type: object
17931+
x-isObjectArray: true
1793117932
properties:
1793217933
Accounts:
1793317934
type: array
@@ -18092,6 +18093,7 @@ components:
1809218093
- WAGESEXPENSE
1809318094
Attachments:
1809418095
type: object
18096+
x-isObjectArray: true
1809518097
properties:
1809618098
Attachments:
1809718099
type: array
@@ -18127,6 +18129,7 @@ components:
1812718129
type: boolean
1812818130
BankTransactions:
1812918131
type: object
18132+
x-isObjectArray: true
1813018133
properties:
1813118134
BankTransactions:
1813218135
type: array
@@ -18347,6 +18350,7 @@ components:
1834718350
type: object
1834818351
BankTransfers:
1834918352
type: object
18353+
x-isObjectArray: true
1835018354
properties:
1835118355
BankTransfers:
1835218356
type: array
@@ -18415,6 +18419,7 @@ components:
1841518419
type: object
1841618420
BatchPayments:
1841718421
type: object
18422+
x-isObjectArray: true
1841818423
properties:
1841918424
BatchPayments:
1842018425
type: array
@@ -18530,6 +18535,7 @@ components:
1853018535
example: "Foobar"
1853118536
BrandingThemes:
1853218537
type: object
18538+
x-isObjectArray: true
1853318539
properties:
1853418540
BrandingThemes:
1853518541
type: array
@@ -18568,6 +18574,7 @@ components:
1856818574
type: object
1856918575
PaymentServices:
1857018576
type: object
18577+
x-isObjectArray: true
1857118578
properties:
1857218579
PaymentServices:
1857318580
type: array
@@ -18600,6 +18607,7 @@ components:
1860018607
$ref: '#/components/schemas/ValidationError'
1860118608
Contacts:
1860218609
type: object
18610+
x-isObjectArray: true
1860318611
properties:
1860418612
Contacts:
1860518613
type: array
@@ -18804,6 +18812,7 @@ components:
1880418812
format: double
1880518813
CISSettings:
1880618814
type: object
18815+
x-isObjectArray: true
1880718816
properties:
1880818817
CISSettings:
1880918818
type: array
@@ -18852,6 +18861,7 @@ components:
1885218861
type: object
1885318862
ContactGroups:
1885418863
type: object
18864+
x-isObjectArray: true
1885518865
properties:
1885618866
ContactGroups:
1885718867
type: array
@@ -18893,6 +18903,7 @@ components:
1889318903
type: object
1889418904
CreditNotes:
1889518905
type: object
18906+
x-isObjectArray: true
1889618907
properties:
1889718908
CreditNotes:
1889818909
type: array
@@ -19027,6 +19038,7 @@ components:
1902719038
type: object
1902819039
Allocations:
1902919040
type: object
19041+
x-isObjectArray: true
1903019042
properties:
1903119043
Allocations:
1903219044
type: array
@@ -19055,6 +19067,7 @@ components:
1905519067
type: object
1905619068
Currencies:
1905719069
type: object
19070+
x-isObjectArray: true
1905819071
properties:
1905919072
Currencies:
1906019073
type: array
@@ -19241,6 +19254,7 @@ components:
1924119254
- ""
1924219255
Employees:
1924319256
type: object
19257+
x-isObjectArray: true
1924419258
properties:
1924519259
Employees:
1924619260
type: array
@@ -19290,6 +19304,7 @@ components:
1929019304
type: object
1929119305
ExpenseClaims:
1929219306
type: object
19307+
x-isObjectArray: true
1929319308
properties:
1929419309
ExpenseClaims:
1929519310
type: array
@@ -19370,6 +19385,7 @@ components:
1937019385
type: object
1937119386
HistoryRecords:
1937219387
type: object
19388+
x-isObjectArray: true
1937319389
properties:
1937419390
HistoryRecords:
1937519391
type: array
@@ -19399,6 +19415,7 @@ components:
1939919415
type: object
1940019416
Invoices:
1940119417
type: object
19418+
x-isObjectArray: true
1940219419
properties:
1940319420
Invoices:
1940419421
type: array
@@ -19614,6 +19631,7 @@ components:
1961419631
type: object
1961519632
OnlineInvoices:
1961619633
type: object
19634+
x-isObjectArray: true
1961719635
properties:
1961819636
OnlineInvoices:
1961919637
type: array
@@ -19629,6 +19647,7 @@ components:
1962919647
type: object
1963019648
InvoiceReminders:
1963119649
type: object
19650+
x-isObjectArray: true
1963219651
properties:
1963319652
InvoiceReminders:
1963419653
type: array
@@ -19644,6 +19663,7 @@ components:
1964419663
type: object
1964519664
Items:
1964619665
type: object
19666+
x-isObjectArray: true
1964719667
properties:
1964819668
Items:
1964919669
type: array
@@ -19749,6 +19769,7 @@ components:
1974919769
type: object
1975019770
Journals:
1975119771
type: object
19772+
x-isObjectArray: true
1975219773
properties:
1975319774
Journals:
1975419775
type: array
@@ -19882,6 +19903,7 @@ components:
1988219903
type: object
1988319904
LinkedTransactions:
1988419905
type: object
19906+
x-isObjectArray: true
1988519907
properties:
1988619908
LinkedTransactions:
1988719909
type: array
@@ -19960,6 +19982,7 @@ components:
1996019982
type: object
1996119983
ManualJournals:
1996219984
type: object
19985+
x-isObjectArray: true
1996319986
properties:
1996419987
ManualJournals:
1996519988
type: array
@@ -20080,6 +20103,7 @@ components:
2008020103
type: object
2008120104
Organisations:
2008220105
type: object
20106+
x-isObjectArray: true
2008320107
properties:
2008420108
Organisations:
2008520109
type: array
@@ -20688,6 +20712,7 @@ components:
2068820712
type: object
2068920713
Overpayments:
2069020714
type: object
20715+
x-isObjectArray: true
2069120716
properties:
2069220717
Overpayments:
2069320718
type: array
@@ -20792,6 +20817,7 @@ components:
2079220817
type: object
2079320818
Payments:
2079420819
type: object
20820+
x-isObjectArray: true
2079520821
properties:
2079620822
Payments:
2079720823
type: array
@@ -20908,6 +20934,7 @@ components:
2090820934
type: object
2090920935
Prepayments:
2091020936
type: object
20937+
x-isObjectArray: true
2091120938
properties:
2091220939
Prepayments:
2091320940
type: array
@@ -21012,6 +21039,7 @@ components:
2101221039
type: object
2101321040
PurchaseOrders:
2101421041
type: object
21042+
x-isObjectArray: true
2101521043
properties:
2101621044
PurchaseOrders:
2101721045
type: array
@@ -21153,6 +21181,7 @@ components:
2115321181
type: object
2115421182
Quotes:
2115521183
type: object
21184+
x-isObjectArray: true
2115621185
properties:
2115721186
Quotes:
2115821187
type: array
@@ -21277,6 +21306,7 @@ components:
2127721306
- INVOICED
2127821307
Receipts:
2127921308
type: object
21309+
x-isObjectArray: true
2128021310
properties:
2128121311
Receipts:
2128221312
type: array
@@ -21371,6 +21401,7 @@ components:
2137121401
type: object
2137221402
RepeatingInvoices:
2137321403
type: object
21404+
x-isObjectArray: true
2137421405
properties:
2137521406
RepeatingInvoices:
2137621407
type: array
@@ -21557,6 +21588,7 @@ components:
2155721588
type: string
2155821589
Reports:
2155921590
type: object
21591+
x-isObjectArray: true
2156021592
properties:
2156121593
Reports:
2156221594
type: array
@@ -21724,6 +21756,7 @@ components:
2172421756
type: object
2172521757
TaxRates:
2172621758
type: object
21759+
x-isObjectArray: true
2172721760
properties:
2172821761
TaxRates:
2172921762
type: array
@@ -21919,6 +21952,7 @@ components:
2191921952
type: object
2192021953
TrackingCategories:
2192121954
type: object
21955+
x-isObjectArray: true
2192221956
properties:
2192321957
TrackingCategories:
2192421958
type: array
@@ -21961,6 +21995,7 @@ components:
2196121995
type: object
2196221996
TrackingOptions:
2196321997
type: object
21998+
x-isObjectArray: true
2196421999
properties:
2196522000
Options:
2196622001
type: array
@@ -22004,6 +22039,7 @@ components:
2200422039
type: object
2200522040
Users:
2200622041
type: object
22042+
x-isObjectArray: true
2200722043
properties:
2200822044
Users:
2200922045
type: array

0 commit comments

Comments
 (0)