Package io.wcm.siteapi.openapi.validator
Class OpenApiSchemaValidator
java.lang.Object
io.wcm.siteapi.openapi.validator.OpenApiSchemaValidator
Validates JSON response for a given path definition and suffix against the JSON.
Create instance via
OpenApiSpec
class.-
Method Summary
-
Method Details
-
getSuffix
- Returns:
- Suffix
-
validate
Validate the given JSON response against the operation's JSON schema.- Parameters:
jsonValue
- JSON response- Throws:
ContentValidationException
- Validation failed
-