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

support swagger spec in yaml format #149

Merged
merged 1 commit into from
Jan 15, 2019
Merged

support swagger spec in yaml format #149

merged 1 commit into from
Jan 15, 2019

Conversation

dfrommi
Copy link
Contributor

@dfrommi dfrommi commented Jan 11, 2019

Swagger specs can be defined in JSON and YAML format.

This PR adds YAML support by falling back to yaml-parsing if JSON-parser throws an error. PyYaml is required as additional requirement.

@eliangcs
Copy link
Contributor

Looks good. Thanks for contributing!

@eliangcs eliangcs merged commit 189321f into httpie:master Jan 15, 2019
@@ -113,9 +114,12 @@ def cli(spec, env, url, http_options):
try:
spec = json.loads(content)
except json.JSONDecodeError:
click.secho("Warning: Specification file '%s' is not JSON" %

Choose a reason for hiding this comment

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

this is confusing, why not remove it completely?

@erodewald
Copy link

When is this merged code going to be released?

@zeph zeph mentioned this pull request May 20, 2021
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

4 participants