{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/xiaojiou176-open/Switchyard/docs/builder-kit-catalog.schema.json",
  "title": "Switchyard Builder Kit Catalog",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "$schema",
    "catalogVersion",
    "kits"
  ],
  "properties": {
    "$schema": {
      "type": "string"
    },
    "catalogVersion": {
      "type": "integer",
      "minimum": 1
    },
    "kits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/builderKit"
      }
    }
  },
  "$defs": {
    "status": {
      "type": "string",
      "enum": [
        "supported now",
        "partial",
        "planned",
        "research only",
        "not now"
      ]
    },
    "stringArray": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "builderKit": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "target",
        "status",
        "starterShape",
        "bestEntry",
        "recommendedDocs",
        "notYetSupported"
      ],
      "properties": {
        "target": {
          "type": "string",
          "minLength": 1
        },
        "status": {
          "$ref": "#/$defs/status"
        },
        "starterShape": {
          "type": "string",
          "minLength": 1
        },
        "bestEntry": {
          "type": "string",
          "minLength": 1
        },
        "requiredInputs": {
          "$ref": "#/$defs/stringArray"
        },
        "starterSteps": {
          "$ref": "#/$defs/stringArray"
        },
        "outputArtifacts": {
          "$ref": "#/$defs/stringArray"
        },
        "safeClaims": {
          "$ref": "#/$defs/stringArray"
        },
        "recommendedDocs": {
          "$ref": "#/$defs/stringArray"
        },
        "copyReadyPackPath": {
          "type": "string",
          "minLength": 1
        },
        "notYetSupported": {
          "$ref": "#/$defs/stringArray"
        }
      }
    }
  }
}
