v0.1.3-pre.009
This commit is contained in:
25
config/examples/composite.example.json
Normal file
25
config/examples/composite.example.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"format_version": 1,
|
||||
"default_profile": "local_default",
|
||||
"profiles": [
|
||||
{
|
||||
"profile_id": "local_default",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"profile_id": "local_explicit",
|
||||
"documents": [
|
||||
{
|
||||
"component_id": "logging",
|
||||
"file_id": "cfg.std.logging",
|
||||
"profile_id": "local_dev"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
62
config/schemas/composite.schema.json
Normal file
62
config/schemas/composite.schema.json
Normal file
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"title": "KSP composite configuration",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version", "default_profile", "profiles"],
|
||||
"properties": {
|
||||
"format_version": {
|
||||
"const": 1
|
||||
},
|
||||
"default_profile": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"profiles": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/composite_profile"
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"composite_profile": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["profile_id", "documents"],
|
||||
"properties": {
|
||||
"profile_id": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"documents": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"$ref": "#/$defs/document_reference"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"document_reference": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["component_id", "file_id"],
|
||||
"properties": {
|
||||
"component_id": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"file_id": {
|
||||
"type": "string",
|
||||
"pattern": "^cfg\\.std\\.[a-z0-9][a-z0-9._-]*$"
|
||||
},
|
||||
"profile_id": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user