This doesn't resolve type-hinting, but changes json_body to be **json_body and adds a normalize step in the body of each method. openapi-python-client doesn't seem to directly expose a way to interrogate the model properties, only the model name from the template. This means we'll need more work to get the TypeHinting correct though even now it's not wired up due to how APIStub works. I'll tackle the APIStub issue in another update.
This is a breaking change but allows a more reasonable approach to interacting with the API
Before:
After:
This doesn't resolve type-hinting, but changes
json_body
to be**json_body
and adds a normalize step in the body of each method. openapi-python-client doesn't seem to directly expose a way to interrogate the model properties, only the model name from the template. This means we'll need more work to get the TypeHinting correct though even now it's not wired up due to how APIStub works. I'll tackle the APIStub issue in another update.