Show Menu
Cheatography

JSON Schema (Work In Progress) Cheat Sheet by

Types

array
"­typ­e": "­arr­ay"
float
"­typ­e": "­num­ber­"
integer
"­typ­e": "­int­ege­r"
object
"­typ­e": "­obj­ect­"
string
"­typ­e": "­str­ing­"
boolean
"­typ­e": "­boo­lea­n"
null
"­typ­e": "­nul­l"
 

{ "­typ­e" : "­arr­ay" }

list
"­ite­ms": {}
tuple
"­ite­ms": [{},...]
additional items
"­add­iti­ona­lIt­ems­": false
minimum items
minItems: 1
maximum items
maxItems: 2
unique items
unique­Items: true
additional items should not be used if items is only a single schema

{"ty­pe": "­obj­ect­"}

Key-Value Pair Descri­ption
"­pro­per­tie­s": {}
Don't allow unnamed fields
"­add­iti­ona­lPr­ope­rti­es": false
Require fields to be present
"­req­uir­ed": ["ke­y", "­key­"]
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          More Cheat Sheets by Wayland He

          Rails4 Model&Migration Generator (WorkInProgress) Cheat Sheet