{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fortrabbit-com/json-schema/fortrabbit-com-environment-jsonld-api-read-api-read-environment-variables-schema.json",
  "title": "Environment.jsonld-api.read_api.read.environment-variables",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/fortrabbit-com-api-openapi.json#/components/schemas/Environment.jsonld-api.read_api.read.environment-variables",
  "allOf": [
    {
      "$ref": "#/$defs/HydraItemBaseSchema"
    },
    {
      "type": "object",
      "properties": {
        "publicId": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "softwareVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "domains": {
          "readOnly": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "components": {
          "readOnly": true,
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "phpVersion": {
          "readOnly": true,
          "type": [
            "string",
            "null"
          ]
        },
        "buildCommands": {
          "readOnly": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "postDeployCommands": {
          "readOnly": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "git": {
          "readOnly": true,
          "type": "object",
          "properties": {
            "branch": {
              "type": [
                "string",
                "null"
              ]
            },
            "directory": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "environmentVariables": {
          "readOnly": true,
          "type": "object",
          "description": "Variables set on this environment by its owners, keyed by name.",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    }
  ],
  "$defs": {
    "HydraItemBaseSchema": {
      "type": "object",
      "properties": {
        "@context": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "properties": {
                "@vocab": {
                  "type": "string"
                },
                "hydra": {
                  "type": "string",
                  "enum": [
                    "http://www.w3.org/ns/hydra/core#"
                  ]
                }
              },
              "required": [
                "@vocab",
                "hydra"
              ],
              "additionalProperties": true
            }
          ]
        },
        "@id": {
          "type": "string"
        },
        "@type": {
          "type": "string"
        }
      },
      "required": [
        "@id",
        "@type"
      ]
    }
  }
}