Commit Graph

95 Commits

Author SHA1 Message Date
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
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
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
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
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
27677bff24 implemented the undefined in yamlschema 2021-11-01 16:11:59 +01:00
Tom Sydney Kerckhove
aa0ecdb6ec something that compiles 2021-11-01 14:26:27 +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
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
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
8bd8552343 removed debug code 2021-10-30 11:34:40 +02:00
Tom Sydney Kerckhove
99d62f01fa optionalFieldWithDefault 2021-10-30 11:34:16 +02:00
Tom Sydney Kerckhove
9333b3c253 Optional field or null 2021-10-30 11:22:54 +02:00
Tom Sydney Kerckhove
4bfa61d352 got the decoding the wrong way around 2021-10-30 02:34:30 +02:00
Tom Sydney Kerckhove
4044263ad3 something is going wrong with numbers 2021-10-30 02:32:53 +02:00
Tom Sydney Kerckhove
78fefa969c move all tests to the api usage module 2021-10-30 00:34:47 +02:00
Tom Sydney Kerckhove
c3402bc891 Refactor api usage tests into separate package 2021-10-30 00:29:59 +02:00