-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DynamicNodeDecoding protocol (#85)
This adds new `DynamicNodeDecoding` protocol similar to `DynamicNodeEncoding` introduced in #70 * Add DynamicNodeDecoding protocol * Remove NodeDecoding from XMLEncoder * Add NodeDecoding to XMLDecoder * Fix class name in DynamicNodeDecoding.swift * Implement DynamicNodeDecoding with tests * Improve test coverage * Add more example code to README * Fix wording in README * Fix typos, cleanup example code * Cleanup example code in README
- Loading branch information
1 parent
b8deb55
commit 40222d8
Showing
10 changed files
with
434 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// DynamicNodeDecoding.swift | ||
// XMLCoder | ||
// | ||
// Created by Max Desiatov on 01/03/2019. | ||
// | ||
|
||
public protocol DynamicNodeDecoding: Decodable { | ||
static func nodeDecoding(for key: CodingKey) -> XMLDecoder.NodeDecoding | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.