-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Union type is always generated, even if withObjectType is false #252
Comments
have a similar problem with just using |
@Code-Hex also the uniontypedefinition seems to be missing in the latest version?! |
@tobiasdiez Thanks I will fix it! @sschneider-ihre-pvs I cannot read your JavaScript |
that is the published js from the npm package |
@alisabzevari |
@tobiasdiez @anhdd-kuro I just published the latest version (v0.7.1) which is contained this fix. I'm sorry too late. https://github.com/Code-Hex/graphql-codegen-typescript-validation-schema/releases/tag/v0.7.1 |
Now that Code-Hex/graphql-codegen-typescript-validation-schema#252 is fixed. Co-authored-by: Tobias Diez <code@tobiasdiez.de>
I can confirm that it is working now. Thanks for the fix! |
If you have a schema
then (with the default
withObjectType = false
) the generated code containsbut the referenced type schemas
CircleSchema
andSquareSchema
don't exist. Thus, the union schema should also not be generated ifwithObjectType
is false.The text was updated successfully, but these errors were encountered: