HerbCaudill/jsonschema2graphql

JSON Schema 'Multiple Types'

Closed this issue · 1 comments

  • I'm submitting a ...
    [ x] bug report
    [ x] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    Hi, thanks for this repo!

JSONSchema specifies the option for multiple types (https://json-schema.org/latest/json-schema-validation.html#rfc.section.6.1.1). Of course clearly typed APIs were better, but this is unfortunately not always the case.

I did not know, that GraphQL doesn't allow unions of scalar types. So the functionality is fine as it is.