Nezteb
04/24/2019, 12:10 AMhttp4k-by-example
, the contract module generates these random object927961565
objects. is there a way to name those manually?Nezteb
04/24/2019, 3:12 AMNezteb
04/24/2019, 3:12 AMdave
04/24/2019, 6:41 AMdave
04/24/2019, 6:44 AMTom Ellis
04/24/2019, 6:46 AMNezteb
04/24/2019, 2:40 PMNezteb
04/24/2019, 2:55 PMNezteb
04/24/2019, 3:21 PMobject2178172
dave
04/24/2019, 3:23 PMNezteb
04/24/2019, 3:27 PMTom Ellis
04/26/2019, 8:44 PMNezteb
04/26/2019, 8:54 PM/auto-swagger.json
and a regular static /swagger.json
, which has some manual manipulations in it.dave
04/26/2019, 8:56 PMNezteb
04/26/2019, 11:16 PMswagger-parser
type called Swagger
, manipulate it, serialize it back to JSON (or YAML if they add ?yaml
to their GET operation), and return itTom Ellis
04/28/2019, 12:46 PMreceiving(requestExampleMeta('MyObject', MyLens, MyExample))
when building your contract meta you get a HttpMessageWithExampleMeta which, when doing asSchema
will call ObjectToJsonSchema
Tom Ellis
04/28/2019, 12:49 PMdave
04/28/2019, 4:41 PMhttp4k-jackson
. I didn't know about jackson-module-jsonSchema
so that might come in ultra-handy. Going to stay well away from the Scala one though... 🙂Tom Ellis
04/29/2019, 5:27 AMTom Ellis
05/13/2019, 9:12 AMv3.142.0
[http4k-contract] Both OpenApi v2 and v3 are now supported, including automatic schema generation. Some classes for OpenApi2 have moved to a new package. See module docs for details. Optionally include http4k-format-jackson to get JSON schema models based on JVM objects.
[http4k-format-jackson] Added reflective JSON schema creator, to be used for generating named models from JVM objects.
dave
05/13/2019, 9:32 AMdave
05/13/2019, 1:28 PMv3.143.0
[http4k-contract] Fix #239 - OpenApi v3 schemas for raw lists blow up when rendering.
[all] Update various dependencies.
v3.142.0
[http4k-contract] Both OpenApi v2 and v3 are now supported, including automatic schema generation. Some classes for OpenApi2 have moved to a new package. See module docs for details. For OpenApi v3, optionally include http4k-format-jackson to get JSON schema models based on JVM objects.
[http4k-format-jackson] Added reflective JSON schema creator, to be used for generating named models from JVM objects.
dave
05/13/2019, 1:52 PMdave
05/13/2019, 5:48 PMv3.143.1
[http4k-core] - Replace RequestContexts with reference to Store. H/T @amcghie
[http4k-contract] - Added some missing deprecations.
[http4k-contract] - Fix #243 - Nulls not allowed in OpenApi V3 JSON models.
Nezteb
05/15/2019, 3:51 PMNezteb
05/15/2019, 3:54 PM[http4k-format-jackson] Added reflective JSON schema creator, to be used for generating named models from JVM objects.Is there an example of this anywhere? I’d love to check that out
dave
05/15/2019, 3:55 PMNezteb
05/15/2019, 5:27 PMTom Ellis
05/18/2019, 12:33 PMTom Ellis
05/18/2019, 12:38 PMdave
05/19/2019, 2:58 PMTom Ellis
05/20/2019, 12:56 AMTom Ellis
05/20/2019, 12:59 AMdave
05/20/2019, 5:20 AMNezteb
05/22/2019, 2:22 AMdave
05/22/2019, 2:59 AMdave
05/22/2019, 3:00 AMNezteb
05/22/2019, 3:02 AM