{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://docs.viafluvial.com.br/contracts/help-manifest.schema.json",
  "title": "viafluvial.help-manifest/1",
  "type": "object",
  "required": ["schema", "items"],
  "properties": {
    "schema": { "const": "viafluvial.help-manifest/1" },
    "variant": { "enum": ["public", "internal", "restricted"] },
    "generatedAt": { "type": "string", "format": "date-time" },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "title", "short", "classification", "canonicalUrl"],
        "properties": {
          "id": { "type": "string", "pattern": "^HELP-[A-Z]+-[A-Z]+-[0-9]{3}$" },
          "title": { "type": "string" },
          "short": { "type": "string" },
          "audience": { "type": "array", "items": { "type": "string" } },
          "feature": { "type": ["string", "null"] },
          "routes": { "type": "array", "items": { "type": "string" } },
          "apps": { "type": "array", "items": { "type": "string" } },
          "versions": { "type": "array", "items": { "type": "string" } },
          "classification": { "enum": ["public", "partners", "internal", "restricted"] },
          "canonicalUrl": { "type": "string" }
        }
      }
    }
  }
}
