Generalise over the Swagger datatype rebase#92
Open
sorki wants to merge 3 commits intohaskell-servant:masterfrom
Open
Generalise over the Swagger datatype rebase#92sorki wants to merge 3 commits intohaskell-servant:masterfrom
sorki wants to merge 3 commits intohaskell-servant:masterfrom
Conversation
Author
|
Gentlest ping. |
This change modifies the previously introduced generalisation of the Haskell datatype that holds the Swagger specification to an aeson Value. By using an aeson Value, all ordering information of object fields is being lost. This information is in principle preserved by aeson, when going via Encoding rather than Value. With this patch, we do not perform any aeson-related translation in the servant-swagger-ui code, and simply use the original datatype. It is servant's own responsibility to handle the actual conversion of the datatype to JSON. Follow-up to haskell-servant#89. Co-Authored-By: srk <srk@48.io>
Allows - base 4.19 - base-compat 0.13 - bytesting 0.12 - servant 0.20 - servant-server 0.20 - text 2.1 - len 5.2
Author
|
Rebased and updated bounds to allow |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
See #89
Rebased, added Changelog entries and version bumps. Provided it is pretty straightforward to upgrade I don't think it's worth bothering with additional complexity.
@kosmikus Thanks for hunting down the ordering issues. Using this in combination with biocad/openapi3#27 it's almost there except for openapi examples that still need
Values.