public class Validator extends Object
DEFINITION_SCHEMA_PATH| Constructor and Description |
|---|
Validator() |
Validator(org.everit.json.schema.loader.SchemaClient downloader) |
| Modifier and Type | Method and Description |
|---|---|
org.everit.json.schema.Schema |
loadResourceDefinitionSchema(org.json.JSONObject resourceDefinition)
create a Schema instance that can be used to validate CloudFormation resources.
|
void |
validateObject(org.json.JSONObject modelObject,
org.json.JSONObject definitionSchemaObject)
Perform JSON Schema validation for the input model against the specified
schema
|
public Validator(org.everit.json.schema.loader.SchemaClient downloader)
public Validator()
public org.everit.json.schema.Schema loadResourceDefinitionSchema(org.json.JSONObject resourceDefinition)
resourceDefinition - - CloudFormation Resource Provider Schema (Resource Definition)ValidationException - if supplied resourceDefinition is invalid.public void validateObject(org.json.JSONObject modelObject,
org.json.JSONObject definitionSchemaObject)
throws ValidationException
SchemaValidatorvalidateObject in interface SchemaValidatormodelObject - JSON-encoded resource modeldefinitionSchemaObject - The JSON schema object to validate the model againstValidationException - Thrown for any schema validation errorsCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.