From 737eab92c1e3b62c15cce6a42f7ce20cae4c11aa Mon Sep 17 00:00:00 2001 From: C0D3 M4513R <28912031+C0D3-M4513R@users.noreply.github.com> Date: Mon, 22 Jul 2024 22:24:08 +0200 Subject: [PATCH] Update UserSubscription with new properties (#361) * 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 --- .../components/schemas/UserSubscription.yaml | 30 ++++++++----------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/openapi/components/schemas/UserSubscription.yaml b/openapi/components/schemas/UserSubscription.yaml index da2767bd..e7d0c68a 100644 --- a/openapi/components/schemas/UserSubscription.yaml +++ b/openapi/components/schemas/UserSubscription.yaml @@ -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: