Class JsonSchemaValidator
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.validator.jsonschema.JsonSchemaValidator
-
- Direct Known Subclasses:
JsonSchemaExpectationValidator
,JsonSchemaHttpRequestValidator
,JsonSchemaHttpResponseValidator
,JsonSchemaVerificationSequenceValidator
,JsonSchemaVerificationValidator
public class JsonSchemaValidator extends ObjectWithReflectiveEqualsHashCodeToString implements Validator<String>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description JsonSchemaValidator(MockServerLogger mockServerLogger, String schema)
JsonSchemaValidator(MockServerLogger mockServerLogger, String routePath, String mainSchemeFile, String... referenceFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSchema()
String
isValid(String json)
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key, toString
-
-
-
-
Constructor Detail
-
JsonSchemaValidator
public JsonSchemaValidator(MockServerLogger mockServerLogger, String schema)
-
JsonSchemaValidator
public JsonSchemaValidator(MockServerLogger mockServerLogger, String routePath, String mainSchemeFile, String... referenceFiles)
-
-