Skip to content

RBT-928 pass through jakarta annotations #116

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

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

josie-atkins
Copy link
Contributor

@josie-atkins josie-atkins commented May 25, 2025

This PR hopes to add Jakarta validation to the graphql builder library.

  • Any Jakarta annotations in java classes should be passed through as graphql directives.
  • Any jakarta annotations should be honoured and validated against, if the .validate() flag is called on the schema builder.

This reverts commit dc120e4.
…ry-2

# Conflicts:
#	graphql-builder/src/main/java/com/phocassoftware/graphql/builder/DirectivesSchema.java
#	graphql-builder/src/main/java/com/phocassoftware/graphql/builder/MethodProcessor.java
#	graphql-builder/src/test/java/com/phocassoftware/graphql/builder/JakartaValidationDirectiveTest.java
#	graphql-builder/src/test/java/com/phocassoftware/graphql/builder/type/directive/Cat.java
#	pom.xml
@josie-atkins josie-atkins changed the title RBT-928 pass through jakarta annotations try 2 RBT-928 pass through jakarta annotations May 25, 2025
@josie-atkins josie-atkins marked this pull request as ready for review May 26, 2025 03:14
…h-jakarta-annotations-try-2

# Conflicts:
#	graphql-builder/pom.xml
Copy link
Contributor

@ashley-taylor ashley-taylor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. Just a version went backwards

<junit.jupiter.version>5.12.2</junit.jupiter.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jackson.version>2.19.0</jackson.version>
<graphql.version>22.0</graphql.version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version gone done to 22 from 24

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, unfortunately the graphql-java-extended-validation library has not released support for graphql 24 yet.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Their readme says "use 22.0 or above for graphql-java 22.x and above"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the issue I am running into: graphql-java/graphql-java-extended-validation#103

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May have to be an open source developer and submit a PR up stream to add support for graphql 24

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

3 participants