Browse Source

Update snapshots to reflect latest changes in file param schema

pull/14829/head
Yurii Motov 3 months ago
parent
commit
7e96b8b8fa
  1. 12
      tests/test_request_params/test_file/test_nullable_and_defaults.py

12
tests/test_request_params/test_file/test_nullable_and_defaults.py

@ -76,14 +76,14 @@ def test_nullable_required_schema(path: str):
"properties": { "properties": {
"file": { "file": {
"title": "File", "title": "File",
"anyOf": [{"type": "string", "format": "binary"}, {"type": "null"}], "anyOf": [{"type": "string", "contentMediaType": "application/octet-stream"}, {"type": "null"}],
}, },
"files": { "files": {
"title": "Files", "title": "Files",
"anyOf": [ "anyOf": [
{ {
"type": "array", "type": "array",
"items": {"type": "string", "format": "binary"}, "items": {"type": "string", "contentMediaType": "application/octet-stream"},
}, },
{"type": "null"}, {"type": "null"},
], ],
@ -255,7 +255,7 @@ def test_nullable_non_required_schema(path: str):
"properties": { "properties": {
"file": { "file": {
"title": "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 # "default": None, # `None` values are omitted in OpenAPI schema
}, },
"files": { "files": {
@ -263,7 +263,7 @@ def test_nullable_non_required_schema(path: str):
"anyOf": [ "anyOf": [
{ {
"type": "array", "type": "array",
"items": {"type": "string", "format": "binary"}, "items": {"type": "string", "contentMediaType": "application/octet-stream"},
}, },
{"type": "null"}, {"type": "null"},
], ],
@ -399,7 +399,7 @@ def test_nullable_with_non_null_default_schema(path: str):
"file": { "file": {
"title": "File", "title": "File",
"anyOf": [ "anyOf": [
{"type": "string", "format": "binary"}, {"type": "string", "contentMediaType": "application/octet-stream"},
{"type": "null"}, {"type": "null"},
], ],
"default": "default", # <= Default value here looks strange to me "default": "default", # <= Default value here looks strange to me
@ -409,7 +409,7 @@ def test_nullable_with_non_null_default_schema(path: str):
"anyOf": [ "anyOf": [
{ {
"type": "array", "type": "array",
"items": {"type": "string", "format": "binary"}, "items": {"type": "string", "contentMediaType": "application/octet-stream"},
}, },
{"type": "null"}, {"type": "null"},
], ],

Loading…
Cancel
Save