OpenAPITools / OpenAPITools/jackson-databind-nullable
[Req] add javax/jakarta validator for Present
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 153
- Forks
- 47
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 6
Description
Add the @Present annotation mentioned in handling of openapiNullable+required
Sample code:
public class PresentValidator implements ConstraintValidator<Present, JsonNullable<?>> {
@Override
public boolean isValid(JsonNullable<?> value, ConstraintValidatorContext context) {
return value != null && value.isPresent();
}
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the requested @Present annotation and the provided PresentValidator example, then inspect the repository for existing validation-related classes and tests. Done means the annotation and javax/jakarta validator support the JsonNullable presence check and are covered by the project's relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100