From 470642fdb21776f2785c0762634c37d2d975705a Mon Sep 17 00:00:00 2001 From: SpaceAdmiral Date: Thu, 26 Oct 2023 17:40:39 -0700 Subject: [PATCH] update: add waypoint query filters for type and traits --- reference/SpaceTraders.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/reference/SpaceTraders.json b/reference/SpaceTraders.json index d403555..e1a4dbc 100644 --- a/reference/SpaceTraders.json +++ b/reference/SpaceTraders.json @@ -502,6 +502,32 @@ "in": "query", "name": "limit", "description": "How many entries to return per page" + }, + { + "description": "Filter waypoints by type.", + "in": "query", + "name": "type", + "schema": { + "$ref": "../models/WaypointType.json" + } + }, + { + "description": "Filter waypoints by one or more traits.", + "in": "query", + "name": "traits", + "schema": { + "oneOf": [ + { + "$ref": "../models/WaypointTrait.json" + }, + { + "type": "array", + "items": { + "$ref": "../models/WaypointTrait.json" + } + } + ] + } } ], "security": [