go-jsonschema-generator
go-jsonschema-generator copied to clipboard
Feature: Deep reading values and generating schema
Currently the repo supports reading the type alone and generating schema
I have forked this repo here - https://github.com/karuppiah7890/go-jsonschema-generator to add functions to do a deep read - where the all the values of the input are read in a deep manner - that is - read all the nested values too and find out the json schema for it. Do check the source code. I have used the forked repo in this application - https://github.com/karuppiah7890/helm-schema-gen
If the fork code looks good, I can contribute back to this repo. I just have a feeling that the implementation is not great or perfect - but it works - at least I have tests for the cases it works for 😅
cc @mcuadros
This issue is based on the discussions in these commits
https://github.com/karuppiah7890/go-jsonschema-generator/commit/3854335796debace8a751badb81e4af29a4ab91c
https://github.com/karuppiah7890/go-jsonschema-generator/commit/082ad3307d9ef79988f517861d3217c5ea67616c
Bump^
As someone who is trying to use this it would be great to have the option to generate the full nested schema.