Skip to content

Instantly share code, notes, and snippets.

@xavierchanth
Last active February 12, 2022 12:53
Show Gist options
  • Select an option

  • Save xavierchanth/33ec322622f3be7d334a54f7e7f65708 to your computer and use it in GitHub Desktop.

Select an option

Save xavierchanth/33ec322622f3be7d334a54f7e7f65708 to your computer and use it in GitHub Desktop.
pub.dev mason package brick.json schema for v0.1.0-dev.4
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://json.schemastore.org/mason-brick",
"title": "brick.yaml",
"description": "mason brick Configuration File",
"definitions": {
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:[+-]\\S+)?$"
},
"var": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"description": {
"type": "string"
},
"default": true,
"prompt": {
"type": "string"
}
}
},
"vars": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/var"
}
}
]
},
"default_type": {
"oneOf": [
{
"type": "string"
},
{
"type": "array"
},
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "object"
},
{
"type": "null"
}
]
}
},
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"version": {
"$ref": "#/definitions/version"
},
"vars": {
"$ref": "#/definitions/vars"
}
}
}
{
"yaml.schemas": {
"./path/to/brick.json": "brick.yaml"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment