{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/componecat-ai/json-schema/componecat-ai-test-aimodel-connection-request-schema.json",
  "title": "TestAIModelConnectionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/componecat-ai-ai-models-api-openapi.yml#/components/schemas/TestAIModelConnectionRequest",
  "required": [
    "provider",
    "modelId",
    "properties",
    "secrets",
    "id"
  ],
  "type": "object",
  "properties": {
    "provider": {
      "type": "string"
    },
    "modelId": {
      "type": "string"
    },
    "properties": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/AIModelPropertyRequest"
      }
    },
    "secrets": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/AIModelPropertyRequest"
      }
    },
    "id": {
      "type": [
        "null",
        "string"
      ],
      "format": "uuid"
    }
  },
  "$defs": {
    "AIModelPropertyRequest": {
      "required": [
        "key",
        "value"
      ],
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    }
  }
}