Skip to content

Commit b876589

Browse files
committed
feat: enable enums to be open for xero-app-store.yaml
BREAKING CHANGE: open enums
1 parent 9fe8f9b commit b876589

1 file changed

Lines changed: 29 additions & 21 deletions

File tree

xero-app-store.yaml

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,13 @@ components:
302302
x-is-datetime: true
303303
status:
304304
description: Status of the subscription. Available statuses are ACTIVE, CANCELED, and PAST_DUE.
305-
type: string
306-
enum:
307-
- ACTIVE
308-
- CANCELED
309-
- PAST_DUE
305+
anyOf:
306+
- type: string
307+
enum:
308+
- ACTIVE
309+
- CANCELED
310+
- PAST_DUE
311+
- type: string
310312
testMode:
311313
description: Boolean used to indicate if the subscription is in test mode
312314
type: boolean
@@ -333,11 +335,13 @@ components:
333335
description: |
334336
Status of the plan. Available statuses are ACTIVE, CANCELED, and
335337
PENDING_ACTIVATION.
336-
type: string
337-
enum:
338-
- ACTIVE
339-
- CANCELED
340-
- PENDING_ACTIVATION
338+
anyOf:
339+
- type: string
340+
enum:
341+
- ACTIVE
342+
- CANCELED
343+
- PENDING_ACTIVATION
344+
- type: string
341345
subscriptionItems:
342346
description: |
343347
List of the subscription items belonging to the plan. It does not
@@ -416,11 +420,13 @@ components:
416420
description: |
417421
Status of the subscription item. Available statuses are ACTIVE, CANCELED, and
418422
PENDING_ACTIVATION.
419-
type: string
420-
enum:
421-
- ACTIVE
422-
- CANCELED
423-
- PENDING_ACTIVATION
423+
anyOf:
424+
- type: string
425+
enum:
426+
- ACTIVE
427+
- CANCELED
428+
- PENDING_ACTIVATION
429+
- type: string
424430
testMode:
425431
description: If the subscription is a test subscription
426432
type: boolean
@@ -449,12 +455,14 @@ components:
449455
* PER_SEAT: Customers are charged based on the number of units they purchase
450456
* METERED: Customers are charged per use of this product
451457
* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature
452-
type: string
453-
enum:
454-
- FIXED
455-
- PER_SEAT
456-
- METERED
457-
- SIMPLE
458+
anyOf:
459+
- type: string
460+
enum:
461+
- FIXED
462+
- PER_SEAT
463+
- METERED
464+
- SIMPLE
465+
- type: string
458466
usageUnit:
459467
description: The unit of the usage product. e.g. "user", "minutes", "SMS", etc
460468
type: string

0 commit comments

Comments
 (0)