Skip to content

Commit ce338a4

Browse files
authored
Added UUID support in python docs (#22301)
1 parent fb444bf commit ce338a4

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

docs/generators/python-aiohttp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
156156
|DateTime|✓|OAS2,OAS3
157157
|Password|✓|OAS2,OAS3
158158
|File|✓|OAS2
159-
|Uuid||
159+
|Uuid||
160160
|Array|✓|OAS2,OAS3
161161
|Null|✗|OAS3
162162
|AnyType|✗|OAS2,OAS3

docs/generators/python-blueplanet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
156156
|DateTime|✓|OAS2,OAS3
157157
|Password|✓|OAS2,OAS3
158158
|File|✓|OAS2
159-
|Uuid||
159+
|Uuid||
160160
|Array|✓|OAS2,OAS3
161161
|Null|✗|OAS3
162162
|AnyType|✗|OAS2,OAS3

docs/generators/python-fastapi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
151151
|DateTime|✓|OAS2,OAS3
152152
|Password|✓|OAS2,OAS3
153153
|File|✓|OAS2
154-
|Uuid||
154+
|Uuid||
155155
|Array|✓|OAS2,OAS3
156156
|Null|✗|OAS3
157157
|AnyType|✗|OAS2,OAS3

docs/generators/python-flask.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
156156
|DateTime|✓|OAS2,OAS3
157157
|Password|✓|OAS2,OAS3
158158
|File|✓|OAS2
159-
|Uuid||
159+
|Uuid||
160160
|Array|✓|OAS2,OAS3
161161
|Null|✗|OAS3
162162
|AnyType|✗|OAS2,OAS3

docs/generators/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
156156
|DateTime|✓|OAS2,OAS3
157157
|Password|✓|OAS2,OAS3
158158
|File|✓|OAS2
159-
|Uuid||
159+
|Uuid||
160160
|Array|✓|OAS2,OAS3
161161
|Null|✗|OAS3
162162
|AnyType|✗|OAS2,OAS3

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPythonCodegen.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import org.apache.commons.lang3.StringUtils;
2626
import org.openapitools.codegen.*;
2727
import org.openapitools.codegen.meta.features.SecurityFeature;
28+
import org.openapitools.codegen.meta.features.DataTypeFeature;
2829
import org.openapitools.codegen.model.ModelMap;
2930
import org.openapitools.codegen.model.ModelsMap;
3031
import org.openapitools.codegen.model.OperationMap;
@@ -71,7 +72,9 @@ public AbstractPythonCodegen() {
7172
SecurityFeature.BearerToken,
7273
SecurityFeature.ApiKey,
7374
SecurityFeature.OAuth2_Implicit
74-
)));
75+
)).includeDataTypeFeatures(
76+
DataTypeFeature.Uuid
77+
));
7578

7679
// from https://docs.python.org/3/reference/lexical_analysis.html#keywords
7780
setReservedWordsLowerCase(

0 commit comments

Comments
 (0)