-
Notifications
You must be signed in to change notification settings - Fork 130
Parsing the class location iteratively #212
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
Conversation
hydrus/parser/openapi_parser.py
Outdated
| return class_location[len(class_location)-1] | ||
|
|
||
|
|
||
| def get_data_at_location(class_location, doc): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use mypy format and add proper DocStrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hydrus/parser/openapi_parser.py
Outdated
|
|
||
| def get_data_at_location(class_location: List[str], doc: Dict[str,Any]) -> Dict[str,Any]: | ||
| """ | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add proper Docstrings explaining what each function does along with parameter explanations.
hydrus/parser/openapi_parser.py
Outdated
| def parse(doc): | ||
| def parse(doc: Dict[str, Any]) -> str: | ||
| """ | ||
| parent function for parsing the open api documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vaibhavchellani You should also use proper punctuations for function explanations in Docstrings.
|
@xadahiya please let me know if there are any other changes or if the quality standards are not being met . |
Fixes #211
Checklist
Description
The parser can now go to any level deep to parse class or other objects .Earlier we were only able to go 1 level deep now we are parsing iteratively to fetch data.
Test Logs