Last active
February 12, 2022 12:53
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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