Skip to content

Commit

Permalink
Update UserSubscription with new properties (#361)
Browse files Browse the repository at this point in the history
* Remove UserSubscription.yaml example

* Add `starts` to UserSubscription.yaml

* Add minLength to starts

* Add examples to UserSubscription.yaml

* Remove `minLength` constraint from `starts` in UserSubscription.yaml

* fix: redundant examples

---------

Co-authored-by: Aries <[email protected]>
  • Loading branch information
C0D3-M4513R and ariesclark authored Jul 22, 2024
1 parent a3ca50e commit 737eab9
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions openapi/components/schemas/UserSubscription.yaml
Original file line number Diff line number Diff line change
@@ -1,57 +1,53 @@
type: object
description: ''
example:
id: vrchatplus-yearly
transactionId: txn_63231aa6-8b7a-49ff-a106-d5678f8318b1
store: Steam
steamItemId: '5000'
amount: 9999
description: VRChat Plus (Yearly)
period: year
tier: 5
active: true
status: active
expires: '2022-03-04T00:00:00.000Z'
created_at: '2020-12-04T13:09:54.344Z'
updated_at: '2020-12-10T19:53:45.362Z'
licenseGroups:
- lgrp_608513da-b213-4e15-80af-bd88c27f0979
isGift: false
properties:
id:
type: string
minLength: 1
example: 'vrchatplus-yearly'
transactionId:
$ref: ./TransactionID.yaml
store:
type: string
minLength: 1
description: Which "Store" it came from. Right now only Stores are "Steam" and "Admin".
example: 'Steam'
steamItemId:
type: string
minLength: 1
example: '5000'
amount:
type: number
example: 9999
description:
type: string
example: 'VRChat Plus (Yearly)'
period:
$ref: ./SubscriptionPeriod.yaml
tier:
type: number
example: 5
active:
type: boolean
default: true
status:
$ref: ./TransactionStatus.yaml
starts:
type: string
format: date-time
example: '2022-03-04T00:00:00.000Z'
expires:
type: string
format: date-time
example: '2022-03-04T00:00:00.000Z'
created_at:
type: string
format: date-time
example: '2022-03-04T00:00:00.000Z'
updated_at:
type: string
format: date-time
example: '2022-03-04T00:00:00.000Z'
licenseGroups:
type: array
items:
Expand Down

0 comments on commit 737eab9

Please sign in to comment.