Skip to content
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

OpenAPI: list index out of range #356

Open
ifujis opened this issue Nov 25, 2021 · 0 comments
Open

OpenAPI: list index out of range #356

ifujis opened this issue Nov 25, 2021 · 0 comments

Comments

@ifujis
Copy link

ifujis commented Nov 25, 2021

OpenAPI module:
Opening api/v1/{integration}/swagger.json results in Internal Server Error when Integration has a model with a selection field that has no options defined.

Cause:
controllers/pinguin.py
list index out of range exception at if isinstance(meta["selection"][0][0], int).

Possible fix:
Add a check if the meta["selection"] is not empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant