{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-workspace-apply-response-dto-schema.json",
  "title": "WorkspaceApplyResponseDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-declarative-assets-and-lineage-api-openapi.yml#/components/schemas/WorkspaceApplyResponseDto",
  "type": "object",
  "properties": {
    "changes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WorkspaceApplyObjectResponseDto"
      }
    }
  },
  "$defs": {
    "ChangeDto": {
      "type": "object",
      "properties": {
        "from": {
          "$ref": "#/$defs/JsonNode"
        },
        "fromWorkspaceId": {
          "type": "string",
          "format": "uuid"
        },
        "to": {
          "$ref": "#/$defs/JsonNode"
        },
        "toWorkspaceId": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string",
          "enum": [
            "None",
            "Create",
            "CreateIfMissing",
            "Move",
            "MoveAndUpdate",
            "Update",
            "Delete"
          ]
        }
      }
    },
    "JsonNode": {
      "type": "object"
    },
    "LogDto": {
      "type": "object",
      "properties": {
        "level": {
          "type": "string",
          "enum": [
            "Info",
            "Warning",
            "Error",
            "Fatal"
          ]
        },
        "message": {
          "type": "string"
        }
      }
    },
    "WorkspaceApplyObjectResponseDto": {
      "type": "object",
      "properties": {
        "change": {
          "$ref": "#/$defs/ChangeDto"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "kind": {
          "type": "string"
        },
        "logs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LogDto"
          }
        },
        "status": {
          "type": "string",
          "enum": [
            "OK",
            "Error",
            "Fatal"
          ]
        },
        "subStatus": {
          "type": "string",
          "enum": [
            "Success",
            "Skipped",
            "ValidationError",
            "DeserializationError",
            "Unauthorized",
            "InternalServerError"
          ]
        }
      }
    }
  }
}