Commit Graph

95 Commits

Author SHA1 Message Date
David Overton
affdfba63c Combine enum schemas if they have the same type 2022-04-06 17:25:33 +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
9880ec062f Support multi-line default values in yaml schemas, fixes #8 2021-12-28 12:29:29 +01:00
Tom Sydney Kerckhove
4525db2587 specific support for 'or null' in autodocodec-yaml 2021-12-23 15:31:17 +01: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
e5a54ccc0d single or list codec 2021-11-18 17:05:56 +01:00
Tom Sydney Kerckhove
7e1f1ea5ff rename json encoding and decoding functions to mention json 2021-11-17 18:11:28 +01:00
Tom Sydney Kerckhove
68457161c6 rename yaml document to schema 2021-11-17 18:00:49 +01:00
Tom Sydney Kerckhove
7ad5253bbc remove benchmarks that can't run 2021-11-17 14:39:36 +01:00
Tom Sydney Kerckhove
0c501cf45b basic benchmarks 2021-11-17 14:24:20 +01:00
Tom Sydney Kerckhove
c217851b1d combine nested bimap codecs 2021-11-17 01:09:05 +01:00
Tom Sydney Kerckhove
a48dc85e1b make multiple alternatives object schemas look good too 2021-11-17 01:06:32 +01:00
Tom Sydney Kerckhove
1e15903a98 rename both to all in object schemas 2021-11-17 00:59:20 +01:00
Tom Sydney Kerckhove
6d57ef06b4 everything passes! 2021-11-17 00:57:07 +01:00
Tom Sydney Kerckhove
ae54f406da only jsonschema roundtripping left 2021-11-17 00:01:28 +01:00
Tom Sydney Kerckhove
ba19213a7d got something to compile in the schema 2021-11-16 23:49:58 +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
2ba58cb1d3 Show bounds in yaml documents as integers if we can 2021-11-14 21:25:42 +01:00
Tom Sydney Kerckhove
43206f901c Add optional bounds to the number codec 2021-11-14 21:20:39 +01:00
Tom Sydney Kerckhove
6e3809376f removed the docs from the codec instances of Ints and Words 2021-11-14 13:57:09 +01:00
Tom Sydney Kerckhove
3af2f4b216 Playing around with branching error context 2021-11-14 12:56:29 +01:00
Tom Sydney Kerckhove
8b47a07e2a Instances for DiffTime and NominalDiffTime 2021-11-12 17:31:18 +01:00
Tom Sydney Kerckhove
a30b00fc08 codecViaAeson instances for time types 2021-11-12 16:56:34 +01:00
Tom Sydney Kerckhove
0cca6b2661 HasCodec instance for Day 2021-11-12 16:45:14 +01:00
Tom Sydney Kerckhove
35954aec68 optional key with omitted default 2021-11-12 16:23:33 +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
a9bf5c517e tests for roundtrips through json bytes and back 2021-11-11 13:27:03 +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
13f6278364 A function for named codecs 2021-11-08 14:49:13 +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
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
9fc8604407 some comments for the api usage tests 2021-11-06 12:04:47 +01:00
Tom Sydney Kerckhove
36b08e80ed documentation for autodocodec-yaml 2021-11-06 11:43:47 +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