Class OpenApiSchemaValidator


  • public final class OpenApiSchemaValidator
    extends java.lang.Object
    Validates JSON response for a given path definition and suffix against the JSON. Create instance via OpenApiSpec 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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