mirror of https://github.com/tiangolo/fastapi.git
Fix comment for different parameter types
This commit is contained in:
parent
bfc09d9440
commit
c733bab825
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue