JSON Schema (Work In Progress) Cheat Sheet

A cheat sheet in English by Wayland He
5,913 views 1,982 downloads 14 Dec 2015 History
3.7 avg · 0 ratings

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­"]

Badges

Nice Cheat Sheet Good Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.