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

Set correct api group description #2168

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

RoMiRoSSaN
Copy link
Contributor

@RoMiRoSSaN RoMiRoSSaN commented Aug 27, 2024

See #2173

Hi. Schema build generate not correct description on api group. For example if use this code

@Description("Group description")
@Name("Group")
@GraphQLApi
public class Api {
    @Query
    @Description("Method description")
    public String method() {
        return "method";
    }
}

wiil be generated next part of schema, which contains first available description (it takes description from method, becouse in annotation instances it is first element)

"Method description"
type GroupQuery {
  "Method description"
  method: String
}
///

Need check that annotation instance target equals api class

@jmartisk jmartisk merged commit 0e4f4fc into smallrye:main Sep 2, 2024
5 checks passed
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.

2 participants