Commit Graph

109 Commits

Author SHA1 Message Date
Tom Sydney Kerckhove
e35bf87ce4 output object properties in the json schema as well 2021-11-05 14:45:18 +01:00
Tom Sydney Kerckhove
b3eae15268 DerivingVia for ToSchema instances 2021-11-05 14:02:05 +01:00
Tom Sydney Kerckhove
a067824491 sync up all the usage test types 2021-11-05 13:47:37 +01:00
Tom Sydney Kerckhove
c5c8df20d6 tests for a null type 2021-11-05 13:36:25 +01:00
Tom Sydney Kerckhove
6c3cc83464 First draft of autodocodec-openapi3 2021-11-05 10:56:54 +01:00
Tom Sydney Kerckhove
d1bd1f66da fixed the build 2021-11-05 10:35:49 +01:00
Tom Sydney Kerckhove
adc14d381e some swagger2 support for sum types 2021-11-05 10:19:18 +01:00
Tom Sydney Kerckhove
6be56ee1b2 nullcodec and eqcodec 2021-11-04 21:17:28 +01:00
Tom Sydney Kerckhove
26bafc1696 golden test for the show output 2021-11-02 21:55:11 +01:00
Tom Sydney Kerckhove
e69903fa9e trying to make swagger schemas for object codecs as well 2021-11-02 18:04:41 +01:00
Tom Sydney Kerckhove
ce5ccfe7c9 swagger schema for a recursive type 2021-11-02 17:50:22 +01:00
Tom Sydney Kerckhove
ec47c5bbb5 add the swagger package to the nix build 2021-11-02 11:27:36 +01:00
Tom Sydney Kerckhove
46f01c6d82 Swagger schemas for arrays, dimap and comment 2021-11-02 11:23:34 +01:00
Tom Sydney Kerckhove
d9095e0c02 moved the test resources around a bit 2021-11-02 00:12:36 +01:00
Tom Sydney Kerckhove
3703c2cd31 some initial schemas 2021-11-02 00:09:16 +01:00
Tom Sydney Kerckhove
cb1bd16e0b tried a thing 2021-11-01 19:28:06 +01:00
Tom Sydney Kerckhove
632a0cb9be Renamed Autodocodec.Aeson.DocumentSpec to Autodocodec.Aeson.SchemaSpec 2021-11-01 19:16:41 +01:00
Tom Sydney Kerckhove
a8eb840bdf simplified the way default values work 2021-11-01 19:15:29 +01:00
Tom Sydney Kerckhove
c8c3b179b5 got rid of some done todos 2021-11-01 19:10:55 +01:00
Tom Sydney Kerckhove
e04fed62a7 renamed Autodocodec.Aeson.Document to Autodocodec.Aeson.Schema 2021-11-01 19:07:54 +01:00
Tom Sydney Kerckhove
190d702200 split off a autodocodec-aeson-schema package 2021-11-01 19:06:42 +01:00
Tom Sydney Kerckhove
312149899a deriving via example 2021-11-01 18:42:32 +01:00
Tom Sydney Kerckhove
ae46d36ef4 Usage documentation 2021-11-01 18:26:14 +01:00
Tom Sydney Kerckhove
c2342bceef example usage docs 2021-11-01 17:59:30 +01:00
Tom Sydney Kerckhove
de9fc92a9d generate a value schema as well 2021-11-01 16:56:56 +01:00
Tom Sydney Kerckhove
cf7f92f50b generate default schemas as well 2021-11-01 16:52:04 +01:00
Tom Sydney Kerckhove
b37761b07b Generate ref and def schemas 2021-11-01 16:29:12 +01:00
Tom Sydney Kerckhove
7a32f49ba7 simplified yaml schema creation 2021-11-01 16:16:06 +01:00
Tom Sydney Kerckhove
27677bff24 implemented the undefined in yamlschema 2021-11-01 16:11:59 +01:00
Tom Sydney Kerckhove
8881680dc8 got rid of the undefineds in schema validation 2021-11-01 14:32:09 +01:00
Tom Sydney Kerckhove
aa0ecdb6ec something that compiles 2021-11-01 14:26:27 +01:00
Tom Sydney Kerckhove
9dfc1158fa some type-annotations for documentation 2021-11-01 13:51:47 +01:00
Tom Sydney Kerckhove
867a789023 renamed some type variables 2021-10-31 23:31:33 +01:00
Tom Sydney Kerckhove
d61887924e object codec for json objects 2021-10-31 23:16:30 +01:00
Tom Sydney Kerckhove
3b3a23b434 rename ObjectCodec to ObjectOfCodec 2021-10-31 23:13:13 +01:00
Tom Sydney Kerckhove
6ec37cd56c Docs, docs, and more docs 2021-10-31 12:38:36 +01:00
Tom Sydney Kerckhove
46392269a3 export list for autodocodec 2021-10-31 12:11:20 +01:00
Tom Sydney Kerckhove
aad1a848e4 optionalFieldOrNullWith 2021-10-31 11:46:54 +01:00
Tom Sydney Kerckhove
6ee83a4426 strip the newlines off yaml encodings in the ValueSchema docs 2021-10-30 20:38:08 +02:00
Tom Sydney Kerckhove
d7254410d2 refactor out an orNull helper 2021-10-30 20:28:06 +02:00
Tom Sydney Kerckhove
6f0851ad12 put the default value in the key schema directly 2021-10-30 20:22:25 +02:00
Tom Sydney Kerckhove
50bba03446 docs built-in in the fields 2021-10-30 19:55:07 +02:00
Tom Sydney Kerckhove
b25404dd5d default value in docs 2021-10-30 19:11:38 +02:00
Tom Sydney Kerckhove
c2e0da59c5 rename fmap and comap to lmap and rmap 2021-10-30 18:36:36 +02:00
Tom Sydney Kerckhove
3a17b9f310 Put together all of the codec types 2021-10-30 16:29:23 +02:00
Tom Sydney Kerckhove
8e26e2f5f5 build fewer versions on ci because the haddocks are quite stupid about it 2021-10-30 13:00:37 +02:00
Tom Sydney Kerckhove
0cbb0056cc rename bimap to dimap 2021-10-30 12:54:22 +02:00
Tom Sydney Kerckhove
c7749e2947 withDefault and documentation 2021-10-30 12:42:26 +02:00
Tom Sydney Kerckhove
32dfb6191e Better names for primitive codecs 2021-10-30 12:25:33 +02:00
Tom Sydney Kerckhove
f03d879004 encode arrays an vectors 2021-10-30 12:11:41 +02:00