From 8676e4aa02983bd966b52bc1b4ab97461a74ec76 Mon Sep 17 00:00:00 2001 From: SpaceAdmiral Date: Fri, 11 Mar 2022 19:21:23 -0800 Subject: [PATCH] Modified reference/SpaceTraders.yaml --- reference/SpaceTraders.yaml | 60 +++++++++++++++++++------------------ 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/reference/SpaceTraders.yaml b/reference/SpaceTraders.yaml index 256b0ee..8fb39aa 100644 --- a/reference/SpaceTraders.yaml +++ b/reference/SpaceTraders.yaml @@ -1173,29 +1173,6 @@ paths: schema: description: '' type: object - properties: - data: - type: object - properties: - shipSymbol: - type: string - minLength: 1 - departure: - type: string - minLength: 1 - destination: - type: string - minLength: 1 - durationRemaining: - type: number - arrivedAt: {} - required: - - shipSymbol - - departure - - destination - - durationRemaining - required: - - data x-examples: example-1: data: @@ -1204,15 +1181,27 @@ paths: destination: X1-OE-A005 durationRemaining: 2159 arrivedAt: null + properties: + data: + type: object + properties: + navigation: + $ref: ../models/ShipNavigation.yaml + fuelCost: + type: number + required: + - data examples: Success: value: data: - shipSymbol: 3AE434-1 - departure: X1-OE-PM - destination: X1-OE-A005 - durationRemaining: 2159 - arrivedAt: null + fuelCost: 38 + navigation: + shipSymbol: BA03F2-1 + departure: X1-OE-PM + destination: X1-OE-A005 + durationRemaining: 2279 + arrivedAt: null operationId: post-my-ships-shipSymbol-navigate requestBody: content: @@ -1244,9 +1233,22 @@ paths: arrivedAt: null properties: data: - $ref: ../models/ShipNavigation.yaml + type: object + properties: + navigation: + $ref: ../models/ShipNavigation.yaml required: - data + examples: + Success: + value: + data: + navigation: + shipSymbol: BA03F2-1 + departure: X1-OE-PM + destination: X1-OE-A005 + durationRemaining: 2279 + arrivedAt: null description: Get the status of your last navigation. security: - AgentToken: []