aws-cloudformation / cloudformation-resource-schema

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
90 stars 38 forks source link

Improve error message for pattern mismatch #85

Closed rajashekargoudk closed 3 years ago

rajashekargoudk commented 4 years ago

Currently, schema validation error for pattern mismatch returns error in the form "#/StringProperty: failed validation constraint for keyword [pattern]". It would be good to include pattern value in the error message.

PatMyron commented 3 years ago

Agreed, adding this to https://github.com/aws-cloudformation/aws-cloudformation-resource-schema/issues/38