graphql-engine/server/src-test/Hasura
Jesse Hallett 2f3ae93ab0 server: initial set of DTO types for metadata
This implements an initial set of DTO types that represent serialized metadata. These new types come with codecs using autodocodec which are used to derive both JSON serialization, and OpenAPI documentation. This ensures that we can automatically generate API documentation that is guaranteed to match JSON produced by the server.

For the moment the new types are not used for anything except to generate an early version of an OpenAPI document. Because this is early work the DTO types for each metadata format version list top-level properties only with placeholders for the types of each top-level property. This early iteration demonstrates using a sum type in Haskell that maps to a tagged union in OpenAPI (using the `version` field value as a tag).

This work is experimental and incomplete! Please do not incorporate the generated OpenAPI documentation into essential workflows at this time.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4801
GitOrigin-RevId: d2f110a6237b73520cdba24667333ef14e8cdd3d
2022-06-27 16:33:31 +00:00
..
Backends AVRelationship Support for Data Connectors [GDW-123] 2022-06-24 06:59:52 +00:00
Generator Rewrite ir generators 2022-04-05 22:09:40 +00:00
GraphQL Remove the source cache from the schema context 2022-06-23 11:43:17 +00:00
Metadata/DTO server: initial set of DTO types for metadata 2022-06-27 16:33:31 +00:00
QuickCheck server: migrate to aeson-2 in preparation for ghc 9.2 upgrade 2022-06-08 15:32:27 +00:00
RQL server: Fix a bunch of HLint suggestions 2022-06-21 11:12:42 +00:00
Server server: GHC 9.2 changes compatible with 8.10 (#3550) 2022-06-25 22:09:05 +00:00
SQL server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
AppSpec.hs server: Fix a bunch of HLint suggestions 2022-06-21 11:12:42 +00:00
EventingSpec.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
IncrementalSpec.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
SessionSpec.hs server: Splits QuickCheck extension and orphan instance modules 2022-02-22 15:33:37 +00:00
StreamingSubscriptionSpec.hs server: Reorganize quasi-quoted names. 2022-06-23 09:15:31 +00:00