Skip to content

Custom JSON encoder and decoder block properties#23

Closed
tib wants to merge 2 commits intoKitura:masterfrom
tib:master
Closed

Custom JSON encoder and decoder block properties#23
tib wants to merge 2 commits intoKitura:masterfrom
tib:master

Conversation

@tib
Copy link
Copy Markdown

@tib tib commented Feb 21, 2018

In order to support the new custom JSONEncoder in Kitura it is required to introduce new customizable JSON encoder and decoder properties in KituraKit as well. See this PR.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 21, 2018

Codecov Report

Merging #23 into master will decrease coverage by 2.11%.
The diff coverage is 68.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
- Coverage   71.96%   69.85%   -2.12%     
==========================================
  Files           2        2              
  Lines         132      136       +4     
==========================================
  Hits           95       95              
- Misses         37       41       +4
Flag Coverage Δ
#KituraKit 69.85% <68.42%> (-2.12%) ⬇️
Impacted Files Coverage Δ
Sources/KituraKit/Client.swift 73.59% <68.42%> (-2.44%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ce52cd...8e265f3. Read the comment docs.

Copy link
Copy Markdown

@EnriqueL8 EnriqueL8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @ianpartridge would this be a breaking change? Actually it isn't I believe

expectation1.fulfill()
}
waitForExpectations(timeout: 3.0, handler: nil)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove whitespace

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EnriqueL8 this is not a breaking change, it's an minor additional option for configuring custom JSON encoders and decoders.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

@djones6
Copy link
Copy Markdown
Contributor

djones6 commented Nov 30, 2018

@tib Thank you for the effort that you put in to both this and the corresponding Kitura PR. The Kitura one was further developed into Kitura/Kitura#1221, and likewise @Andrew-Lees11 has developed the corresponding KituraKit change in #38 .

I'm closing this PR in favour of #38, which provides equivalent functionality but generalised for any media type.

@djones6 djones6 closed this Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants