forked from loafle/openapi-generator-original
Fix missing import in allOf query parameters (#14408)
* add test for allOf in query parameter * fix missing import in allof query parameter * update samples * update samples
This commit is contained in:
@@ -147,6 +147,29 @@ paths:
|
||||
tags:
|
||||
- query
|
||||
x-accepts: text/plain
|
||||
/query/style_deepObject/explode_true/object/allOf:
|
||||
get:
|
||||
description: Test query parameter(s)
|
||||
operationId: test/query/style_deepObject/explode_true/object/allOf
|
||||
parameters:
|
||||
- explode: true
|
||||
in: query
|
||||
name: query_object
|
||||
required: false
|
||||
schema:
|
||||
$ref: '#/components/schemas/BirdAndCategory'
|
||||
style: deepObject
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
description: Successful operation
|
||||
summary: Test query parameter(s)
|
||||
tags:
|
||||
- query
|
||||
x-accepts: text/plain
|
||||
/echo/body/Pet:
|
||||
post:
|
||||
description: Test body parameter(s)
|
||||
@@ -255,6 +278,17 @@ components:
|
||||
type: object
|
||||
xml:
|
||||
name: pet
|
||||
Bird:
|
||||
properties:
|
||||
size:
|
||||
type: string
|
||||
color:
|
||||
type: string
|
||||
type: object
|
||||
BirdAndCategory:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Bird'
|
||||
- $ref: '#/components/schemas/Category'
|
||||
test_query_style_form_explode_true_array_string_query_object_parameter:
|
||||
properties:
|
||||
values:
|
||||
|
||||
Reference in New Issue
Block a user