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

Unwrap warning on size constraint annotation #40

Open
Sholto opened this issue Sep 15, 2022 · 0 comments
Open

Unwrap warning on size constraint annotation #40

Sholto opened this issue Sep 15, 2022 · 0 comments

Comments

@Sholto
Copy link

Sholto commented Sep 15, 2022

The @javax.validation.constraints.Size annotation on the following code:

@io.swagger.v3.oas.annotations.media.Schema(name = "band1Email")
@com.fasterxml.jackson.annotation.JsonProperty(value = "band1Email")
@javax.validation.constraints.Size(min = 1, max = 16777215, payload = javax.validation.valueextraction.Unwrapping.Unwrap.class, groups = { web.api.validation.Request.class, web.api.validation.Response.class })
public java.util.Optional<java.lang.String> getBand1Email() {
	return this.band1Email;
}

causes the following warning:

The constraint is marked for unwrapping but the annotation processor was not able to determine the unwrapped type. No further checks are performed.

@Sholto Sholto closed this as completed Sep 20, 2022
@Sholto Sholto reopened this Sep 20, 2022
@karlvr karlvr transferred this issue from karlvr/openapi-generator-plus Apr 12, 2023
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

No branches or pull requests

1 participant