The CloudFormation Resource Schema defines the shape and semantic for resources provisioned by CloudFormation. It is used by provider developers using the CloudFormation RPDK.
Apache License 2.0
93
stars
38
forks
source link
scrub error messages of any values in schema validation #37
Description of changes:
Ensure that during schema validation, no messages contain values.
The strategy is to use keywords and change the error message for the ones that emit values.
Certain keywords were whitelisted as safe, in case we start using a new keyword. All other keywords fail with message:
<SchemaPointer>: failed validation constraint for keyword [<keyword>]
Issue #, if available:
Description of changes: Ensure that during schema validation, no messages contain values.
The strategy is to use keywords and change the error message for the ones that emit values.
Certain keywords were whitelisted as safe, in case we start using a new keyword. All other keywords fail with message:
<SchemaPointer>: failed validation constraint for keyword [<keyword>]
The following emit values:
multipleOf
,minimum
,maximum
,exclusiveMaximum
,exclusiveMinimum
pattern
enum
const
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.