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(sam-spec): replace AlexaSkillEvent.Variables with AlexaSkillEvent.SkillId #459

Merged
merged 5 commits into from
Aug 15, 2023

Conversation

comcalvi
Copy link
Contributor

@comcalvi comcalvi commented Aug 10, 2023

The spec we use claims that AlexaSkillEvent has a Variables property, but it does not: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-alexaskill.html

This change: https://github.com/awslabs/goformation/pull/613/files made the spec match the SAM docs. The property is marked as optional, but it is the only possible property; make it required. Our codegen will now only match the strongest possible type in type unions (which the inputs to function events are) and AlexaSkillEvent will never be chosen, because it currently has no required properties. This results in the AlexaSkillEvent being ignored during synthesis, which creates templates with missing properties.

Making SkillId required makes the AlexaSkillEvent usable in CDK apps.

@comcalvi comcalvi marked this pull request as draft August 10, 2023 21:11
auto-merge was automatically disabled August 10, 2023 21:11

Pull request was converted to draft

@comcalvi comcalvi marked this pull request as ready for review August 11, 2023 15:43
@rix0rrr
Copy link
Contributor

rix0rrr commented Aug 14, 2023

You need to edit

awscdk-service-spec/packages/@aws-cdk/aws-service-spec/.jsiidiffignore

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Aug 14, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 14, 2023
@comcalvi comcalvi added this pull request to the merge queue Aug 15, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 15, 2023
@rix0rrr rix0rrr added this pull request to the merge queue Aug 15, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 15, 2023
@rix0rrr rix0rrr added this pull request to the merge queue Aug 15, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Aug 15, 2023
@rix0rrr rix0rrr enabled auto-merge August 15, 2023 09:06
@rix0rrr rix0rrr added this pull request to the merge queue Aug 15, 2023
Merged via the queue into main with commit 60959c0 Aug 15, 2023
5 checks passed
@rix0rrr rix0rrr deleted the sampatch branch August 15, 2023 18:49
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