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

Error in parsing Open-API documentation #21

Open
1 task done
vrutik2809 opened this issue Feb 12, 2022 · 4 comments
Open
1 task done

Error in parsing Open-API documentation #21

vrutik2809 opened this issue Feb 12, 2022 · 4 comments

Comments

@vrutik2809
Copy link

I'm submitting a

  • bug report.

Current Behaviour:

While executing openapi_parser.parse(doc: Dict[str, Any]) function, i'm getting an error as TypeError: HydraDoc.__init__() missing 1 required positional argument: 'doc_name'.

Expected Behaviour:

The function should return Hydra API Doc.

Steps to reproduce:

  • pass the YAML Open-API document in the openapi_parser.parse(doc: Dict[str, Any]) function using yaml.full_load().

Do you want to work on this issue?

Yes

@Mec-iS
Copy link
Contributor

Mec-iS commented Feb 12, 2022

The development of the parser has been left behind as in the last years we focused on different objectives. The parser is still very important to the big picture but we didn't have enough development time to keep it up.

The error is clear, the instantiation of the HydraDoc class needs a parameter.

@vrutik2809
Copy link
Author

vrutik2809 commented Feb 12, 2022

Ya, that I got it.
So, can I resolve this by opening a PR?

@Mec-iS
Copy link
Contributor

Mec-iS commented Feb 12, 2022

you don't need to ask, just open a PR in accordance to Github Workflow

@vrutik2809
Copy link
Author

While resolving the issue I am facing the following error: TypeError: HydraClass.__init__() got multiple values for argument 'path'.
Call trace: openapi_parser.parse -> get_paths -> check_for_ref -> get_class_details -> HydraClass

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