Skip to content

Instantly share code, notes, and snippets.

@nogic1008
Last active April 10, 2020 02:15
Show Gist options
  • Save nogic1008/a8f29e83b18dbf1be4ffe81edf6bcf19 to your computer and use it in GitHub Desktop.
Save nogic1008/a8f29e83b18dbf1be4ffe81edf6bcf19 to your computer and use it in GitHub Desktop.
Vetur Framework Support JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"patternProperties": {
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*(/([a-z][a-z0-9]*)(-[a-z0-9]+)*)?$": {
"type": "object",
"properties": {
"options": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"description": {
"type": ["string", "object"],
"properties": {
"kind": {
"type": "string",
"enum": ["plaintext", "markdown"]
},
"value": {
"type": "string"
}
},
"required": ["kind", "value"]
}
}
}
},
"additionalProperties": false
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"patternProperties": {
"^([a-z][a-z0-9]*)(-[a-z0-9]+)*$": {
"type": "object",
"properties": {
"attributes": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
},
"description": {
"type": ["string", "object"],
"properties": {
"kind": {
"type": "string",
"enum": ["plaintext", "markdown"]
},
"value": {
"type": "string"
}
},
"required": ["kind", "value"]
}
}
}
},
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment