HTTP-APIs / hydra-openapi-parser

OpenAPI to Hydra parser
MIT License
9 stars 9 forks source link

Error in parsing Open-API documentation #21

Open vrutik2809 opened 2 years ago

vrutik2809 commented 2 years ago

I'm submitting a

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:

Do you want to work on this issue?

Yes

Mec-iS commented 2 years ago

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 commented 2 years ago

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

Mec-iS commented 2 years ago

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

vrutik2809 commented 2 years ago

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