{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-create-production-eval-definition-request-schema.json",
  "title": "CreateProductionEvalDefinitionRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-evaluations-api-openapi.yml#/components/schemas/CreateProductionEvalDefinitionRequest",
  "properties": {
    "eval_key": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Eval Key"
    },
    "eval_type": {
      "type": "string",
      "enum": [
        "assertion",
        "metric"
      ],
      "title": "Eval Type"
    },
    "service_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Service Id"
    },
    "assertion_kind": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Assertion Kind"
    },
    "metric_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128
        },
        {
          "type": "null"
        }
      ],
      "title": "Metric Key"
    },
    "expected": {
      "title": "Expected"
    },
    "params": {
      "additionalProperties": true,
      "type": "object",
      "title": "Params"
    },
    "active": {
      "type": "boolean",
      "title": "Active",
      "default": true
    }
  },
  "type": "object",
  "required": [
    "eval_key",
    "eval_type"
  ]
}