Skip to content

Allow responses with no content #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
acgray opened this issue Jun 8, 2020 · 1 comment
Closed

Allow responses with no content #63

acgray opened this issue Jun 8, 2020 · 1 comment
Labels
✨ enhancement New feature or improvement
Milestone

Comments

@acgray
Copy link

acgray commented Jun 8, 2020

Empty API responses are allowed by the OpenAPI spec but currently cause an error when parsing a schema which uses them:

https://github.com./triaxtec/openapi-python-client/blob/master/openapi_python_client/openapi_parser/responses.py#L82-L83

Instead, they should be supported, probably returning None as the response.

@acgray acgray added the ✨ enhancement New feature or improvement label Jun 8, 2020
@dbanty dbanty added this to the 0.4.2 milestone Jun 8, 2020
@dbanty
Copy link
Collaborator

dbanty commented Jun 13, 2020

Thanks @acgray , will release this in 0.4.2 shortly.

@dbanty dbanty closed this as completed Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or improvement
Projects
None yet
Development

No branches or pull requests

2 participants