We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec3ed8b commit 4452faaCopy full SHA for 4452faa
1 file changed
templates/python/model_oneof.mustache
@@ -21,7 +21,7 @@ class {{classname}}({{#parent}}{{{.}}}{{/parent}}{{^parent}}BaseModel{{/parent}}
21
{{#composedSchemas.oneOf}}
22
# data type: {{{dataType}}}
23
{{#isString}}
24
- {{vendorExtensions.x-py-name}}: Optional[Annotated[{{{dataType}}}, Field(strict=True)]] = Field(default=None, description="{{{description}}}"{{#pattern}}, pattern=re.sub(r'^\/|\/$', '',"{{.}}"){{/pattern}})
+ {{vendorExtensions.x-py-name}}: Optional[Annotated[{{{dataType}}}, Field(strict=True)]] = Field(default=None, description="{{{description}}}"{{#pattern}}, pattern=re.sub(r'^\/|\/$', '',r"{{.}}"){{/pattern}})
25
{{/isString}}
26
{{^isString}}
27
{{vendorExtensions.x-py-name}}: {{{vendorExtensions.x-py-typing}}}
0 commit comments