mirror of
https://github.com/encounter/JSONAPI.git
synced 2026-03-30 11:18:38 -07:00
Starting to add SparseFieldEncoder tests
This commit is contained in:
@@ -28,12 +28,6 @@ public class SparseFieldEncoder<SparseKey: CodingKey & Equatable>: Encoder {
|
||||
return KeyedEncodingContainer(container)
|
||||
}
|
||||
|
||||
public func container(keyedBy type: SparseKey.Type) -> KeyedEncodingContainer<SparseKey> {
|
||||
let container = SparseFieldKeyedEncodingContainer(wrapping: wrappedEncoder.container(keyedBy: type),
|
||||
encoding: allowedKeys)
|
||||
return KeyedEncodingContainer(container)
|
||||
}
|
||||
|
||||
public func unkeyedContainer() -> UnkeyedEncodingContainer {
|
||||
return wrappedEncoder.unkeyedContainer()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user