Use inline allof instead of $ref in echo test (#14429)

* use inline allof instead of $ref in echo test

* update samples

* update samples

* fix tests
This commit is contained in:
William Cheng
2023-01-13 17:21:28 +08:00
committed by GitHub
parent ed2029f863
commit cf4f2c76b2
33 changed files with 1121 additions and 144 deletions

View File

@@ -157,7 +157,7 @@ paths:
name: query_object
required: false
schema:
$ref: '#/components/schemas/BirdAndCategory'
$ref: '#/components/schemas/test_query_style_deepObject_explode_true_object_allOf_query_object_parameter'
style: deepObject
responses:
"200":
@@ -285,10 +285,6 @@ components:
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:
@@ -296,4 +292,8 @@ components:
type: string
type: array
type: object
test_query_style_deepObject_explode_true_object_allOf_query_object_parameter:
allOf:
- $ref: '#/components/schemas/Bird'
- $ref: '#/components/schemas/Category'