{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-update-production-eval-definition-request-schema.json",
  "title": "UpdateProductionEvalDefinitionRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-evaluations-api-openapi.yml#/components/schemas/UpdateProductionEvalDefinitionRequest",
  "properties": {
    "service_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Service Id"
    },
    "eval_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Eval Key"
    },
    "eval_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "assertion",
            "metric"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Eval Type"
    },
    "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": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Params"
    },
    "active": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Active"
    }
  },
  "type": "object"
}