{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-update-variable-model-schema.json",
  "title": "UpdateVariableModel",
  "description": "Partial-merge update for a local variable (rename / value / secret).\n\nMirrors GlobalVariableUpdate: only fields that are set are applied.\nvariable_value is treated as \"provided\" when not None, so the frontend\nomits it to keep an existing secret's value unchanged.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revyl-custom-variables-api-openapi.yml#/components/schemas/UpdateVariableModel",
  "properties": {
    "is_secret": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Secret"
    },
    "test_uid": {
      "format": "uuid",
      "title": "Test Uid",
      "type": "string"
    },
    "variable_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variable Name"
    },
    "variable_value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Variable Value"
    }
  },
  "required": [
    "test_uid"
  ],
  "type": "object"
}