Package com.microsoft.azure.maven.prompt
Class SchemaValidator
- java.lang.Object
-
- com.microsoft.azure.maven.prompt.SchemaValidator
-
public class SchemaValidator extends Object
-
-
Constructor Summary
Constructors Constructor Description SchemaValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckExistSchema(String resource, String property)voidcollectSingleProperty(String resource, String property, com.fasterxml.jackson.databind.JsonNode schema)private static StringcombineToKey(String resource, String property)private StringformatValidationResults(com.github.fge.jsonschema.core.report.ProcessingReport reports)Map<String,Object>getSchemaMap(String resource, String property)private static com.fasterxml.jackson.databind.JsonNodestringToJsonObject(String type, String value)StringvalidateSingleProperty(String resource, String property, String value)
-
-
-
Method Detail
-
collectSingleProperty
public void collectSingleProperty(String resource, String property, com.fasterxml.jackson.databind.JsonNode schema) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
validateSingleProperty
public String validateSingleProperty(String resource, String property, String value)
-
stringToJsonObject
private static com.fasterxml.jackson.databind.JsonNode stringToJsonObject(String type, String value)
-
formatValidationResults
private String formatValidationResults(com.github.fge.jsonschema.core.report.ProcessingReport reports)
-
-