Skip to content

Avoid IndexError when definition titles have less than 3 components#58

Open
larsks wants to merge 1 commit intoinstrumenta:masterfrom
larsks:bug/57
Open

Avoid IndexError when definition titles have less than 3 components#58
larsks wants to merge 1 commit intoinstrumenta:masterfrom
larsks:bug/57

Conversation

@larsks
Copy link
Copy Markdown

@larsks larsks commented Nov 5, 2021

This will cause openapi2jsonschema to skip definitions that have fewer than 3 components in the name (like v1.APIGroup`), rather than
crashing with an IndexError.

Closes #57

This will cause `openapi2jsonschema to skip definitions that have
fewer than 3 components in the name (like `v1.APIGroup`), rather than
crashing with an IndexError.

Closes instrumenta#57
@larsks
Copy link
Copy Markdown
Author

larsks commented Mar 30, 2023

I'm collecting fixes in https://github.com/larsks/openapi2jsonschema. I've merged this patch into that repository.

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

Successfully merging this pull request may close these issues.

IndexError when definition titles have less than 3 components

1 participant