public class ResourceValidator extends Object
Constructor and Description |
---|
ResourceValidator(File inputFile) |
ResourceValidator(File inputFile,
ResourceClassifier target,
io.fabric8.maven.docker.util.Logger log) |
Modifier and Type | Method and Description |
---|---|
int |
validate()
Validates the resource descriptors as per JSON schema.
|
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
Copyright © 2018. All rights reserved.