Fix OpenAPI compatibility problems.
This commit is contained in:
parent
e3170d1c01
commit
7bb0aa3ca7
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue