Files
git.stella-ops.org/docs/schemas/golden-pairs-index.schema.json
2026-01-13 18:53:39 +02:00

88 lines
2.0 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://stellaops.io/schemas/golden-pairs-index.schema.json",
"title": "GoldenPairsIndex",
"type": "object",
"additionalProperties": false,
"required": ["version", "generatedAt", "pairs", "summary"],
"properties": {
"version": {
"type": "string",
"minLength": 1
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"pairs": {
"type": "array",
"items": {
"$ref": "#/$defs/pairSummary"
}
},
"summary": {
"$ref": "#/$defs/summary"
}
},
"$defs": {
"pairSummary": {
"type": "object",
"additionalProperties": false,
"required": ["cve", "name", "severity", "format", "status"],
"properties": {
"cve": {
"type": "string",
"pattern": "^CVE-\\d{4}-\\d{4,}$"
},
"name": {
"type": "string",
"minLength": 1
},
"severity": {
"type": "string",
"enum": ["critical", "high", "medium", "low"]
},
"format": {
"type": "string",
"enum": ["elf", "pe", "macho"]
},
"status": {
"type": "string",
"enum": ["pending", "validated", "failed", "draft"]
},
"lastValidated": {
"type": "string",
"format": "date-time"
},
"path": {
"type": "string",
"minLength": 1
}
}
},
"summary": {
"type": "object",
"additionalProperties": false,
"required": ["total", "validated", "failed", "pending"],
"properties": {
"total": {
"type": "integer",
"minimum": 0
},
"validated": {
"type": "integer",
"minimum": 0
},
"failed": {
"type": "integer",
"minimum": 0
},
"pending": {
"type": "integer",
"minimum": 0
}
}
}
}
}