{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-variables-response-schema.json",
  "title": "VariablesResponse",
  "description": "Response model for variable list operations.",
  "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/VariablesResponse",
  "properties": {
    "message": {
      "description": "Response message",
      "title": "Message",
      "type": "string"
    },
    "result": {
      "description": "List of variable records",
      "items": {
        "$ref": "#/$defs/VariableRow"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "message",
    "result"
  ],
  "type": "object",
  "$defs": {
    "VariableRow": {
      "properties": {
        "has_secret_value": {
          "default": false,
          "description": "Whether an encrypted value is stored for this variable",
          "title": "Has Secret Value",
          "type": "boolean"
        },
        "id": {
          "description": "Unique identifier of the variable",
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "is_secret": {
          "default": false,
          "description": "Whether the value is encrypted and masked",
          "title": "Is Secret",
          "type": "boolean"
        },
        "test_uid": {
          "description": "Test UID associated with variable",
          "format": "uuid",
          "title": "Test Uid",
          "type": "string"
        },
        "variable_name": {
          "description": "Name of the variable",
          "title": "Variable Name",
          "type": "string"
        },
        "variable_value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "Value of the variable",
          "title": "Variable Value"
        }
      },
      "required": [
        "id",
        "test_uid",
        "variable_name"
      ],
      "title": "VariableRow",
      "type": "object"
    }
  }
}