Skip to content
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

Fixed a problem where during the scanning of InputTypes it included synthetic methods, added a filter + test #1966

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

mskacelik
Copy link
Contributor

@mskacelik mskacelik commented Nov 14, 2023

//cc @jmartisk
fixes: #1963

The problem was caused by not filtering bridge (synthetic) methods in InputTypeCreator (INPUT). The previous issue only handled the TypeCreator (OUTPUT). That is why if the mutation method is not present in the issue's reproducer, it does not throw the Error. Since the given query has only Output type Greet.(it is not a MUTATION/QUERY problem but an Input/Output problem).

I am not sure why the reproducer with Type Variable String worked and wrapper classes (Long, Integer, etc.) did not—probably some Jandex magic.

@jmartisk jmartisk added this to the 2.6.1 milestone Nov 14, 2023
@jmartisk jmartisk merged commit a696c14 into smallrye:main Nov 22, 2023
5 checks passed
@mskacelik mskacelik deleted the issue-1963 branch November 22, 2023 20:49
@jmartisk
Copy link
Member

@alaa-az hmmm, could you please file a new issue for it (it can be in this repo if you really believe that the problem is in this codebase), preferably with an executable reproducer to demonstrate the issue?

@alaa-az
Copy link

alaa-az commented Feb 28, 2024

@alaa-az hmmm, could you please file a new issue for it (it can be in this repo if you really believe that the problem is in this codebase), preferably with an executable reproducer to demonstrate the issue?

Sorry for disturbing you. It turned out I am using the wrong annotation

@jmartisk
Copy link
Member

No problem @alaa-az, glad it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GraphQL schema is not generated when mutation input has Long generic type
3 participants