You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(project): validate runtimeVersion on CodeZip runtimes
The CDK construct library rejects a CodeZip runtime that declares no
runtimeVersion, but our own AgentEnvSpecSchema marked the field plain
`.optional()`. The CLI therefore accepted a spec that synthesis would refuse,
and the user only found out after a compile and a synth.
Mirror the library's rule so the CLI reports it against agentcore.json instead.
Container builds take their version from the image and stay exempt, matching the
adjacent container-only-fields check.
Surfacing the rule earlier is only useful if it says what to fix, and
`resolve()` was collapsing every validation failure into "invalid project
configuration at <path>" with the reasons reachable only from the debug log. It
now renders the failing paths, so the message reads:
invalid project configuration at .../agentcore/agentcore.json
- runtimes[0].runtimeVersion: runtimeVersion is required for CodeZip builds
A JSON syntax error has no zod issues to render and is unchanged.
0 commit comments