diff --git a/Sources/JSONAPI/Document/Document.swift b/Sources/JSONAPI/Document/Document.swift index 1343559..a266216 100644 --- a/Sources/JSONAPI/Document/Document.swift +++ b/Sources/JSONAPI/Document/Document.swift @@ -408,8 +408,6 @@ extension Document: Decodable, CodableJSONAPIDocument where PrimaryResourceBody: throw DocumentDecodingError(error) } - // TODO come back to this and make robust - guard let metaVal = meta else { throw JSONAPICodingError.missingOrMalformedMetadata(path: decoder.codingPath) } diff --git a/Sources/JSONAPI/SparseFields/SparseFieldEncoder.swift b/Sources/JSONAPI/SparseFields/SparseFieldEncoder.swift index 36a1a95..2c555bd 100644 --- a/Sources/JSONAPI/SparseFields/SparseFieldEncoder.swift +++ b/Sources/JSONAPI/SparseFields/SparseFieldEncoder.swift @@ -158,7 +158,7 @@ struct SparseFieldKeyedEncodingContainer: KeyedEncodingContainer forKey key: Key) -> KeyedEncodingContainer where NestedKey : CodingKey { guard shouldAllow(key: key) else { return KeyedEncodingContainer( - // TODO: not needed by JSONAPI library, but for completeness could + // NOTE: not needed by JSONAPI library, but for completeness could // add an EmptyObjectEncoder that can be returned here so that // at least nothing gets encoded within the nested container SparseFieldKeyedEncodingContainer(wrapping: wrappedContainer.nestedContainer(keyedBy: keyType, @@ -176,7 +176,7 @@ struct SparseFieldKeyedEncodingContainer: KeyedEncodingContainer public mutating func nestedUnkeyedContainer(forKey key: Key) -> UnkeyedEncodingContainer { guard shouldAllow(key: key) else { - // TODO: not needed by JSONAPI library, but for completeness could + // NOTE: not needed by JSONAPI library, but for completeness could // add an EmptyObjectEncoder that can be returned here so that // at least nothing gets encoded within the nested container return wrappedContainer.nestedUnkeyedContainer(forKey: key) diff --git a/Tests/JSONAPITestingTests/Comparisons/Optional+AbstractWrapper.swift b/Sources/JSONAPITesting/Comparisons/Optional+AbstractWrapper.swift similarity index 100% rename from Tests/JSONAPITestingTests/Comparisons/Optional+AbstractWrapper.swift rename to Sources/JSONAPITesting/Comparisons/Optional+AbstractWrapper.swift