invopop / jsonschema

Generate JSON Schemas from Go types
MIT License
544 stars 89 forks source link

Add support for multiple types #134

Closed andreafalzetti closed 8 months ago

andreafalzetti commented 9 months ago

Currently Type is string. But JsonSchema allow for MultiTypes

samlown commented 8 months ago

A proposal that solves this would be great but I don't think the amount of pain involved in Go to get this working is worth it, especially given that this library is more concerned about converting Go to JSON Schema. Happy to hear more opinions, but I'll close this for the time being.