Skip to content

Instantly share code, notes, and snippets.

@y0an
Created January 12, 2016 08:52
Show Gist options
  • Save y0an/f31fa6449771d69b8d28 to your computer and use it in GitHub Desktop.
Save y0an/f31fa6449771d69b8d28 to your computer and use it in GitHub Desktop.
Schema test
{
"required" : true ,
"$schema" : "http://json-schema.org/draft-03/schema" ,
"type" : "object" ,
"properties" : {
"month" : {
"type" : "string" ,
"required" : false
} ,
"num" : {
"type" : "number" ,
"required" : false
} ,
"link" : {
"type" : "string" ,
"required" : false
} ,
"year" : {
"type" : "string" ,
"required" : false
} ,
"news" : {
"type" : "string" ,
"required" : false
} ,
"safe_title" : {
"type" : "string" ,
"required" : false
} ,
"transcript" : {
"type" : "string" ,
"required" : false
} ,
"alt" : {
"type" : "string" ,
"required" : false
} ,
"img" : {
"type" : "string" ,
"required" : false
} ,
"title" : {
"type" : "string" ,
"required" : false
} ,
"day" : {
"type" : "string" ,
"required" : false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment