mirror of
https://github.com/fastapi/fastapi.git
synced 2026-02-26 11:46:43 -05:00
Fix comment for different parameter types
This commit is contained in:
@@ -849,7 +849,7 @@ def test_nullable_with_non_null_default_schema(path: str):
|
||||
}
|
||||
|
||||
if path == "/model-nullable-with-non-null-default":
|
||||
# Check default value for list_val param for model-based Body parameters only.
|
||||
# Check default value for list_val param for model-based parameters only.
|
||||
# default_factory is not reflected in OpenAPI schema
|
||||
assert body_model["properties"]["list_val"]["default"] == [0]
|
||||
|
||||
|
||||
@@ -576,7 +576,7 @@ def test_nullable_with_non_null_default_schema(path: str):
|
||||
}
|
||||
|
||||
if path == "/model-nullable-with-non-null-default":
|
||||
# Check default value for list_val param for model-based Body parameters only.
|
||||
# Check default value for list_val param for model-based parameters only.
|
||||
# default_factory is not reflected in OpenAPI schema
|
||||
assert body_model["properties"]["list_val"]["default"] == [0]
|
||||
|
||||
|
||||
@@ -462,7 +462,7 @@ def test_nullable_with_non_null_default_schema(path: str):
|
||||
]
|
||||
|
||||
if path == "/model-nullable-with-non-null-default":
|
||||
# Check default value for list_val param for model-based Body parameters only.
|
||||
# Check default value for list_val param for model-based parameters only.
|
||||
# default_factory is not reflected in OpenAPI schema
|
||||
assert parameters[2]["schema"]["default"] == [0]
|
||||
|
||||
|
||||
@@ -422,7 +422,7 @@ def test_nullable_with_non_null_default_schema(path: str):
|
||||
]
|
||||
|
||||
if path == "/model-nullable-with-non-null-default":
|
||||
# Check default value for list_val param for model-based Body parameters only.
|
||||
# Check default value for list_val param for model-based parameters only.
|
||||
# default_factory is not reflected in OpenAPI schema
|
||||
assert parameters[2]["schema"]["default"] == [0]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user