- examples/synthetic-spec: полный набор сущностей, профилей, пресета и антипаттерна - bhl validate и profile resolve проходят пример без диагностик - тест сверяет копию схем с spec/schemas и порядок разрешения - README карты лаборатории дополнен spec/ и examples/
41 lines
1.4 KiB
JSON
41 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://baseline-harness.dev/spec/schemas/profile.schema.json",
|
|
"title": "Profile",
|
|
"description": "Композиционный профиль (D-013, D-002): набор требований и переопределений параметров. Ослабление только явное (relax_to).",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["id", "title", "description", "requirements"],
|
|
"properties": {
|
|
"id": { "type": "string", "pattern": "^prof-[a-z0-9]+(-[a-z0-9]+)*$" },
|
|
"title": { "type": "string", "minLength": 3 },
|
|
"description": { "type": "string", "minLength": 10 },
|
|
"requirements": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["requirement"],
|
|
"properties": {
|
|
"requirement": { "type": "string", "pattern": "^req-[a-z0-9]+(-[a-z0-9]+)*$" },
|
|
"relax_to": { "enum": ["SHOULD", "MAY"] },
|
|
"note": { "type": "string", "minLength": 3 }
|
|
}
|
|
}
|
|
},
|
|
"parameter_overrides": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["parameter", "value"],
|
|
"properties": {
|
|
"parameter": { "type": "string", "pattern": "^param-[a-z0-9]+(-[a-z0-9]+)*$" },
|
|
"value": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|