Package io.wcm.siteapi.openapi.validator
Class OpenApiSchemaValidator
- java.lang.Object
-
- io.wcm.siteapi.openapi.validator.OpenApiSchemaValidator
-
public final class OpenApiSchemaValidator extends java.lang.Object
Validates JSON response for a given path definition and suffix against the JSON. Create instance viaOpenApiSpec
class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
getSuffix()
void
validate(@NotNull java.lang.String jsonValue)
Validate the given JSON response against the operation's JSON schema.
-
-
-
Method Detail
-
getSuffix
@NotNull public @NotNull java.lang.String getSuffix()
- Returns:
- Suffix
-
validate
public void validate(@NotNull @NotNull java.lang.String jsonValue) throws ContentValidationException
Validate the given JSON response against the operation's JSON schema.- Parameters:
jsonValue
- JSON response- Throws:
ContentValidationException
- Validation failed
-
-