Class ValidationConfiguration
java.lang.Object
com.atlassian.oai.validator.schema.ValidationConfiguration
Validation configuration for Open API validation.
This allows you to configure the following aspects of validation:
- The cache size of
JsonSchema
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSpecifies the maximum number of JsonSchema entries the cache inSchemaValidatormay contain.booleanIf the maxCacheSize is less than or equal to 0, then disable jsonSchemaCache inSchemaValidator.setMaxCacheSize(int maxCacheSize)
-
Constructor Details
-
ValidationConfiguration
public ValidationConfiguration()
-
-
Method Details
-
getMaxCacheSize
public int getMaxCacheSize()Specifies the maximum number of JsonSchema entries the cache inSchemaValidatormay contain.- Returns:
- the maximum number of the cache.
-
setMaxCacheSize
-
isCacheEnabled
public boolean isCacheEnabled()If the maxCacheSize is less than or equal to 0, then disable jsonSchemaCache inSchemaValidator.- Returns:
- boolean
-