mirror of
https://github.com/danbulant/monaco-yaml
synced 2026-06-18 05:51:07 +00:00
41 lines
946 B
JSON
41 lines
946 B
JSON
{
|
|
"type": "object",
|
|
"properties": {
|
|
"property": {
|
|
"description": "I have a description"
|
|
},
|
|
"titledProperty": {
|
|
"title": "I have a title",
|
|
"description": "I also have a description"
|
|
},
|
|
"markdown": {
|
|
"markdownDescription": "Even **markdown** _descriptions_ `are` ~~not~~ supported!"
|
|
},
|
|
"enum": {
|
|
"description": "Pick your starter",
|
|
"enum": ["Bulbasaur", "Squirtle", "Charmander", "Pikachu"]
|
|
},
|
|
"number": {
|
|
"description": "Numbers work!",
|
|
"minimum": 42,
|
|
"maximum": 1337
|
|
},
|
|
"boolean": {
|
|
"description": "Are boolean supported?",
|
|
"type": "boolean"
|
|
},
|
|
"string": {
|
|
"type": "string"
|
|
},
|
|
"reference": {
|
|
"description": "JSON schemas can be referenced, even recursively",
|
|
"$ref": "#"
|
|
},
|
|
"array": {
|
|
"description": "It also works in arrays",
|
|
"items": {
|
|
"$ref": "#"
|
|
}
|
|
}
|
|
}
|
|
}
|