mirror of https://github.com/tiangolo/fastapi.git
fmt
This commit is contained in:
parent
dab77ec54b
commit
4ee9c097a2
|
|
@ -1172,27 +1172,21 @@ def test_openapi_schema():
|
|||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
},
|
||||
"type": "array"
|
||||
"items": {"type": "integer"},
|
||||
"type": "array",
|
||||
},
|
||||
"type": "object",
|
||||
"title": "Query",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "query",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"content": {"application/json": {"schema": {}}},
|
||||
},
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
|
|
@ -1202,9 +1196,9 @@ def test_openapi_schema():
|
|||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
"/query/mapping-params": {
|
||||
|
|
@ -1215,25 +1209,19 @@ def test_openapi_schema():
|
|||
{
|
||||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {"type": "string"},
|
||||
"type": "object",
|
||||
"title": "Queries",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "queries",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"content": {"application/json": {"schema": {}}},
|
||||
},
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
|
|
@ -1243,9 +1231,9 @@ def test_openapi_schema():
|
|||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
"/query/mapping-sequence-params": {
|
||||
|
|
@ -1257,27 +1245,21 @@ def test_openapi_schema():
|
|||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
},
|
||||
"type": "array"
|
||||
"items": {"type": "integer"},
|
||||
"type": "array",
|
||||
},
|
||||
"type": "object",
|
||||
"title": "Queries",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "queries",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"content": {"application/json": {"schema": {}}},
|
||||
},
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
|
|
@ -1287,9 +1269,9 @@ def test_openapi_schema():
|
|||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
"/query/mixed-params": {
|
||||
|
|
@ -1301,48 +1283,37 @@ def test_openapi_schema():
|
|||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
"items": {"type": "string"},
|
||||
"type": "array",
|
||||
},
|
||||
"type": "object",
|
||||
"title": "Sequence Mapping Queries",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "sequence_mapping_queries",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
},
|
||||
{
|
||||
"required": True,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {"type": "string"},
|
||||
"type": "object",
|
||||
"title": "Mapping Query"
|
||||
"title": "Mapping Query",
|
||||
},
|
||||
"name": "mapping_query",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
},
|
||||
{
|
||||
"required": True,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"title": "Query"
|
||||
},
|
||||
"schema": {"type": "string", "title": "Query"},
|
||||
"name": "query",
|
||||
"in": "query"
|
||||
}
|
||||
"in": "query",
|
||||
},
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"content": {"application/json": {"schema": {}}},
|
||||
},
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
|
|
@ -1352,9 +1323,9 @@ def test_openapi_schema():
|
|||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
"/query/mixed-type-params": {
|
||||
|
|
@ -1366,62 +1337,49 @@ def test_openapi_schema():
|
|||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"items": {
|
||||
"type": "integer"
|
||||
},
|
||||
"type": "array"
|
||||
"items": {"type": "integer"},
|
||||
"type": "array",
|
||||
},
|
||||
"type": "object",
|
||||
"title": "Sequence Mapping Queries",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "sequence_mapping_queries",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
},
|
||||
{
|
||||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"additionalProperties": {"type": "string"},
|
||||
"type": "object",
|
||||
"title": "Mapping Query Str",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "mapping_query_str",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
},
|
||||
{
|
||||
"required": False,
|
||||
"schema": {
|
||||
"additionalProperties": {
|
||||
"type": "integer"
|
||||
},
|
||||
"additionalProperties": {"type": "integer"},
|
||||
"type": "object",
|
||||
"title": "Mapping Query Int",
|
||||
"default": {}
|
||||
"default": {},
|
||||
},
|
||||
"name": "mapping_query_int",
|
||||
"in": "query"
|
||||
"in": "query",
|
||||
},
|
||||
{
|
||||
"required": True,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"title": "Query"
|
||||
},
|
||||
"schema": {"type": "integer", "title": "Query"},
|
||||
"name": "query",
|
||||
"in": "query"
|
||||
}
|
||||
"in": "query",
|
||||
},
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Successful Response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {}
|
||||
}
|
||||
}
|
||||
"content": {"application/json": {"schema": {}}},
|
||||
},
|
||||
"422": {
|
||||
"description": "Validation Error",
|
||||
|
|
@ -1431,11 +1389,11 @@ def test_openapi_schema():
|
|||
"$ref": "#/components/schemas/HTTPValidationError"
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue