Skip to content

Instantly share code, notes, and snippets.

@Killavus
Created March 1, 2016 14:46
Show Gist options
  • Select an option

  • Save Killavus/3c1dcc34523ab6adb418 to your computer and use it in GitHub Desktop.

Select an option

Save Killavus/3c1dcc34523ab6adb418 to your computer and use it in GitHub Desktop.
How to check whether your JSON response is a valid JSON API response?
1. Download the schema: http://jsonapi.org/schema
Disclaimer: Validation will not yield false negatives, but could yield false positives for the sake of flexibility.
2. Enter: http://jsonschemalint.com/draft4/#
3. Paste the schema on the left side, your response on the right side.
You should have your response validated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment