Skip to content
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

Generalise over the Swagger datatype rebase #92

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sorki
Copy link

@sorki sorki commented Jul 31, 2021

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
Copy link
Author

sorki commented Oct 10, 2022

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 <[email protected]>
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
Copy link
Author

sorki commented Nov 8, 2023

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

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