instrumenta / openapi2jsonschema

Convert OpenAPI definitions into JSON schemas for all types in the API
Other
226 stars 87 forks source link

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

Open larsks opened 2 years ago

larsks commented 2 years ago

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

Closes #57

larsks commented 1 year ago

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