HerbCaudill / jsonschema2graphql

Convert JSON schema to GraphQL types
MIT License
43 stars 15 forks source link

const properties are not supported with type field #24

Open Woodz opened 2 years ago

Woodz commented 2 years ago

https://json-schema.org/understanding-json-schema/reference/generic.html#constant-values gives an example for how a const property can be defined

{
  "properties": {
    "country": {
      "const": "United States of America"
    }
  }
}

However, this fails due to The type undefined on property country is unknown