{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-routing-rule-xo-schema.json",
  "title": "RoutingRuleXO",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-routing-rules-api-openapi.yml#/components/schemas/RoutingRuleXO",
  "type": "object",
  "properties": {
    "name": {
      "pattern": "^[a-zA-Z0-9\\-]{1}[a-zA-Z0-9_\\-\\.]*$",
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "description": "Determines what should be done with requests when their path matches any of the matchers",
      "enum": [
        "ALLOW",
        "BLOCK"
      ]
    },
    "matchers": {
      "type": "array",
      "description": "Regular expressions used to identify request paths that are allowed or blocked (depending on mode)",
      "items": {
        "type": "string",
        "description": "Regular expressions used to identify request paths that are allowed or blocked (depending on mode)"
      }
    }
  }
}