Skip to content

Instantly share code, notes, and snippets.

@j-fuentes
Created January 27, 2016 14:29
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 j-fuentes/b14cc2057d449ce8c79e to your computer and use it in GitHub Desktop.
Save j-fuentes/b14cc2057d449ce8c79e to your computer and use it in GitHub Desktop.
Matic Draft 4 Example =====================

Uses http://json-schema.org/draft-04/schema#

Return to index

{
“items”:
“allOf”:
“Foo”: “title”: Foo

“description”:
A foo schema

“$schema”:
http://json-schema.org/draft-04/schema#

“type”:
object

“properties”:
“url”:
“title”:
A url

“description”:
An example url schema

“type”:
string

“format”:
uri

“example”:
http://github.com/mattyod/matic

“list”:
“title”:
A list

“description”:
A list of things

“type”:
array

“example”:
[ one, two, three ]

“required”:
[ url ]

“Bar”:
“title”:
Bar

“description”:
A bar schema

“$schema”:
http://json-schema.org/draft-04/schema#

“type”:
object

“properties”:
“thing”:
“title”:
thing

“description”:
a thing that uses a local pointer to an other thing for it’s properties

“type”:
object

“properties”:
“type”:
integer

“thing2”:
“type”:
integer

“otherThing”:
“id”:
example

“type”:
integer

“required”:
[ thing, thing2, otherThing ]

“anyOf”:
“Bish”:
“title”:
Bish
“description”:
A bish schema
“$schema”:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment