Skip to content

Instantly share code, notes, and snippets.

@dizys
Created February 27, 2022 08:01
Show Gist options
  • Save dizys/ed9efcddd07ada7f39e72c0197c20271 to your computer and use it in GitHub Desktop.
Save dizys/ed9efcddd07ada7f39e72c0197c20271 to your computer and use it in GitHub Desktop.
{
"$id": "http://example.com/example.json",
"$schema": "http://json-schema.org/draft-07/schema",
"default": {},
"description": "JSON schema for cheatsheet note info",
"examples": [
{
"name": "Big-Oh Order",
"description": "Big-Oh Order of expressions",
"icon": "/images/big-oh-order.png"
}
],
"required": [
"name",
"description"
],
"title": "Cheatsheet Note Info",
"type": "object",
"properties": {
"name": {
"$id": "#/properties/name",
"type": "string",
"title": "The name schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"Big-Oh Order"
]
},
"description": {
"$id": "#/properties/description",
"type": "string",
"title": "The description schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"Big-Oh Order of expressions"
]
},
"icon": {
"$id": "#/properties/icon",
"type": "string",
"title": "The icon schema",
"description": "An explanation about the purpose of this instance.",
"default": "",
"examples": [
"/images/big-oh-order.png"
]
}
},
"additionalProperties": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment