From c03b3b8c3a68c733e834876ba274bf94662bae2b Mon Sep 17 00:00:00 2001 From: Jesse Peterson Date: Sat, 19 Jun 2021 13:40:40 -0700 Subject: [PATCH] Add always-omit (skip) tag to Raw struct fields --- mdm/checkin.go | 6 +++--- mdm/command.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mdm/checkin.go b/mdm/checkin.go index 659e6f5..d229257 100644 --- a/mdm/checkin.go +++ b/mdm/checkin.go @@ -20,7 +20,7 @@ type Authenticate struct { Enrollment MessageType Topic string - Raw []byte // Original Authenticate XML plist + Raw []byte `plist:"-"` // Original Authenticate XML plist // Fields that may be present but are not strictly required for the // operation of the MDM protocol. Nice-to-haves. @@ -34,7 +34,7 @@ type TokenUpdate struct { MessageType Push UnlockToken []byte `plist:",omitempty"` - Raw []byte // Original TokenUpdate XML plist + Raw []byte `plist:"-"` // Original TokenUpdate XML plist } // CheckOut is a representation of a "CheckOut" check-in message type. @@ -42,7 +42,7 @@ type TokenUpdate struct { type CheckOut struct { Enrollment MessageType - Raw []byte // Original CheckOut XML plist + Raw []byte `plist:"-"` // Original CheckOut XML plist } // newCheckinMessageForType returns a pointer to a check-in struct for MessageType t diff --git a/mdm/command.go b/mdm/command.go index f06f10c..aadcfbe 100644 --- a/mdm/command.go +++ b/mdm/command.go @@ -27,7 +27,7 @@ type CommandResults struct { Status string ErrorChain []ErrorChain RequestType string - Raw []byte // Original command result XML plist + Raw []byte `plist:"-"` // Original command result XML plist } // DecodeCheckin unmarshals rawMessage into results