Skip to content

fix(stateMachine): guard pseudo-parameter validation + fix apiKeys docs#725

Open
VirtueMe wants to merge 1 commit intomasterfrom
fix-291-pseudo-params
Open

fix(stateMachine): guard pseudo-parameter validation + fix apiKeys docs#725
VirtueMe wants to merge 1 commit intomasterfrom
fix-291-pseudo-params

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

What

Two unrelated quick fixes bundled into one PR:

  1. Regression test for pseudo-parameter validation (Validate fails when state resource uses pseudo parameters from the serverless-pseudo-parameters plugin #291) — adds a test confirming that #{AWS::Region} style pseudo-parameters in state machine resource ARNs do not fail ASL validation when validate: true is set. The underlying issue was fixed by asl-validator v3.11.0 relaxing its ARN regex, but no test existed to guard against a future regression.

  2. README apiKeys example fix (apiKeys property is not nested under apiGateway property in API Gateway documentation section #566) — the usagePlan block was incorrectly placed at the provider level instead of nested under apiGateway, and stepFunctions was incorrectly nested under functions.hello instead of being a top-level key.

Why

Closes #291
Closes #566

Test plan

  • New test: should not fail validation when definition contains pseudo-parameters — passes with current asl-validator v3.11.0
  • npm test — 498 passing

🤖 Generated with Claude Code

- Add regression test confirming #{AWS::Region} style pseudo-parameters
  do not fail ASL validation (fixed in asl-validator v3.11.0, no test
  existed to guard against a future regression) — closes #291
- Fix README apiKeys example: nest usagePlan under apiGateway and move
  stepFunctions to top-level (was incorrectly nested under functions) — closes #566

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@725

commit: 14fb4cd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant