aws-cloudformation / aws-cloudformation-resource-providers-stepfunctions

The CloudFormation Resource Provider Package For AWS Step Functions
https://aws.amazon.com/step-functions/
Apache License 2.0
6 stars 4 forks source link

Update DefinitionSubstitutions schema to use anyOf #42

Closed hongkuntian closed 1 year ago

hongkuntian commented 1 year ago

Issue # (related to an undesired behavior raised in issue): #14 - here

Description of changes: Replace DefinitionSubstitutions' use of oneOf to anyOf in the schema. This fix removes the false-positive validation error messages that appears for DefinitionSubstitutions.

This was tested and validated through the integration tests, which had this validation error (but did not prevent the stacks from being created). After this change, the validation error no longer appears.

The change will not break or affect existing templates since anyOf is more permissive than oneOf

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.