update samples

This commit is contained in:
William Cheng
2023-11-16 00:56:05 +08:00
parent 37451fa569
commit d9920a5b81
6 changed files with 14 additions and 16 deletions

View File

@@ -35,7 +35,8 @@ class TestErrorResponsesWithModel400Response(BaseModel):
model_config = {
"populate_by_name": True,
"validate_assignment": True
"validate_assignment": True,
"protected_namespaces": (),
}

View File

@@ -35,7 +35,8 @@ class TestErrorResponsesWithModel404Response(BaseModel):
model_config = {
"populate_by_name": True,
"validate_assignment": True
"validate_assignment": True,
"protected_namespaces": (),
}