Class SchemaManager
java.lang.Object
io.github.jspinak.brobot.json.parsing.SchemaManager
Manages JSON schemas for the Brobot Runner configuration system.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
com.networknt.schema.JsonSchema
com.networknt.schema.JsonSchema
com.networknt.schema.JsonSchema
boolean
Set
<com.networknt.schema.ValidationMessage> void
validateWithErrors
(com.fasterxml.jackson.databind.JsonNode json, String schemaPath, String configName)
-
Field Details
-
PROJECT_SCHEMA_PATH
- See Also:
-
AUTOMATION_DSL_SCHEMA_PATH
- See Also:
-
-
Constructor Details
-
SchemaManager
-
-
Method Details
-
getSchema
- Throws:
ConfigurationException
-
validate
public Set<com.networknt.schema.ValidationMessage> validate(com.fasterxml.jackson.databind.JsonNode json, String schemaPath) throws ConfigurationException - Throws:
ConfigurationException
-
isValid
public boolean isValid(com.fasterxml.jackson.databind.JsonNode json, String schemaPath) throws ConfigurationException - Throws:
ConfigurationException
-
validateWithErrors
public void validateWithErrors(com.fasterxml.jackson.databind.JsonNode json, String schemaPath, String configName) throws ConfigurationException - Throws:
ConfigurationException
-
clearCache
public void clearCache() -
getProjectSchema
- Throws:
ConfigurationException
-
getAutomationDslSchema
- Throws:
ConfigurationException
-