File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
modules/swagger-codegen/src/main/resources/flaskConnexion Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,17 @@ def {{operationId}}({{#allParams}}{{paramName}}{{^required}}=None{{/required}}{{
19
19
{ {#isPrimitiveType} }
20
20
:type { {paramName} }: { {> param_type} }
21
21
{ {/isPrimitiveType} }
22
+ { {#isUuid} }
23
+ :type { {paramName} }: { {> param_type} }
24
+ { {/isUuid} }
22
25
{ {^isPrimitiveType} }
23
26
{ {#isFile} }
24
27
:type { {paramName} }: werkzeug.datastructures.FileStorage
25
28
{ {/isFile} }
26
29
{ {^isFile} }
30
+ { {^isUuid} }
27
31
:type { {paramName} }: dict | bytes
32
+ { {/isUuid} }
28
33
{ {/isFile} }
29
34
{ {/isPrimitiveType} }
30
35
{ {/isContainer} }
@@ -62,8 +67,10 @@ def {{operationId}}({{#allParams}}{{paramName}}{{^required}}=None{{/required}}{{
62
67
{ {/isDateTime} }
63
68
{ {^isPrimitiveType} }
64
69
{ {^isFile} }
70
+ { {^isUuid} }
65
71
if connexion.request.is_json:
66
72
{ {paramName} } = { {baseType} }.from_dict(connexion.request.get_json()) # noqa: E501
73
+ { {/isUuid} }
67
74
{ {/isFile} }
68
75
{ {/isPrimitiveType} }
69
76
{ {/isContainer} }
You can’t perform that action at this time.
0 commit comments