Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CloudFormation Resource Schema generation #622

Merged
merged 1 commit into from
Nov 19, 2020

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Oct 31, 2020

This commit introduces a new "cloudformation" build plugin that, given
a model decorated with the aws.cloudformation traits, will generate
CloudFormation Resource Schemas. This includes support for specifying
the mutability of properties, their documentation, and more.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@kstich kstich requested a review from mtdowling October 31, 2020 00:20
@kstich kstich changed the title Add CloudFormation resource schema generation Add CloudFormation Resource Schema generation Oct 31, 2020
Copy link
Member

@mtdowling mtdowling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you consider adding a kind of test runner using directories that contain a smithy model and all the expected generated JSON files? I got the feeling that there wasn't a ton of test coverage, particularly integration tests to ensure we generate the right output.

@kstich kstich force-pushed the add_cloudformation_conversion branch 2 times, most recently from dd75157 to 7941baa Compare November 6, 2020 01:53
@kstich
Copy link
Contributor Author

kstich commented Nov 6, 2020

Migrated existing integ-like test cases to a test runner and added more cases from the trait documentation for mutability coverage, in addition to bolstering tests for the updates.

@kstich kstich requested a review from mtdowling November 6, 2020 16:26
@kstich kstich force-pushed the add_cloudformation_conversion branch from 7941baa to c78cdba Compare November 6, 2020 23:01
@kstich kstich requested a review from mtdowling November 7, 2020 00:16
@kstich kstich force-pushed the add_cloudformation_traits branch from ff3402b to 5bd9e9b Compare November 13, 2020 22:16
This commit introduces a new "cloudformation" build plugin that, given
a model decorated with the aws.cloudformation traits, will generate
CloudFormation Resource Schemas. This includes support for specifying
the mutability of properties, their documentation, and more.
@kstich kstich force-pushed the add_cloudformation_conversion branch from c78cdba to f42c516 Compare November 14, 2020 00:12
@kstich kstich requested a review from mtdowling November 14, 2020 00:13
@kstich kstich merged commit 4c0cfc1 into add_cloudformation_traits Nov 19, 2020
@mtdowling mtdowling deleted the add_cloudformation_conversion branch December 11, 2020 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants