Class ValidationConfiguration

java.lang.Object
com.atlassian.oai.validator.schema.ValidationConfiguration

public class ValidationConfiguration extends Object
Validation configuration for Open API validation.

This allows you to configure the following aspects of validation:

  • The cache size of JsonSchema
  • Constructor Details

    • ValidationConfiguration

      public ValidationConfiguration()
  • Method Details

    • getMaxCacheSize

      public int getMaxCacheSize()
      Specifies the maximum number of JsonSchema entries the cache in SchemaValidator may contain.
      Returns:
      the maximum number of the cache.
    • setMaxCacheSize

      public ValidationConfiguration setMaxCacheSize(int maxCacheSize)
    • isCacheEnabled

      public boolean isCacheEnabled()
      If the maxCacheSize is less than or equal to 0, then disable jsonSchemaCache in SchemaValidator.
      Returns:
      boolean