-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use multiple schema's with enum types #1576
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use an enum similar to the following:
with this corresponding representation in Rust:
during deserialization from a query I will receive the following error:
however, barring no naming conflicts with any other schema if we drop the schema name
a
fromtype_name
deserialization will work correctly. E.g.:The issue is, we use multiple different schemas which means we may have other enums where we share the same type names from different schemas even though the types are completely different. This will create an ambiguity where we must qualify by schema so in general we want to always try and qualify by schema.
Is it possible to qualify by schema here? If not, is there some alternative way to get this to work with multiple schemas?
The text was updated successfully, but these errors were encountered: