graphene-pydantic
graphene-pydantic copied to clipboard
Support Constrained types
Currently attempting to convert a constrained type will result in:
graphene_pydantic.converters.ConversionError: Don't know how to convert the Pydantic field ModelField(name='id', type=ConstrainedIntValue, required=True) (<class 'pydantic.types.ConstrainedIntValue'>)
What behavior would you expect here? Note that as far as I know constraints are not supported in GraphQL -- https://github.com/APIs-guru/graphql-constraints-spec is all I could find and that's just a draft so far.
For now just treating it as an int is sufficient. My understanding is the conversion process ignores validators anyway.
Any ideas?