-
-
Notifications
You must be signed in to change notification settings - Fork 51
Union type is always generated, even if withObjectType is false #252
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
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. |
Now that Code-Hex/graphql-codegen-typescript-validation-schema#252 is fixed. Co-authored-by: Tobias Diez <[email protected]>
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: