@FunctionalInterface
public interface PropertyValidator<T extends io.swagger.models.properties.Property>
Modifier and Type | Method and Description |
---|---|
default Result |
doValidate(JSONObject json,
io.swagger.models.properties.Property property,
java.lang.String path,
boolean strict) |
Result |
validate(JSONObject json,
T property,
java.lang.String path,
boolean strict) |
Result validate(JSONObject json, T property, java.lang.String path, boolean strict) throws ValidationException
json
- JSON object containing the propertyproperty
- Property to be validatedpath
- for error messagesstrict
- ValidationException
default Result doValidate(JSONObject json, io.swagger.models.properties.Property property, java.lang.String path, boolean strict) throws ValidationException
ValidationException
Copyright © 2018