Skip to content

Instantly share code, notes, and snippets.

@romanlehnert
Last active August 29, 2015 14:23
Show Gist options
  • Save romanlehnert/382cca3e19aa16d068ca to your computer and use it in GitHub Desktop.
Save romanlehnert/382cca3e19aa16d068ca to your computer and use it in GitHub Desktop.
json schema snippets for vim (utilizing snipmate)
snippet khv
"${1}": {
${2}
}
snippet kv
"${1}": "${2}"
snippet s
"${1}": {
"type": "string"
}
snippet t
"${1}": {
"type": "time"
}
snippet a
"${1}": {
"type": "array"
}
snippet object
"${1}": {
"type": "object",
"properties": {
${2}
}
}
snippet oarray
"${1}": {
"type": "array",
"items": {
"type": "object",
"properties": {
${2}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment