From 078ca60601ce331313e942a0b78bf4bcf3285634 Mon Sep 17 00:00:00 2001 From: Space Admiral Date: Wed, 23 Mar 2022 08:37:54 -0700 Subject: [PATCH] update numbers to integers where appropriate --- models/Agent.yaml | 4 ++-- models/Contract.yaml | 18 +++++++++--------- models/ContractDelivery.yaml | 6 +++--- models/Cooldown.yaml | 8 ++++---- models/Extraction.yaml | 4 ++-- models/MarketTrade.yaml | 4 ++-- models/Meta.yaml | 8 ++++---- models/Ship.yaml | 8 ++++---- models/ShipNavigation.yaml | 4 ++-- models/ShipyardListing.yaml | 4 ++-- models/System.yaml | 16 ++++++++-------- models/Trade.yaml | 6 +++--- models/Waypoint.yaml | 16 ++++++++-------- 13 files changed, 53 insertions(+), 53 deletions(-) diff --git a/models/Agent.yaml b/models/Agent.yaml index 0689b8e..29839da 100644 --- a/models/Agent.yaml +++ b/models/Agent.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object x-examples: example-1: @@ -17,7 +17,7 @@ properties: type: string minLength: 1 credits: - type: number + type: integer required: - accountId - symbol diff --git a/models/Contract.yaml b/models/Contract.yaml index fc58707..90a8114 100644 --- a/models/Contract.yaml +++ b/models/Contract.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object properties: id: @@ -20,9 +20,9 @@ properties: type: object properties: onAccepted: - type: number + type: integer onFulfilled: - type: number + type: integer required: - onAccepted - onFulfilled @@ -44,9 +44,9 @@ properties: type: string minLength: 1 units: - type: number + type: integer fulfilled: - type: number + type: integer required: - deadline - payment @@ -72,7 +72,7 @@ x-examples: faction: COMMERCE_REPUBLIC type: PROCUREMENT terms: - deadline: '2022-03-11T05:16:59.113Z' + deadline: "2022-03-11T05:16:59.113Z" payment: onAccepted: 20000 onFulfilled: 100000 @@ -83,13 +83,13 @@ x-examples: fulfilled: 0 accepted: false fulfilled: false - expiresAt: '2022-03-09T05:16:59.112Z' + expiresAt: "2022-03-09T05:16:59.112Z" examples: - id: cl0hok38t0014ks0jnoy8o5vh faction: COMMERCE_REPUBLIC type: PROCUREMENT terms: - deadline: '2022-03-11T05:16:59.113Z' + deadline: "2022-03-11T05:16:59.113Z" payment: onAccepted: 20000 onFulfilled: 100000 @@ -100,4 +100,4 @@ examples: fulfilled: 0 accepted: false fulfilled: false - expiresAt: '2022-03-09T05:16:59.112Z' + expiresAt: "2022-03-09T05:16:59.112Z" diff --git a/models/ContractDelivery.yaml b/models/ContractDelivery.yaml index ce9e068..8d3e18b 100644 --- a/models/ContractDelivery.yaml +++ b/models/ContractDelivery.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object properties: data: @@ -11,9 +11,9 @@ properties: type: string minLength: 1 units: - type: number + type: integer fulfilled: - type: number + type: integer required: - tradeSymbol - destination diff --git a/models/Cooldown.yaml b/models/Cooldown.yaml index fecca2b..85f7efc 100644 --- a/models/Cooldown.yaml +++ b/models/Cooldown.yaml @@ -1,8 +1,8 @@ -description: '' +description: "" type: object properties: duration: - type: number + type: integer expiration: type: string minLength: 1 @@ -12,7 +12,7 @@ required: x-examples: example-1: duration: 119 - expiration: '2022-03-12T00:41:29.285Z' + expiration: "2022-03-12T00:41:29.285Z" examples: - duration: 119 - expiration: '2022-03-12T00:41:29.285Z' + expiration: "2022-03-12T00:41:29.285Z" diff --git a/models/Extraction.yaml b/models/Extraction.yaml index 91e6181..3b415b5 100644 --- a/models/Extraction.yaml +++ b/models/Extraction.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object properties: shipSymbol: @@ -11,7 +11,7 @@ properties: type: string minLength: 1 units: - type: number + type: integer required: - tradeSymbol - units diff --git a/models/MarketTrade.yaml b/models/MarketTrade.yaml index 1093e9c..1f7eadc 100644 --- a/models/MarketTrade.yaml +++ b/models/MarketTrade.yaml @@ -8,9 +8,9 @@ properties: type: string minLength: 1 price: - type: number + type: integer tariff: - type: number + type: integer required: - waypointSymbol - tradeSymbol diff --git a/models/Meta.yaml b/models/Meta.yaml index bdc35fb..53922c0 100644 --- a/models/Meta.yaml +++ b/models/Meta.yaml @@ -1,12 +1,12 @@ -description: '' +description: "" type: object properties: total: - type: number + type: integer page: - type: number + type: integer limit: - type: number + type: integer required: - total - page diff --git a/models/Ship.yaml b/models/Ship.yaml index cf6a2fc..40a50be 100644 --- a/models/Ship.yaml +++ b/models/Ship.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object x-examples: example-1: @@ -93,7 +93,7 @@ properties: type: string minLength: 1 fee: - type: number + type: integer role: type: string minLength: 1 @@ -127,12 +127,12 @@ properties: type: string minLength: 1 units: - type: number + type: integer required: - tradeSymbol - units fuel: - type: number + type: integer required: - symbol - frame diff --git a/models/ShipNavigation.yaml b/models/ShipNavigation.yaml index f4b1c3d..b142d4e 100644 --- a/models/ShipNavigation.yaml +++ b/models/ShipNavigation.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object properties: shipSymbol: @@ -11,7 +11,7 @@ properties: type: string minLength: 1 durationRemaining: - type: number + type: integer arrivedAt: {} required: - shipSymbol diff --git a/models/ShipyardListing.yaml b/models/ShipyardListing.yaml index 11715ee..63ed2fb 100644 --- a/models/ShipyardListing.yaml +++ b/models/ShipyardListing.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object x-examples: example-1: @@ -33,7 +33,7 @@ properties: type: string minLength: 1 price: - type: number + type: integer role: type: string minLength: 1 diff --git a/models/System.yaml b/models/System.yaml index 9eca407..8581157 100644 --- a/models/System.yaml +++ b/models/System.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object x-examples: example-1: @@ -6,7 +6,7 @@ x-examples: sector: X1 type: RED_STAR x: 0 - 'y': 0 + "y": 0 waypoints: - X1-OE-PM - X1-OE-PM01 @@ -23,7 +23,7 @@ examples: sector: X1 type: RED_STAR x: 0 - 'y': 0 + "y": 0 waypoints: - X1-OE-PM - X1-OE-PM01 @@ -46,9 +46,9 @@ properties: type: string minLength: 1 x: - type: number - 'y': - type: number + type: integer + "y": + type: integer waypoints: type: array items: @@ -62,13 +62,13 @@ properties: chartedBy: type: - string - - 'null' + - "null" required: - symbol - sector - type - x - - 'y' + - "y" - waypoints - factions - charted diff --git a/models/Trade.yaml b/models/Trade.yaml index cd4ca48..1d8b987 100644 --- a/models/Trade.yaml +++ b/models/Trade.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object properties: waypointSymbol: @@ -8,9 +8,9 @@ properties: type: string minLength: 1 credits: - type: number + type: integer units: - type: number + type: integer required: - waypointSymbol - tradeSymbol diff --git a/models/Waypoint.yaml b/models/Waypoint.yaml index b6308c1..b9e963a 100644 --- a/models/Waypoint.yaml +++ b/models/Waypoint.yaml @@ -1,4 +1,4 @@ -description: '' +description: "" type: object x-examples: example-1: @@ -6,7 +6,7 @@ x-examples: symbol: X1-OE-PM type: PLANET x: 10 - 'y': 5 + "y": 5 orbitals: - X1-OE-PM01 faction: COMMERCE_REPUBLIC @@ -26,7 +26,7 @@ examples: symbol: X1-OE-PM type: PLANET x: 10 - 'y': 5 + "y": 5 orbitals: - X1-OE-PM01 faction: COMMERCE_REPUBLIC @@ -52,9 +52,9 @@ properties: type: string minLength: 1 x: - type: number - 'y': - type: number + type: integer + "y": + type: integer orbitals: type: array items: @@ -75,13 +75,13 @@ properties: chartedBy: type: - string - - 'null' + - "null" required: - system - symbol - type - x - - 'y' + - "y" - orbitals - faction - features