Commit Graph

40 Commits

Author SHA1 Message Date
Tom Sydney Kerckhove
7dac30c27e Upgrade to lts 20.23 and nixos 23.05 2023-06-02 09:47:35 +02:00
Tom Sydney Kerckhove
b49e3f4201 Nix flake 2022-11-30 14:33:11 +01:00
David Overton
a06ee16d8d Add Discriminated unions 2022-07-21 16:11:24 +02:00
Tom Sydney Kerckhove
a60fbd4db1 release autodocodec-openapi3 2022-06-19 20:33:41 +02:00
Daniel Chambers
14689b42cb Update changelog 2022-06-16 16:58:28 +10:00
Daniel Chambers
6bdfb8d27c OpenAPI schemas for maps should indicate they are objects 2022-06-16 16:50:28 +10:00
Tom Sydney Kerckhove
00649ce417 Upgraded to lts 19.6 2022-06-07 12:52:18 +02:00
David Overton
bfe6e64757 Merge remote-tracking branch 'origin/master' into disjoint-codecs 2022-05-03 15:39:36 +10:00
David Overton
c485a4e496 Update changelog 2022-05-03 15:36:43 +10:00
Joel Fisch
633385ee0c Set default on property schema and not on the object level 2022-04-07 21:36:35 +02:00
David Overton
a6c72e5a6c Add disjoint versions of matchChoiceCodec, matchChoicesCodec, enumCodec, stringConstCodec, and shownBoundedEnumCodec 2022-04-06 23:22:38 +10:00
David Overton
affdfba63c Combine enum schemas if they have the same type 2022-04-06 17:25:33 +10:00
Tom Sydney Kerckhove
260cbca0c1 merged manually 2022-04-05 15:23:17 +02:00
David Overton
25350cda8f Fix version in cabal file 2022-04-05 23:10:07 +10:00
David Overton
7fdeaffd5e Add changelog entry 2022-04-05 23:05:57 +10:00
David Overton
02472bd713 Merge branch 'master' into openapi-types-in-enums 2022-04-05 23:04:07 +10:00
Daniel Chambers
9cc6db5772 Fix declareSchemaRef interfering with ReferenceCodec recursion control 2022-04-05 14:46:05 +02:00
David Overton
b0dd2090b0 Add a type field when generating enum schema from EqCodec 2022-03-28 15:08:43 +11:00
Tom Sydney Kerckhove
fc34a0d786 Add special support for 'or null' schemas to autodocodec-openapi3 2021-12-23 15:23:51 +01:00
Tom Sydney Kerckhove
45a112f16e Support disjoint unions 2021-12-23 15:12:30 +01:00
Tom Sydney Kerckhove
dc2be396bc Release candidate 2021-11-19 12:21:45 +01:00
Tom Sydney Kerckhove
01664270e7 Trying choice for objects again 2021-11-16 21:17:38 +01:00
Tom Sydney Kerckhove
0723cdc7e0 trying to implement choice for objects 2021-11-16 17:37:51 +01:00
Tom Sydney Kerckhove
43206f901c Add optional bounds to the number codec 2021-11-14 21:20:39 +01:00
Tom Sydney Kerckhove
35954aec68 optional key with omitted default 2021-11-12 16:23:33 +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
0358ba7544 fix the swagger todo 2021-11-06 22:06:32 +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
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
da5aa62276 Docs for autodocodec-openapi 2021-11-06 12:03:27 +01:00
Tom Sydney Kerckhove
f299f8749d openapi schema validation 2021-11-05 17:57:15 +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
b3eae15268 DerivingVia for ToSchema instances 2021-11-05 14:02:05 +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