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

Add support for parsing YAML specs #198

Merged
merged 4 commits into from
Mar 15, 2016
Merged

Conversation

sjaensch
Copy link
Contributor

@sjaensch sjaensch commented Mar 6, 2016

My goal is to stay compatible with the YAML specs in the OpenAPI repository. This necessitates the cast of HTML status codes to strings, since otherwise there will be an exception when trying to use the parsed spec.

Closes #168

else:
return response.json()

def load_yaml(self, text):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just load them all as if they're yaml? Json is just a yaml subset

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes but YAML is not a JSON subset, we'd be potentially parsing/ingesting files that are not valid JSON.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmm I guess that's fair.

@analogue
Copy link
Contributor

👍

analogue added a commit that referenced this pull request Mar 15, 2016
Add support for parsing YAML specs
@analogue analogue merged commit 7797412 into Yelp:master Mar 15, 2016
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.

None yet

3 participants