Fix OpenAPI compatibility problems.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-12-12 20:04:37 -06:00
parent e3170d1c01
commit 7bb0aa3ca7
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
2 changed files with 16 additions and 4 deletions

View File

@ -61,9 +61,14 @@ use OpenApi\Annotations as OA;
name: "station_id_required",
in: "path",
required: true,
schema: new OA\Schema(),
// new OA\Schema(type: "integer", format: "int64"),
// new OA\Schema(type: "string", format: "string"),
schema: new OA\Schema(
properties: [
'anyOf' => [
new OA\Schema(type: "integer", format: "int64"),
new OA\Schema(type: "string", format: "string")
]
]
),
),
OA\Response(
response: "todo",

View File

@ -4086,7 +4086,14 @@ components:
name: station_id_required
in: path
required: true
schema: { }
schema:
anyOf:
-
type: integer
format: int64
-
type: string
format: string
securitySchemes:
api_key:
type: apiKey