{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/looot/json-schema/looot-create-normalized-route-schema.json",
  "title": "CreateNormalizedRoute",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/looot-normalized-routes-api-openapi.yml#/components/schemas/CreateNormalizedRoute",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "routeKey",
    "version",
    "capability",
    "inputSchema",
    "outputSchema",
    "steps"
  ],
  "properties": {
    "routeKey": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "version": {
      "type": "string"
    },
    "capability": {
      "enum": [
        "web.search",
        "company.enrich",
        "media.generate"
      ]
    },
    "inputSchema": {
      "type": "object",
      "description": "Draft 2020-12 object schema without external references"
    },
    "outputSchema": {
      "type": "object",
      "description": "Draft 2020-12 canonical object schema without external references"
    },
    "steps": {
      "type": "array",
      "minItems": 2,
      "maxItems": 20,
      "items": {
        "type": "object",
        "description": "Distinct-provider endpoint adapter with contiguous priority, USD ceiling, bounded canonical input/output bindings and explicit miss predicate"
      }
    }
  }
}