fix: Improve validation errors
This commit is contained in:
parent
6424bf3573
commit
3d0ae32734
99 changed files with 3773 additions and 425 deletions
35
test-files/schema/modules/containerfile-v1.json
Normal file
35
test-files/schema/modules/containerfile-v1.json
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "/modules/containerfile.json",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "containerfile",
|
||||
"description": "The containerfile module is a tool for adding custom Containerfile instructions for custom image builds. \nhttps://blue-build.org/reference/modules/containerfile/"
|
||||
},
|
||||
"no-cache": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Whether to disabling caching for this layer.\nhttps://blue-build.org/reference/module/#no-cache-optional"
|
||||
},
|
||||
"snippets": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Lines to directly insert into the generated Containerfile."
|
||||
},
|
||||
"containerfiles": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Names of directories in ./containerfiles/ containing each a Containerfile to insert into the generated Containerfile."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue