Skip to content

Generalise over the Swagger datatype rebase - #92

Closed
sorki wants to merge 3 commits into
haskell-servant:masterfrom
sorki:poly
Closed

Generalise over the Swagger datatype rebase#92
sorki wants to merge 3 commits into
haskell-servant:masterfrom
sorki:poly

Conversation

@sorki

@sorki sorki commented Jul 31, 2021

Copy link
Copy Markdown

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.

@sorki

sorki commented Oct 10, 2022

Copy link
Copy Markdown
Author

Gentlest ping.

kosmikus and others added 3 commits November 8, 2023 13:35
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
@sorki

sorki commented Nov 8, 2023

Copy link
Copy Markdown
Author

Rebased and updated bounds to allow base 4.19 and servant 0.20. CC @maksbotan as someone who touched this recently.

@sorki

sorki commented May 16, 2026

Copy link
Copy Markdown
Author

Closing in favor of #142

@sorki sorki closed this May 16, 2026
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.

2 participants