{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "environment_metadata_changed_event",
  "description": "ID Service environment metadata changed event schema",
  "additionalProperties": false,
  "required": [
    "tenant_id",
    "environment_id",
    "old_metadata",
    "new_metadata"
  ],
  "properties": {
    "tenant_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "environment_id": {
      "type": "string",
      "minLength": 32,
      "maxLength": 36,
      "format": "uuid",
      "description": "A UUID."
    },
    "old_metadata": {
      "title": "Environment Metadata Reference",
      "description": "An object containing metadata about an environment.",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "is_development",
        "enabled",
        "name"
      ],
      "properties": {
        "is_development": {
          "type": "boolean",
          "description": "Indicates if the environment is a development environment"
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates if the environment is enabled"
        },
        "name": {
          "type": "string",
          "description": "The name of the environment"
        }
      }
    },
    "new_metadata": {
      "title": "Environment Metadata Reference",
      "description": "An object containing metadata about an environment.",
      "type": "object",
      "additionalProperties": false,
      "required": [
        "is_development",
        "enabled",
        "name"
      ],
      "properties": {
        "is_development": {
          "type": "boolean",
          "description": "Indicates if the environment is a development environment"
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates if the environment is enabled"
        },
        "name": {
          "type": "string",
          "description": "The name of the environment"
        }
      }
    }
  }
}