graphql-engine/server/lib/aeson-ordered
Jesse Hallett b9ec9b78dd server: convert Metadata to DTO (smaller PR)
Introduces a new function, `metadataToDTO`, that converts a `Metadata` value to a `MetadataV3` DTO value. This is the next step in the alternative serialization path for metadata that comes with a generated OpenAPI specification.

This PR carves up the existing `metadataToOrdJSON` function so that helpers previously embedded in the `where` block of that function can also be used in the implementation of `metadataToDTO`. If I did everything correctly `metadataToOrdJSON` should behave exactly as before.

In a followup PR I will move the extracted helpers to a new submodule, `Hasura.RQL.Types.Metadata.Serialization`, since they add up to several hundred lines of code.

I'm breaking up #5184 into smaller PRs, and this is the second PR in that effort. This PR is stacked on #5210.

The tracking issue is https://hasurahq.atlassian.net/browse/MM-35

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5211
GitOrigin-RevId: 2596ed5312d7b1232c47ae1d08a51d8ead11fcb8
2022-08-01 12:50:00 +00:00
..
src/Data/Aeson server: convert Metadata to DTO (smaller PR) 2022-08-01 12:50:00 +00:00
aeson-ordered.cabal server: Automate generation and verification of Cabal files from hpack. 2022-07-29 16:22:12 +00:00
CHANGELOG.md server: move ordered Aeson into its own package 2022-07-07 15:55:52 +00:00
LICENSE server: move ordered Aeson into its own package 2022-07-07 15:55:52 +00:00
package.yaml server: move ordered Aeson into its own package 2022-07-07 15:55:52 +00:00