File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
flask_parameter_validation/test/testing_blueprints Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ def optional(v: Optional[dict] = ParamType()):
31
31
@ValidateParameters ()
32
32
def default (
33
33
n_opt : dict = ParamType (default = {"a" : "b" }),
34
- opt : dict = ParamType (default = {"c" : "d" })
34
+ opt : Optional [ dict ] = ParamType (default = {"c" : "d" })
35
35
):
36
36
return jsonify ({
37
37
"n_opt" : n_opt ,
@@ -43,7 +43,7 @@ def default(
43
43
@ValidateParameters ()
44
44
def decorator_default (
45
45
n_opt : dict = ParamType (default = {"a" : "b" }),
46
- opt : dict = ParamType (default = {"c" : "d" })
46
+ opt : Optional [ dict ] = ParamType (default = {"c" : "d" })
47
47
):
48
48
return jsonify ({
49
49
"n_opt" : n_opt ,
@@ -55,7 +55,7 @@ def decorator_default(
55
55
@ValidateParameters ()
56
56
async def async_decorator_default (
57
57
n_opt : dict = ParamType (default = {"a" : "b" }),
58
- opt : dict = ParamType (default = {"c" : "d" })
58
+ opt : Optional [ dict ] = ParamType (default = {"c" : "d" })
59
59
):
60
60
return jsonify ({
61
61
"n_opt" : n_opt ,
You can’t perform that action at this time.
0 commit comments