You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"v1.APIGroup": {
"description": "APIGroup contains the name, the supported versions, and the preferred version of a group.",
"type": "object",
"required": [
"name",
"versions"
],
...
openapi2jsonschema will fail with:
Traceback (most recent call last):
File "/home/lars/.local/bin/openapi2jsonschema", line 8, in <module>
sys.exit(default())
File "/home/lars/.local/lib/python3.10/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/lars/.local/lib/python3.10/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/lars/.local/lib/python3.10/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/lars/.local/lib/python3.10/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/lars/.local/lib/python3.10/site-packages/openapi2jsonschema/command.py", line 136, in default
group = title.split(".")[-3].lower()
IndexError: list index out of range
The text was updated successfully, but these errors were encountered:
larsks
added a commit
to larsks/openapi2jsonschema
that referenced
this issue
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.
Closesinstrumenta#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.
Closesinstrumenta#57
Faced with a definition like this:
openapi2jsonschema
will fail with:The text was updated successfully, but these errors were encountered: