Package org.mockserver.matchers
Class JsonSchemaMatcher
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.matchers.NotMatcher<MatchedType>
-
- org.mockserver.matchers.BodyMatcher<String>
-
- org.mockserver.matchers.JsonSchemaMatcher
-
public class JsonSchemaMatcher extends BodyMatcher<String>
See http://json-schema.org/- Author:
- jamesdbloom
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]fieldsExcludedFromEqualsAndHashCode()Map<String,ParameterStyle>getParameterStyle()booleanisBlank()booleanmatches(MatchDifference context, String matched)JsonSchemaMatcherwithParameterStyle(Map<String,ParameterStyle> parameterStyle)-
Methods inherited from class org.mockserver.matchers.NotMatcher
notMatcher
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, toString
-
-
-
-
Method Detail
-
getParameterStyle
public Map<String,ParameterStyle> getParameterStyle()
-
withParameterStyle
public JsonSchemaMatcher withParameterStyle(Map<String,ParameterStyle> parameterStyle)
-
matches
public boolean matches(MatchDifference context, String matched)
-
isBlank
public boolean isBlank()
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCodein classObjectWithReflectiveEqualsHashCodeToString
-
-