Skip to content

[REQ] allow to pass a str to the Python aiohttp client #18972

Closed
@ziodave

Description

@ziodave

Is your feature request related to a problem? Please describe.

At the moment, it is not possible but to use bytes to pass raw data to the client

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/python/asyncio/rest.mustache#L183

This conflicts with definitions that are string and represented as StrictStr in model.

Describe the solution you'd like

Same solution as in the sample here:

elif isinstance(body, str) or isinstance(body, bytes):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions