You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each section is relatively complete, I have read #90#172 that It doesn't seem to help me much. I'm not sure if I'm missing something, or doing something stupid
:)
The text was updated successfully, but these errors were encountered:
I read the relevant source code carefully and found that the required properties is not filled with optional(), on the contrary, this should be a very complicated process. My unit test uses Map.class to pass and receive json parameters, it cannot be constructed using ConstrainedFields relevant constraints, maybe I missed something... tell me if you know please.
For this problem, I found a compromise solution after reading the source code
...
// define a functionprotectedAttributes.Attributerequired() {
List<Constraint> constraints = Lists.newArrayList(newConstraint("javax.validation.constraints.NotNull", Collections.emptyMap()));
returnAttributes.key("validationConstraints").value(constraints);
}
...
// and use it.fieldWithPath("field").attributes(required()).description("description")
...
Maybe there is a better solution...
My English is not as fluent as Chinese, I'm sorry for that.
First of all thank you very much for your contribution on rest docs.
Here is my debug screenshot
and section of
resource.json
and section of
openapi3.yaml
Each section is relatively complete, I have read #90 #172 that It doesn't seem to help me much. I'm not sure if I'm missing something, or doing something stupid
:)
The text was updated successfully, but these errors were encountered: