Skip to content

Instantly share code, notes, and snippets.

@grechaw
Created January 25, 2016 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grechaw/e92e67aeceaffbc351c8 to your computer and use it in GitHub Desktop.
Save grechaw/e92e67aeceaffbc351c8 to your computer and use it in GitHub Desktop.
Example of JSON entity type.
{
"info": {
"title": "Person",
"version": "0.0.2"
},
"definitions": {
"Person": {
"properties": {
"id": {
"type": "string"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"fullName": {
"type": "string"
},
"address": {
"type": "string"
},
"friendOf": {
"$ref": "#/definitions"
}
},
"primary-key":["id"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment