Skip to content

Commit

Permalink
Replaced the compiler-generated CodingKey with a hand-written one s…
Browse files Browse the repository at this point in the history
…o `contentLocation` isn't encoded or decoded.
  • Loading branch information
LebJe committed Jun 11, 2021
1 parent fe80b87 commit 5a82eb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Sources/ArArchiveKit/Header.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 5a82eb9

Please sign in to comment.