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:
William Cheng
2023-01-11 20:29:13 +08:00
committed by GitHub
parent 3f96cdb756
commit 50e295e3c6
35 changed files with 2479 additions and 1 deletions

View File

@@ -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: