{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "yard module configuration Schema",
"anyOf": [
{
"type": "null"
},
{
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "This is a modules description"
},
"independent": {
"type": "boolean",
"description": "If true, this module is an independent module. Independent modules have a build stage and an install stage, defined by two containerfile/dockerfile blocks. The build stage is hoisted to the start of the generated Containerfile and the install stage is injected where the module is declared. Defaults to false.",
"default": false
},
"args": {
"type": "object",
"properties": {
"required": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"optional": {
"type": "array",
"items": {
"type": "string"
}
}
},
"anyOf": [
{
"required": [
"optional"
]
},
{
"required": [
"required"
]
}
]
},
"required_files": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of required files for the module. Must be absolution paths from the current directory without a starting \"/\"."
}
},
"required": [],
"additionalProperties": false
}
]
}