Skip to content

Revert "Relax Codable Router type requirements"#1269

Merged
djones6 merged 2 commits intomasterfrom
backout1235
May 16, 2018
Merged

Revert "Relax Codable Router type requirements"#1269
djones6 merged 2 commits intomasterfrom
backout1235

Conversation

@djones6
Copy link
Copy Markdown
Collaborator

@djones6 djones6 commented May 16, 2018

Description

This reverts #1242.

Motivation and Context

We've found a problem with the relaxing of output types from Codable to Encodable, such that they are no longer compatible with the TypeDecoder.

We need to revert the relaxing of types so that TypeDecoder can be used with the types used by Codable routes. Unfortunately, this means #1235 is no longer resolved and should be reopened. We'll still aim to reintroduce this in the future once a solution can be found.

Note - depends on Kitura/KituraContracts#22

How Has This Been Tested?

Checklist:

  • If applicable, I have updated the documentation accordingly.
  • If applicable, I have added tests to cover my changes.

@djones6 djones6 requested a review from ianpartridge May 16, 2018 09:00
@codecov-io
Copy link
Copy Markdown

codecov-io commented May 16, 2018

Codecov Report

Merging #1269 into master will decrease coverage by 0.03%.
The diff coverage is 97.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1269      +/-   ##
==========================================
- Coverage   88.21%   88.17%   -0.04%     
==========================================
  Files          38       38              
  Lines        2385     2377       -8     
==========================================
- Hits         2104     2096       -8     
  Misses        281      281
Flag Coverage Δ
#Kitura 88.17% <97.14%> (-0.04%) ⬇️
Impacted Files Coverage Δ
Sources/Kitura/CodableRouter.swift 80.37% <97.14%> (-0.57%) ⬇️

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 dcdcaa1...62f64b1. Read the comment docs.

@djones6 djones6 merged commit 49ace67 into master May 16, 2018
@djones6 djones6 deleted the backout1235 branch May 16, 2018 12:47
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.

3 participants