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

client side tool to validate json #40

Closed
mbryzek opened this issue Jun 20, 2014 · 1 comment
Closed

client side tool to validate json #40

mbryzek opened this issue Jun 20, 2014 · 1 comment

Comments

@mbryzek
Copy link
Collaborator

mbryzek commented Jun 20, 2014

Would be great to have a simple client side tool that validated your json

In API: expose an endpoint that does not require validation that accepts an api.json file and returns a validation message or maybe just a list of validation errors.

Having no errors would be a sign that the json validated.

Then we could provide a wrapper (go client?) that provided a nice CLI, e.g:

apidoc validate api.json
=> Your document is valid

apidoc validate api.json
=> Your document is invalid:

  • "foo" is not a valid type
@mbryzek
Copy link
Collaborator Author

mbryzek commented Sep 5, 2014

Now available with curl:

curl -XPOST -d @./api.json http://api.apidoc.me/validations

this is a publicly accessible endpoint - accepts a json file and returns valid or a list of errors

@mbryzek mbryzek closed this as completed Sep 5, 2014
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

No branches or pull requests

1 participant