Example of a parameter with . which breaks the generator (as YAML-formatted OAS):
/example:
get:
parameters:
- in: queryname: foo.barschema:
format: int32type: integer
- in: queryname: foo.bazschema:
format: int32type: integer
The generator builds the API method as:
asyncdefexample(
self,
foo.bar: int,
foo.baz: int,
**kwargs: Any
) ->ExampleResponse:
_query_params= {
"foo.bar": foo.bar,
"foo.baz": foo.baz,
}
# ...OpenAPI Generator replaces . with _, so the field name becomes foo_bar.
Example of a parameter with
.which breaks the generator (as YAML-formatted OAS):The generator builds the API method as:
OpenAPI Generator replaces
.with_, so the field name becomesfoo_bar.