Skip to content

Fix E3009 false positive for Fn::Transform in additional properties#4368

Open
kddejong wants to merge 1 commit intoaws-cloudformation:mainfrom
kddejong:fix/issue/4363
Open

Fix E3009 false positive for Fn::Transform in additional properties#4368
kddejong wants to merge 1 commit intoaws-cloudformation:mainfrom
kddejong:fix/issue/4363

Conversation

@kddejong
Copy link
Contributor

Exclude Fn::Transform from additional properties validation when it's in the validator's context functions list. This allows Fn::Transform to be used in CloudFormation Init metadata and other contexts where CloudFormation supports it.

Fixes #4363

Issue #, if available:

Description of changes:

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

Exclude Fn::Transform from additional properties validation when it's
in the validator's context functions list. This allows Fn::Transform
to be used in CloudFormation Init metadata and other contexts where
CloudFormation supports it.

Fixes aws-cloudformation#4363
@codecov
Copy link

codecov bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.52%. Comparing base (0bbabc9) to head (f45279b).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4368      +/-   ##
==========================================
- Coverage   93.54%   93.52%   -0.02%     
==========================================
  Files         418      418              
  Lines       14145    14148       +3     
  Branches     2817     2818       +1     
==========================================
  Hits        13232    13232              
- Misses        567      568       +1     
- Partials      346      348       +2     
Flag Coverage Δ
unittests 93.51% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

E3009 Additional properties are not allowed ('Fn::Transform' was unexpected)

1 participant