From 5a82eb906ff7aa26960ab0b157e576c9f2377181 Mon Sep 17 00:00:00 2001 From: LebJe <51171427+LebJe@users.noreply.github.com> Date: Fri, 11 Jun 2021 13:02:52 -0400 Subject: [PATCH] Replaced the compiler-generated `CodingKey` with a hand-written one so `contentLocation` isn't encoded or decoded. --- CHANGELOG.md | 6 ++++++ Sources/ArArchiveKit/Header.swift | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7420eec..a27add8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.2.2](https://github.com/LebJe/ArArchiveKit/releases/tag/0.2.2) - 2021-06-11 + +### Fixed + +- Replaced the compiler-generated `CodingKey` with a hand-written one so `contentLocation` isn't encoded or decoded. + ## [0.2.1](https://github.com/LebJe/ArArchiveKit/releases/tag/0.2.1) - 2021-06-11 ### Added diff --git a/Sources/ArArchiveKit/Header.swift b/Sources/ArArchiveKit/Header.swift index 959191e..eeed279 100644 --- a/Sources/ArArchiveKit/Header.swift +++ b/Sources/ArArchiveKit/Header.swift @@ -49,4 +49,8 @@ public struct Header: Equatable, Codable { self.mode = mode self.modificationTime = modificationTime } + + enum CodingKeys: String, CodingKey { + case name, userID, groupID, mode, modificationTime, size + } }