public class ResourceValidator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SCHEMA_JSON |
Constructor and Description |
---|
ResourceValidator(File inputFile) |
ResourceValidator(File inputFile,
ResourceClassifier target,
io.fabric8.maven.docker.util.Logger log) |
Modifier and Type | Method and Description |
---|---|
com.google.gson.JsonObject |
getSchemaJson(URI schemaUrl) |
int |
validate()
Validates the resource descriptors as per JSON schema.
|
public static final String SCHEMA_JSON
public ResourceValidator(File inputFile)
inputFile
- File/Directory path of resource descriptorspublic ResourceValidator(File inputFile, ResourceClassifier target, io.fabric8.maven.docker.util.Logger log)
inputFile
- File/Directory path of resource descriptorstarget
- Target platform e.g OpenShift, Kuberneteslog
- Logger for logging messages on standard output devicespublic int validate() throws javax.validation.ConstraintViolationException, IOException
ConstraintViolationException
with
all violated constraintsjavax.validation.ConstraintViolationException
IOException
public com.google.gson.JsonObject getSchemaJson(URI schemaUrl) throws IOException
IOException
Copyright © 2020. All rights reserved.