{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/speakeasy-test-generation-configuration-file/latest.json",
  "title": "Speakeasy Tests Configuration Schema",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/speakeasy-api/sdk-gen-config/main/schemas/tests.schema.json",
    "sourceSha256": "d6c1ae967f4d5769f6ffc8d60abd43ca1a192ac101a3e27350210cbb2f04b4d0",
    "fileMatch": [
      "**/.speakeasy/tests.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "testsVersion": {
      "type": "string",
      "const": "0.0.1"
    },
    "tests": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/test"
        }
      }
    },
    "components": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "testsVersion",
    "tests"
  ],
  "$defs": {
    "test": {
      "type": "object",
      "required": [
        "name"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "targets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "server": {
          "type": "string"
        },
        "security": {
          "type": "object"
        },
        "parameters": {
          "$ref": "#/$defs/parameters"
        },
        "requestBody": {
          "type": "object"
        },
        "responses": {
          "oneOf": [
            {
              "type": "boolean"
            },
            {
              "type": "object",
              "additionalProperties": {
                "type": "object"
              }
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "parameters": {
      "type": "object",
      "properties": {
        "path": {
          "type": "object"
        },
        "query": {
          "type": "object"
        },
        "header": {
          "type": "object"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false
}
