Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

CLI: Support piping and raw JSON #205

Open
mohsen1 opened this issue Apr 26, 2015 · 5 comments
Open

CLI: Support piping and raw JSON #205

mohsen1 opened this issue Apr 26, 2015 · 5 comments

Comments

@mohsen1
Copy link
Contributor

mohsen1 commented Apr 26, 2015

Piping Example:

curl petstore.swagger.io/v2/swagger.json|swagger-tools validate

Raw JSON Example:

swagger-tools validate {my-json.....}
@mohsen1
Copy link
Contributor Author

mohsen1 commented Apr 26, 2015

/cc @earth2marsh

@whitlockjc
Copy link
Member

I'll make it happen.

@whitlockjc
Copy link
Member

I'm not sure how I'll do it just yet but here is a link that could be useful when I come back to it: tj/commander.js#137

@theganyo
Copy link
Contributor

theganyo commented May 6, 2015

FYI. You can already do this in the swagger CLI. Here's what I did: https://github.com/theganyo/swagger-node/blob/master/bin/swagger.js#L66, although I'm not sure you need to update it here as well...

@whitlockjc
Copy link
Member

I really just posted that link for posterity. I had it open in my browser for a week. ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants