Commit Graph

158 Commits

Author SHA1 Message Date
Tom Sydney Kerckhove
4ddacd3631 explicit function for creating nonempty list codecs 2021-11-12 14:53:38 +01:00
Tom Sydney Kerckhove
9e4cf40ace simplified rendering of recursive schemas 2021-11-12 01:18:58 +01:00
Tom Sydney Kerckhove
777defbac0 codecs for maps and hashmaps 2021-11-12 01:11:58 +01:00
Tom Sydney Kerckhove
610aff68fd rename MapCodec to BimapCodec 2021-11-11 22:40:02 +01:00
Tom Sydney Kerckhove
192d87f259 HasCodec instance for sets 2021-11-11 18:26:43 +01:00
Tom Sydney Kerckhove
46be3a8329 Use the same trick to get rid of the error in ToYaml 2021-11-11 13:57:15 +01:00
Tom Sydney Kerckhove
ff98ddf3c5 readme fixup 2021-11-11 13:52:24 +01:00
Tom Sydney Kerckhove
ff6c8044b3 Got rid of a pure "error" using some refactoring and type magic 2021-11-11 13:51:33 +01:00
Tom Sydney Kerckhove
3b206f03d7 automatically implement toEncoding via codec as well 2021-11-11 13:45:40 +01:00
Tom Sydney Kerckhove
a9bf5c517e tests for roundtrips through json bytes and back 2021-11-11 13:27:03 +01:00
Tom Sydney Kerckhove
0fd5a4778e mention the yaml functionality in the readme 2021-11-11 13:24:38 +01:00
Tom Sydney Kerckhove
171202db07 rename toContextVia for extra clarity 2021-11-11 13:22:43 +01:00
Tom Sydney Kerckhove
6221413380 documented how to implement HasCodec for newtypes 2021-11-11 13:18:48 +01:00
Tom Sydney Kerckhove
d650adcdc1 Encoding yaml values with ToYaml for ordered keys 2021-11-11 00:34:12 +01:00
Tom Sydney Kerckhove
fc008467c7 working around an old ghc bug 2021-11-08 16:21:35 +01:00
Tom Sydney Kerckhove
13f6278364 A function for named codecs 2021-11-08 14:49:13 +01:00
Tom Sydney Kerckhove
13a97cc3f0
Merge pull request #1 from kenranunderscore/zap-swagger
Remove unused dependency on `swagger` (not `swagger2`)
2021-11-07 20:44:56 +01:00
Johannes Maier
a4060270db Remove unused dependency on swagger 2021-11-07 16:42:57 +01:00
Tom Sydney Kerckhove
91800d7e76 fixed a golden test for a show instance 2021-11-07 03:30:41 +01:00
Tom Sydney Kerckhove
0358ba7544 fix the swagger todo 2021-11-06 22:06:32 +01:00
Tom Sydney Kerckhove
028abf9536 Fixed more TODOs 2021-11-06 18:52:27 +01:00
Tom Sydney Kerckhove
865c2bbeda Fixed a TODO 2021-11-06 18:50:05 +01:00
Tom Sydney Kerckhove
d844252e60 Got the openapi schema validation tests to pass 2021-11-06 18:47:55 +01:00
Tom Sydney Kerckhove
d1d4d57e95 rename autodocodec-aeson-schema to autodocodec-schema 2021-11-06 15:06:32 +01:00
Tom Sydney Kerckhove
6a3566b775 Put autodocodec-aeson into autodocodec, there is no point in separating them anymore 2021-11-06 15:01:57 +01:00
Tom Sydney Kerckhove
e59231e488 upgrade ci 2021-11-06 12:47:58 +01:00
Tom Sydney Kerckhove
8cd917ba31 Nice README 2021-11-06 12:17:40 +01:00
Tom Sydney Kerckhove
4dfb40d330 describe the tests that we do 2021-11-06 12:11:42 +01:00
Tom Sydney Kerckhove
9fc8604407 some comments for the api usage tests 2021-11-06 12:04:47 +01:00
Tom Sydney Kerckhove
da5aa62276 Docs for autodocodec-openapi 2021-11-06 12:03:27 +01:00
Tom Sydney Kerckhove
027dde9416 Docs for autodocodec-swagger2 2021-11-06 12:00:42 +01:00
Tom Sydney Kerckhove
36b08e80ed documentation for autodocodec-yaml 2021-11-06 11:43:47 +01:00
Tom Sydney Kerckhove
5f6411a3db Docs for autodocodec-aeson 2021-11-06 11:37:49 +01:00
Tom Sydney Kerckhove
9723a2b6fd Improved JSON parsing error messages 2021-11-06 11:22:13 +01:00
Tom Sydney Kerckhove
ca78d92a3b more error message regression tests 2021-11-06 11:06:38 +01:00
Tom Sydney Kerckhove
ccd5a05ef7 fixed the bounded integer error message 2021-11-06 02:16:23 +01:00
Tom Sydney Kerckhove
a6134dcdb9 error message golden tests 2021-11-05 19:45:18 +01:00
Tom Sydney Kerckhove
f299f8749d openapi schema validation 2021-11-05 17:57:15 +01:00
Tom Sydney Kerckhove
5ff58302a9 Swagger validation tests 2021-11-05 17:32:44 +01:00
Tom Sydney Kerckhove
85ba85f9f1 Usage test for a type with lots of comments 2021-11-05 17:04:45 +01:00
Tom Sydney Kerckhove
4de5e5f844 nonempty list instance 2021-11-05 16:52:18 +01:00
Tom Sydney Kerckhove
5a26606d59 more explananation about why the referencecodec needs to be lazy 2021-11-05 16:47:03 +01:00
Tom Sydney Kerckhove
31407e429c fixed some docs 2021-11-05 16:42:24 +01:00
Tom Sydney Kerckhove
a1f1225f7d use strict data in the codec module 2021-11-05 16:31:08 +01:00
Tom Sydney Kerckhove
ecb575e2d0 fix the schema generation of nested schemas 2021-11-05 15:44:02 +01:00
Tom Sydney Kerckhove
fbff5bfa17 Fixed the recursive type schemas 2021-11-05 15:13:31 +01:00
Tom Sydney Kerckhove
9be70ca33c Put the field documentation in the right place for product types 2021-11-05 14:59:17 +01:00
Tom Sydney Kerckhove
df38571477 fill in the missing map case for openapi and swagger for product types 2021-11-05 14:54:28 +01:00
Tom Sydney Kerckhove
1d4b7ef1b1 Improved the show output to be more accurate and better parenthesised 2021-11-05 14:47:58 +01:00
Tom Sydney Kerckhove
e35bf87ce4 output object properties in the json schema as well 2021-11-05 14:45:18 +01:00