Newer
Older
gnexus-book / schemas / service.schema.json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "service.schema.json",
  "type": "array",
  "items": {
    "type": "object",
    "required": ["id", "name", "type", "status", "host", "docs", "last_reviewed"],
    "properties": {
      "id": { "type": "string" },
      "name": { "type": "string" },
      "type": { "type": "string" },
      "status": { "type": "string" },
      "host": { "type": "string" },
      "domains": { "type": "array", "items": { "type": "string" } },
      "ports": { "type": "array", "items": { "type": "integer" } },
      "criticality": { "type": "string", "enum": ["low", "medium", "high", "critical"] },
      "docs": { "type": "string" },
      "runbook": { "type": "string" },
      "last_reviewed": { "type": "string" },
      "source_of_truth": { "type": "string" }
    },
    "additionalProperties": true
  }
}