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

Fix bug with cloudformation unions #794

Merged
merged 1 commit into from
May 11, 2021

Conversation

JordonPhillips
Copy link
Contributor

This fixes a bug where having unions in your model would cause the
cloudformation schema generation to fail.

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

This fixes a bug where having unions in your model would cause the
cloudformation schema generation to fail.
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.

LGTM, but we could also look into a future change that fixes this as the shapes are converted to JSON Schema rather than mapping over the already created JSON Schema. Maybe using this: https://github.com/awslabs/smithy/blob/main/smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/JsonSchemaMapper.java

Copy link
Contributor

@kstich kstich left a comment

Choose a reason for hiding this comment

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

Agreed with @mtdowling on the update for later. I think we'll need to update Schema to be able to use a boolean for additionalProperties in addition to a nested Schema.

@JordonPhillips JordonPhillips merged commit d19b8e0 into smithy-lang:main May 11, 2021
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.

3 participants