Skip to content

Instantly share code, notes, and snippets.

@stubailo
Created March 2, 2016 00:18
Show Gist options
  • Save stubailo/a8babe2abd039d408805 to your computer and use it in GitHub Desktop.
Save stubailo/a8babe2abd039d408805 to your computer and use it in GitHub Desktop.
// http://swapi.co/api/people/schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of this person."
},
"birth_year": {
"type": "string",
"description": "The birth year of this person. BBY (Before the Battle of Yavin) or ABY (After the Battle of Yavin)."
},
"vehicles": {
"type": "array",
"description": "An array of vehicle resources that this person has piloted"
},
...
},
"$schema": "http://json-schema.org/draft-04/schema",
"required": [
"name",
"height",
...
],
"title": "People",
"description": "A person within the Star Wars universe"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment