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

conversion failed #141

Open
totaluserkksssssks opened this issue May 31, 2019 · 1 comment
Open

conversion failed #141

totaluserkksssssks opened this issue May 31, 2019 · 1 comment

Comments

@totaluserkksssssks
Copy link

Hello, tried to convert this:
https://jdegre.github.io/5GC_APIs/editor/?url=https://raw.githubusercontent.com/jdegre/5GC_APIs/master/TS29122_NIDD.yaml

swagger_py_codegen --swagger-doc openapi.yaml appdir2 No handlers could be found for logger "jsonspec.pointer.bases" Traceback (most recent call last): File "/home/ubuntu/.local/bin/swagger_py_codegen", line 11, in <module> sys.exit(generate()) File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/ubuntu/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/home/ubuntu/.local/lib/python2.7/site-packages/swagger_py_codegen/command.py", line 177, in generate swagger = Swagger(data) File "/home/ubuntu/.local/lib/python2.7/site-packages/swagger_py_codegen/parser.py", line 65, in __init__ self._process_ref() File "/home/ubuntu/.local/lib/python2.7/site-packages/swagger_py_codegen/parser.py", line 72, in _process_ref data = resolve(self.data, ref) File "/home/ubuntu/.local/lib/python2.7/site-packages/jsonspec/reference/__init__.py", line 62, in resolve return registry.resolve(local) File "/home/ubuntu/.local/lib/python2.7/site-packages/jsonspec/reference/bases.py", line 48, in resolve obj = token.extract(obj, bypass_ref=True) File "/home/ubuntu/.local/lib/python2.7/site-packages/jsonspec/pointer/bases.py", line 223, in extract obj = self.extract_mapping(obj) File "/home/ubuntu/.local/lib/python2.7/site-packages/jsonspec/pointer/bases.py", line 251, in extract_mapping raise OutOfBounds(obj, 'member {!r} not found'.format(str(self))) jsonspec.pointer.exceptions.OutOfBounds: "member 'responses' not found"

But unfortunately this does not work, could you help me, please?

@Weilor
Copy link

Weilor commented Nov 25, 2019

Sorry for replying you so late. But according to your information I think this is because one path defined in your yaml file did not conclude a response definition. If have any other question please contact us again.

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

2 participants