Skip to content

Commit d812b7c

Browse files
committed
fix generator spec for options response
1 parent c706fdc commit d812b7c

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

modules/swagger-generator/src/main/resources/openapi.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ paths:
113113
content:
114114
application/json:
115115
schema:
116-
type: array
117-
items:
118-
type: string
116+
type: "object"
117+
additionalProperties:
118+
$ref: "#/components/schemas/CliOption"
119119
components:
120120
parameters:
121121
version:
@@ -308,3 +308,19 @@ components:
308308
description: Remove prefix of operationId, e.g. config_getId => getId
309309
skipOverride:
310310
type: boolean
311+
CliOption:
312+
type: "object"
313+
properties:
314+
optionName:
315+
type: "string"
316+
description:
317+
type: "string"
318+
type:
319+
type: "string"
320+
description: "Data type is based on the types supported by the JSON-Schema"
321+
enum:
322+
type: "object"
323+
additionalProperties:
324+
type: "string"
325+
default:
326+
type: "string"

0 commit comments

Comments
 (0)