Last active
January 6, 2020 10:16
-
-
Save emptyother/2d8fe4405f10a795bc403e540f66a934 to your computer and use it in GitHub Desktop.
JSON Schemas
This file contains 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
{ | |
"definitions": {}, | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "http://onlyhuman.dk/json-schema/.mocharc.json", | |
"type": "object", | |
"title": "The Root Schema", | |
"properties": { | |
"diff": { | |
"$id": "#/properties/diff", | |
"type": "boolean", | |
"title": "The Diff Schema", | |
"default": false, | |
"examples": [ | |
true | |
] | |
}, | |
"extension": { | |
"$id": "#/properties/extension", | |
"type": "array", | |
"title": "The Extension Schema", | |
"default": null, | |
"items": { | |
"$id": "#/properties/extension/items", | |
"type": "string", | |
"title": "The Items Schema", | |
"default": "", | |
"examples": [ | |
"ts" | |
], | |
"pattern": "^(.*)$" | |
} | |
}, | |
"opts": { | |
"$id": "#/properties/opts", | |
"type": [ | |
"object", | |
"boolean" | |
], | |
"title": "The Opts Schema", | |
"default": false, | |
"examples": [ | |
false | |
] | |
}, | |
"package": { | |
"$id": "#/properties/package", | |
"type": "string", | |
"title": "The Package Schema", | |
"default": "", | |
"examples": [ | |
"./package.json" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"reporter": { | |
"$id": "#/properties/reporter", | |
"type": "string", | |
"title": "The Reporter Schema", | |
"default": "", | |
"examples": [ | |
"spec" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"slow": { | |
"$id": "#/properties/slow", | |
"type": "integer", | |
"title": "The Slow Schema", | |
"default": 0, | |
"examples": [ | |
75 | |
] | |
}, | |
"timeout": { | |
"$id": "#/properties/timeout", | |
"type": "integer", | |
"title": "The Timeout Schema", | |
"default": 0, | |
"examples": [ | |
2000 | |
] | |
}, | |
"ui": { | |
"$id": "#/properties/ui", | |
"type": "string", | |
"title": "The Ui Schema", | |
"default": "", | |
"examples": [ | |
"bdd" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"watch-files": { | |
"$id": "#/properties/watch-files", | |
"type": "array", | |
"title": "The Watch-files Schema", | |
"default": null, | |
"items": { | |
"$id": "#/properties/watch-files/items", | |
"type": "string", | |
"title": "The Items Schema", | |
"default": "", | |
"examples": [ | |
"lib/**/*.js", | |
"test/**/*.js" | |
], | |
"pattern": "^(.*)$" | |
} | |
}, | |
"watch-ignore": { | |
"$id": "#/properties/watch-ignore", | |
"type": "array", | |
"title": "The Watch-ignore Schema", | |
"default": null, | |
"items": { | |
"$id": "#/properties/watch-ignore/items", | |
"type": "string", | |
"title": "The Items Schema", | |
"default": "", | |
"examples": [ | |
"lib/vendor" | |
], | |
"pattern": "^(.*)$" | |
} | |
}, | |
"spec": { | |
"$id": "#/properties/spec", | |
"type": "string", | |
"title": "The Spec Schema", | |
"default": "", | |
"examples": [ | |
"src/**/*.test.ts" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"require": { | |
"$id": "#/properties/require", | |
"type": "string", | |
"title": "The Require Schema", | |
"default": "", | |
"examples": [ | |
"ts-node/register" | |
], | |
"pattern": "^(.*)$" | |
} | |
} | |
} |
This file contains 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
{ | |
"definitions": {}, | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "http://onlyhuman.dk/json-schema/less-watch-compiler.config.json", | |
"type": "object", | |
"title": "The Root Schema", | |
"required": [ | |
"watchFolder", | |
"outputFolder", | |
"mainFile" | |
], | |
"properties": { | |
"watchFolder": { | |
"$id": "#/properties/watchFolder", | |
"type": "string", | |
"title": "The Watchfolder Schema", | |
"default": "", | |
"examples": [ | |
"<input_folder>" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"outputFolder": { | |
"$id": "#/properties/outputFolder", | |
"type": "string", | |
"title": "The Outputfolder Schema", | |
"default": "", | |
"examples": [ | |
"<output_folder>" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"mainFile": { | |
"$id": "#/properties/mainFile", | |
"type": "string", | |
"title": "The Mainfile Schema", | |
"default": "", | |
"examples": [ | |
"<main-file>" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"sourceMap": { | |
"$id": "#/properties/sourceMap", | |
"type": "boolean", | |
"title": "The Sourcemap Schema", | |
"default": false, | |
"examples": [ | |
false | |
] | |
}, | |
"plugins": { | |
"$id": "#/properties/plugins", | |
"type": "string", | |
"title": "The Plugins Schema", | |
"default": "", | |
"examples": [ | |
"plugin1,plugin2" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"less-args": { | |
"$id": "#/properties/less-args", | |
"type": "string", | |
"title": "The Less-args Schema", | |
"default": "", | |
"examples": [ | |
"option1=1,option2=2" | |
], | |
"pattern": "^(.*)$" | |
}, | |
"runOnce": { | |
"$id": "#/properties/runOnce", | |
"type": "boolean", | |
"title": "The Runonce Schema", | |
"default": false, | |
"examples": [ | |
false | |
] | |
}, | |
"enableJs": { | |
"$id": "#/properties/enableJs", | |
"type": "boolean", | |
"title": "The Enablejs Schema", | |
"default": false, | |
"examples": [ | |
true | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment