Skip to content

Add Jakarta Validation's Valid and constraints annotations#2335

Merged
nedtwigg merged 4 commits intodiffplug:mainfrom
jskov:validation_valid
Nov 14, 2024
Merged

Add Jakarta Validation's Valid and constraints annotations#2335
nedtwigg merged 4 commits intodiffplug:mainfrom
jskov:validation_valid

Conversation

@jskov
Copy link
Copy Markdown
Contributor

@jskov jskov commented Nov 10, 2024

This causes formatAnnotations to place the annotation on the same line as the type.
This fixes #2334

@jskov jskov marked this pull request as draft November 10, 2024 12:58
@jskov
Copy link
Copy Markdown
Contributor Author

jskov commented Nov 10, 2024

This should probably include all the (relevant) Validation annotation types.
Will add if it makes sense, see #2334

@nedtwigg nedtwigg marked this pull request as ready for review November 13, 2024 17:03
@nedtwigg nedtwigg marked this pull request as draft November 13, 2024 17:03
@jskov jskov changed the title Add (jakarta validation) Valid as a type annotation Add Jakarta Validation's Valid and constraint annotations Nov 14, 2024
@jskov jskov changed the title Add Jakarta Validation's Valid and constraint annotations Add Jakarta Validation's Valid and constraints annotations Nov 14, 2024
@jskov jskov marked this pull request as ready for review November 14, 2024 17:56
@nedtwigg
Copy link
Copy Markdown
Member

Thanks!

@nedtwigg nedtwigg merged commit 575d683 into diffplug:main Nov 14, 2024
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.

Jakarta Validation @Valid annotation is not treated as a type-annotation

2 participants