93 lines
2.2 KiB
JSON
93 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "urn:awoooi:security-supply-chain-contract-manifest-v1",
|
|
"title": "AWOOOI Security Supply Chain Contract Manifest (v1)",
|
|
"description": "集中列出 Security Supply Chain 初期可供 AwoooP mirror/read-only 消費的 schema、snapshot 與人讀文件。",
|
|
"type": "object",
|
|
"required": [
|
|
"schema_version",
|
|
"status",
|
|
"default_enforcement_level",
|
|
"contract_count",
|
|
"contracts"
|
|
],
|
|
"properties": {
|
|
"schema_version": {
|
|
"const": "security_supply_chain_contract_manifest_v1"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"enum": ["draft"]
|
|
},
|
|
"default_enforcement_level": {
|
|
"type": "string",
|
|
"enum": ["mirror_only"]
|
|
},
|
|
"contract_count": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"contracts": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"contract",
|
|
"schema_path",
|
|
"snapshot_paths",
|
|
"human_docs",
|
|
"consumer",
|
|
"consumption_mode",
|
|
"allowed_actions",
|
|
"forbidden_actions",
|
|
"notes"
|
|
],
|
|
"properties": {
|
|
"contract": {
|
|
"type": "string"
|
|
},
|
|
"schema_path": {
|
|
"type": "string"
|
|
},
|
|
"snapshot_paths": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"human_docs": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"consumer": {
|
|
"type": "string"
|
|
},
|
|
"consumption_mode": {
|
|
"type": "string",
|
|
"enum": ["mirror_only", "read_only_policy", "suggest_only", "approval_only"]
|
|
},
|
|
"allowed_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"forbidden_actions": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"notes": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|