-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add CloudFormation Resource Schema generation #622
Conversation
There was a problem hiding this 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.
...src/test/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConfigTest.java
Outdated
Show resolved
Hide resolved
...ion/src/main/java/software/amazon/smithy/aws/cloudformation/schema/model/ResourceSchema.java
Show resolved
Hide resolved
...ion/src/main/java/software/amazon/smithy/aws/cloudformation/schema/model/ResourceSchema.java
Outdated
Show resolved
Hide resolved
.../src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
Outdated
Show resolved
Hide resolved
.../src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
Outdated
Show resolved
Hide resolved
.../src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
Outdated
Show resolved
Hide resolved
.../src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
Outdated
Show resolved
Hide resolved
.../src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
Outdated
Show resolved
Hide resolved
dd75157
to
7941baa
Compare
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. |
7941baa
to
c78cdba
Compare
ff3402b
to
5bd9e9b
Compare
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.
c78cdba
to
f42c516
Compare
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.