Skip to content

Conversation

@vaibhavchellani
Copy link
Contributor

Fixes #211

Checklist

  • My branch is up-to-date with upstream/develop branch.
  • Everything works and tested for Python 3.5.2 and above.

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

screen shot 2018-06-18 at 1 28 30 pm

return class_location[len(class_location)-1]


def get_data_at_location(class_location, doc):
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xadahiya fixed , other mypy errors have been fixed in #210


def get_data_at_location(class_location: List[str], doc: Dict[str,Any]) -> Dict[str,Any]:
"""
Copy link
Member

@xadahiya xadahiya Jun 24, 2018

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.

def parse(doc):
def parse(doc: Dict[str, Any]) -> str:
"""
parent function for parsing the open api documentation
Copy link
Member

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.

@vaibhavchellani
Copy link
Contributor Author

@xadahiya please let me know if there are any other changes or if the quality standards are not being met .

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

Successfully merging this pull request may close these issues.

2 participants