Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"bxci.schema-2.x.json",
"catalog-info.json",
"chrome-manifest.json",
"chisel-slices.json",
"chutzpah.json",
"cloud-sdk-pipeline-config-schema.json",
"cloudify.json",
Expand Down
67 changes: 63 additions & 4 deletions src/schemas/json/chisel-slices.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,42 @@
"examples": ["ubuntu"]
},
"essential": {
"type": "array",
"type": ["array", "object"],
"description": "A list of slices that are a dependency for all slices of this package. Each slice item is formatted as '<slice_name>_<slice_part>'.",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9+\\-\\._]+$"
},
"examples": ["slicename_copyright"]
"examples": [{ "slicename_copyright": {} }, { "slicename_licenses": {} }],
"patternProperties": {
"^.+$": {
"description": "The name of the dependency slice part.",
"type": "object",
"additionalProperties": false,
"properties": {
"arch": {
"type": "array",
"description": "Only include this dependency on specific architectures.",
"uniqueItems": true,
"examples": [["amd64", "arm64"]],
"items": {
"type": "string",
"examples": [
"amd64",
"i386",
"armhf",
"arm64",
"powerpc",
"ppc64el",
"s390x",
"riscv64"
]
}
}
}
}
}
},
"slices": {
"type": "object",
Expand All @@ -36,14 +64,45 @@
"additionalProperties": false,
"properties": {
"essential": {
"type": "array",
"type": ["array", "object"],
"description": "The name of the dependency slice part. The slice part is formatted as '<slice_name>_<slice_part>'.",
"uniqueItems": true,
"items": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9+\\-\\._]+$"
},
"examples": ["libgcc-s1_libs", "ca-certificates_data"]
"examples": [
{ "libgcc-s1_libs": {} },
{ "ca-certificates_data": {} }
],
"patternProperties": {
"^.+$": {
"description": "The name of the dependency slice part.",
"type": "object",
"additionalProperties": false,
"properties": {
"arch": {
"type": "array",
"description": "Only include this dependency on specific architectures.",
"uniqueItems": true,
"examples": [["amd64", "arm64"]],
"items": {
"type": "string",
"examples": [
"amd64",
"i386",
"armhf",
"arm64",
"powerpc",
"ppc64el",
"s390x",
"riscv64"
]
}
}
}
}
}
},
"mutate": {
"type": "string",
Expand Down