-
Notifications
You must be signed in to change notification settings - Fork 26
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
Update TravisCI: Remove Swift 4.x; Add Swift 5.4 #61
Update TravisCI: Remove Swift 4.x; Add Swift 5.4 #61
Conversation
@mbarnach @adam-rocska What are your thoughts on the changes here? Apparently there's a minor change in JSONEncoder between Swift 4.x and Swift 5.x and JSON fragments are now supported. But I think KituraContracts was relying on fragments not being supported. It's a little inefficient, but I just threw in an extra check as I saw no option for JSONEncoder to disable allowing fragments. |
🤔 Interesting... Are you sure this is problematic? Or more specifically, in which way was it problematic for you? |
I'm not entirely sure it's a problem... just that there was a unit test explicitly testing that error responses must not be JSON fragments. So in the absence of more insight, I'm attempting to preserve that behavior. Unfortunately the error that is thrown is not preserved, but I'm hoping that won't be an issue for any practical uses of the framework. |
I think that's the expected behaviour. I cannot find a quick and easy way to do it without that extra test, but I'm wondering if we shouldn't put it under Debug or any other flag, as it is quite "intense" otherwise? |
@mbarnach yah, that sounds reasonable. |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good to me!
No description provided.