Re: [go-nuts] Workflow and tools for JSON Schema generation

2020-09-10 Thread Paul Jolly
CUE (https://cuelang.org/) will (in the near future) be able to help with the Go -> JSON Schema part (or indeed JSON Schema -> Go). Please feel free to ask any questions of the community via https://cuelang.org/community/ On Thu, 3 Sep 2020 at 08:05, Johann Höchtl wrote: > > > Hi, > I would

Re: [go-nuts] Workflow and tools for JSON Schema generation

2020-09-06 Thread Johann Höchtl
mar...@gmail.com schrieb am Freitag, 4. September 2020 um 20:13:42 UTC+2: > Oh wow, my email client showed your email in a truncated way, so i didn't > see you were already using my project, sorry for the silly response. > > It would be possible to add external type definitions to

Re: [go-nuts] Workflow and tools for JSON Schema generation

2020-09-04 Thread Marcin Romaszewicz
Oh wow, my email client showed your email in a truncated way, so i didn't see you were already using my project, sorry for the silly response. It would be possible to add external type definitions to oapi-codegen, I believe. I'm in the process of thinking about a v2 version which is more stable,

Re: [go-nuts] Workflow and tools for JSON Schema generation

2020-09-04 Thread Marcin Romaszewicz
Have you considered reversing the workflow? You write the OpenAPI spec, and have a code generator produce the Schemas and server boilerplate? If that's ok, check out my project :) https://github.com/deepmap/oapi-codegen We successfully use it for many API's in production. -- Marcin On Thu,

[go-nuts] Workflow and tools for JSON Schema generation

2020-09-03 Thread Johann Höchtl
Hi, I would like to accomplish the following: An existing golang package on github provides a struct definition I am interested in to be used as part of a REST API interface I design 1. I would like to automatically go generate json schema for this struct 2. I would like to incorporate