Forgejo · Schema

UpdateVariableOption defines the properties of the variable to update.

GitSource Code ManagementSelf-HostedDevOpsCI/CDOpen SourceForgeRepositoriesIssuesPull Requests

Properties

Name Type Description
name string New name for the variable. If the field is empty, the variable name won't be updated. Forgejo will convert it to uppercase.
value string Value of the variable to update. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be re
View JSON Schema on GitHub

JSON Schema

updatevariableoption.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "UpdateVariableOption defines the properties of the variable to update.",
  "type": "object",
  "required": [
    "value"
  ],
  "properties": {
    "name": {
      "description": "New name for the variable. If the field is empty, the variable name won't be updated. Forgejo will convert it to\nuppercase.",
      "type": "string",
      "x-go-name": "Name"
    },
    "value": {
      "description": "Value of the variable to update. Special characters will be retained. Line endings will be normalized to LF to\nmatch the behaviour of browsers. Encode the data with Base64 if line endings should be retained.",
      "type": "string",
      "x-go-name": "Value"
    }
  },
  "x-go-package": "forgejo.org/modules/structs"
}