-
Notifications
You must be signed in to change notification settings - Fork 116
Encodable and Decodable support for choice elements #119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,988
−722
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
749e0fc
Add testing preliminaries for choice elements
bwetherfield ffbb395
Add ChoiceKey protocol conforming to CodingKey
jsbean 77f9699
Implement choice element encoding
bwetherfield c128f28
Implement choice element decoding
jsbean 312c4f5
Refactor clean up choice coding implementation
jsbean 91693e9
Rename XMLChoiceKey -> XMLChoiceCodingKey
jsbean b5684f3
Rename SingleElementBox to SingleKeyedBox
jsbean 5fd8d8f
Rename nestedSingleElementContainer -> nestedChoiceContainer
jsbean 5bda791
Cull redundancies
jsbean 045e07c
Add enum with associated value encoding tests
bwetherfield a7fb985
Fix usage to one key in the XMLChoiceDecodingContainer
jsbean b1b6c27
Factor out mapKeys to XMLDecoderImplementation.transformKeyedContainer
jsbean 048d0c3
Be more assertive in NestingTests (#44)
jsbean 5748eee
Merge branch 'master' into choice-implementation
jsbean c6ee065
Use KeyedBox like we used to (#46)
jsbean e6467d5
Rename scheme XMLCoder-Package -> XMLCoder
jsbean ce09102
Share scheme
jsbean f09c79d
Use Swift 4.2
jsbean 0414fd8
Use Swift 4.2 everywhere
jsbean e1f0c45
Bring back old performance testing baseline
jsbean 0b9c5cc
Whitespace
jsbean a8125e2
Bring back scheme management plist
jsbean bf52ca8
Bring back in empty AdditionalOptions
jsbean fd594fd
Whitespace
jsbean a930d00
Remove print statement
jsbean 5a7a64a
Merge early exits in ChoiceBox.init?(_: KeyedBox)
jsbean c000573
Tighten up SharedBox init callsite
jsbean d4bd9f4
Rename _converted -> converted
jsbean 4a99e95
Beef up XMLChoiceCodingKey doc comment
jsbean 7920b72
Rename local variable mySelf -> oldSelf
jsbean 683cb34
Wrangle long preconditionFailure messages
jsbean 7db9627
Reword Implement -> Implementing in doc comment
jsbean c213808
Throw errors instead of fatallyErroring
jsbean 32195c5
Add brief description to README
jsbean 8149ead
Keep README in tag-ological order
jsbean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Refactor clean up choice coding implementation
Rename singleElementBox -> choiceBox Create privileged path for Choices Sweep away commented-out code Add comment Don't treat top-level choice Tighten up impl Rename singleElementContainer method -> choiceContainer Whoops that was the Encoder Add unkeyed single element container et al. Add messages to fatal errors Omit type label Switch to ChoiceBox based implementation Revert pretty printing special casing Add passing encode tests for choice elements with attributes Add xcodeproj debris Remove use of XMLUnkeyedSingleElementDecodingContainer Remove unreached code in XMLChoiceDecodingContainer Remove superDecoder methods because enums ain't classes Put all the decode impl in one place Whitespace
- Loading branch information
commit 312c4f5d07fc3cbdd71ff9f65740a563e64704e1
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.