Skip to content

Commit

Permalink
Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
artsmolin committed Sep 13, 2022
1 parent 9c0aebc commit bc8c92b
Show file tree
Hide file tree
Showing 4 changed files with 547 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ format: install-pre-commit clean
clients-for-tests:
python pythogen/entrypoint.py tests/docs/openapi.yaml tests/clients/async_client.py
python pythogen/entrypoint.py tests/docs/openapi.yaml tests/clients/async_client_with_metrics.py --metrics
python pythogen/entrypoint.py tests/docs/openapi_sendsay.yaml tests/clients/sendsay.py --metrics
python pythogen/entrypoint.py tests/docs/openapi.yaml tests/clients/sync_client.py --sync
python pythogen/entrypoint.py tests/docs/openapi.yaml tests/clients/sync_client_with_metrics.py --sync --metrics

Expand Down
4 changes: 3 additions & 1 deletion pythogen/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ def iterresponsemap(responses: models.ResponsesObject) -> List[Tuple[str, str]]:
mapping.append((code, mapper))
continue

raise NotImplementedError(f'Unable to create response mapping of {response.id} <{response.schema.type=}>')
raise NotImplementedError(
f'Unable to create response mapping of {response.id} <response.schema.type={response.schema.type}>'
)

return mapping

Expand Down
Loading

0 comments on commit bc8c92b

Please sign in to comment.