mirror of https://github.com/tiangolo/fastapi.git
Update snapshots to reflect latest changes in file param schema
This commit is contained in:
parent
1a251c63c2
commit
7e96b8b8fa
|
|
@ -76,14 +76,14 @@ def test_nullable_required_schema(path: str):
|
|||
"properties": {
|
||||
"file": {
|
||||
"title": "File",
|
||||
"anyOf": [{"type": "string", "format": "binary"}, {"type": "null"}],
|
||||
"anyOf": [{"type": "string", "contentMediaType": "application/octet-stream"}, {"type": "null"}],
|
||||
},
|
||||
"files": {
|
||||
"title": "Files",
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {"type": "string", "format": "binary"},
|
||||
"items": {"type": "string", "contentMediaType": "application/octet-stream"},
|
||||
},
|
||||
{"type": "null"},
|
||||
],
|
||||
|
|
@ -255,7 +255,7 @@ def test_nullable_non_required_schema(path: str):
|
|||
"properties": {
|
||||
"file": {
|
||||
"title": "File",
|
||||
"anyOf": [{"type": "string", "format": "binary"}, {"type": "null"}],
|
||||
"anyOf": [{"type": "string", "contentMediaType": "application/octet-stream"}, {"type": "null"}],
|
||||
# "default": None, # `None` values are omitted in OpenAPI schema
|
||||
},
|
||||
"files": {
|
||||
|
|
@ -263,7 +263,7 @@ def test_nullable_non_required_schema(path: str):
|
|||
"anyOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {"type": "string", "format": "binary"},
|
||||
"items": {"type": "string", "contentMediaType": "application/octet-stream"},
|
||||
},
|
||||
{"type": "null"},
|
||||
],
|
||||
|
|
@ -399,7 +399,7 @@ def test_nullable_with_non_null_default_schema(path: str):
|
|||
"file": {
|
||||
"title": "File",
|
||||
"anyOf": [
|
||||
{"type": "string", "format": "binary"},
|
||||
{"type": "string", "contentMediaType": "application/octet-stream"},
|
||||
{"type": "null"},
|
||||
],
|
||||
"default": "default", # <= Default value here looks strange to me
|
||||
|
|
@ -409,7 +409,7 @@ def test_nullable_with_non_null_default_schema(path: str):
|
|||
"anyOf": [
|
||||
{
|
||||
"type": "array",
|
||||
"items": {"type": "string", "format": "binary"},
|
||||
"items": {"type": "string", "contentMediaType": "application/octet-stream"},
|
||||
},
|
||||
{"type": "null"},
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in New Issue