Created
March 2, 2016 00:18
-
-
Save stubailo/a8babe2abd039d408805 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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