Skip to content

Commit 3783c80

Browse files
committed
feat: enable enums to be open for xero_files.yaml
BREAKING CHANGE: open enums
1 parent 2279adb commit 3783c80

1 file changed

Lines changed: 44 additions & 24 deletions

File tree

xero_files.yaml

Lines changed: 44 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,24 @@ paths:
4646
name: sort
4747
description: values to sort by
4848
schema:
49-
type: string
50-
enum:
51-
- Name
52-
- Size
53-
- CreatedDateUTC
49+
anyOf:
50+
- type: string
51+
enum:
52+
- Name
53+
- Size
54+
- CreatedDateUTC
55+
- type: string
5456
example: CreatedDateUTC
5557
- in: query
5658
name: direction
5759
description: sort direction
5860
schema:
59-
type: string
60-
enum:
61-
- ASC
62-
- DESC
61+
anyOf:
62+
- type: string
63+
enum:
64+
- ASC
65+
- DESC
66+
- type: string
6367
example: ASC
6468
responses:
6569
"200":
@@ -412,19 +416,23 @@ paths:
412416
name: sort
413417
description: values to sort by
414418
schema:
415-
type: string
416-
enum:
417-
- Name
418-
- CreatedDateUTC
419+
anyOf:
420+
- type: string
421+
enum:
422+
- Name
423+
- CreatedDateUTC
424+
- type: string
419425
example: Associations/{ObjectId}?sort=CreatedDateUtc
420426
- in: query
421427
name: direction
422428
description: direction to sort by
423429
schema:
424-
type: string
425-
enum:
426-
- ASC
427-
- DESC
430+
anyOf:
431+
- type: string
432+
enum:
433+
- ASC
434+
- DESC
435+
- type: string
428436
example: Associations/{ObjectId}?sort=CreatedDateUtc&direction=DESC
429437
responses:
430438
"200":
@@ -486,11 +494,13 @@ paths:
486494
name: sort
487495
description: values to sort by
488496
schema:
489-
type: string
490-
enum:
491-
- Name
492-
- Size
493-
- CreatedDateUTC
497+
anyOf:
498+
- type: string
499+
enum:
500+
- Name
501+
- Size
502+
- CreatedDateUTC
503+
- type: string
494504
example: CreatedDateUTC DESC
495505
responses:
496506
"200":
@@ -840,7 +850,7 @@ components:
840850
$ref: '#/components/schemas/ObjectGroup'
841851
ObjectType:
842852
$ref: '#/components/schemas/ObjectType'
843-
ObjectGroup:
853+
ObjectGroupClosed:
844854
description: The Object Group that the object is in. These roughly correlate to the endpoints that can be used to retrieve the object via the core accounting API.
845855
type: string
846856
enum:
@@ -856,7 +866,12 @@ components:
856866
- Prepayment
857867
- Quote
858868
- Receipt
859-
ObjectType:
869+
ObjectGroup:
870+
description: The Object Group that the object is in. These roughly correlate to the endpoints that can be used to retrieve the object via the core accounting API.
871+
anyOf:
872+
- $ref: '#/components/schemas/ObjectGroupClosed'
873+
- type: string
874+
ObjectTypeClosed:
860875
description: The Object Type
861876
type: string
862877
enum:
@@ -916,3 +931,8 @@ components:
916931
- Termliab
917932
- NonCurrent
918933
- SalesQuote
934+
ObjectType:
935+
description: The Object Type
936+
anyOf:
937+
- $ref: '#/components/schemas/ObjectTypeClosed'
938+
- type: string

0 commit comments

Comments
 (0)