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 <johann.hoec...@gmail.com> wrote:
>
>
> 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
>
> I would like to automatically go generate json schema for this struct
> I would like to incorporate this generated schema into an OpenAPI definition 
> and generate go boilerplate for that
>
>
> For step 2 I am using https://github.com/deepmap/oapi-codegen which works 
> great. It also supports $ref to external schemas.
>
> Still looking to accomplish step 1: I am searching for a tool which go 
> generates JSON schema from a golang source file or package. Any help?
>
> --
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/f0e099de-7008-478d-ba92-f2febd0c40bdn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CACoUkn4EgxJJc1qA53a7kZVeeXrzb%2BYvU-vgGr%2BgcxJakajhjA%40mail.gmail.com.

Reply via email to