fastapi_client
fastapi_client copied to clipboard
FastAPI client generator
After running the command on macos ``` ./scripts/generate.sh \ -i https://raw.githubusercontent.com/alpacahq/bkdocs/master/assets/openapi.yaml \ -p client \ -o generated \ -n api.services.alpaca.broker.client ``` I get the output ``` Storing intermediate outputs in...
Solves the problem described in #25 Tests are failing on this branch as well as on master (Python 3.8, macOS 11.2)
When running a simple example client I get the following error: ``` pydantic.errors.ConfigError: field "status" not yet prepared so type is still a ForwardRef, you might need to call Metadata.update_forward_refs()....
### Description Cannot generate models with nullable enums. The normal openapi-generator tool with the default `python` generator does not encounter this error (tried with both v4.1.2 and v.5.2.1). ### Minimal...
202 ACCEPTED should also be a valid response status code
Hi! Thanks a lot for the project! I'm trying to generate a client lib using this tool and I'm facing some issues, specifically with setting custom headers for the request....
There is no 204 status code support in api_client.py, which will cause issue when status code is 204 like `set_assignee` api etc. ## Current Code ```python async def send(self, request:...
The models in the temporary work directory for several classes are empty and causes the generator to stop. The models in question are looking like: ``` class TraitNewRequest(BaseModel): ``` What...
If we provide regex pattern in openapi schema components, say a password field has pattern as - (?=.*[A-Z]), Generated Pydantic models doesn't have this pattern.
Would you consider refactoring this project as a Python CLI tool? Currently I cannot even try it, because I need to clone the repository to be able to run the...