{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Stitch Configuration Schema",
  "description": "JSON Schema for Stitch YAML configuration files",
  "type": "object",
  "required": ["stitch"],
  "properties": {
    "stitch": {
      "type": "array",
      "description": "Array of file paths or glob patterns to merge in order",
      "items": {
        "type": "string",
        "description": "File path or glob pattern (e.g., 'base.yaml', 'paths/*.yaml', 'components/**/*.yaml')"
      },
      "minItems": 1,
      "examples": [
        ["base.yaml", "paths.yaml"],
        ["base.yaml", "paths/*.yaml", "components/**/*.yaml"]
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "stitch": [
        "base.yaml",
        "paths.yaml"
      ]
    },
    {
      "stitch": [
        "openapi/base.yaml",
        "openapi/paths/*.yaml",
        "openapi/components/**/*.yaml"
      ]
    }
  ]
}
