Skip to content

ci: regenerate JSON schema during release#710

Merged
aidandaly24 merged 1 commit intoaws:mainfrom
Hweinstock:ci/release-schema-regen
Mar 27, 2026
Merged

ci: regenerate JSON schema during release#710
aidandaly24 merged 1 commit intoaws:mainfrom
Hweinstock:ci/release-schema-regen

Conversation

@Hweinstock
Copy link
Copy Markdown
Contributor

@Hweinstock Hweinstock commented Mar 27, 2026

Description

The release workflow does not regenerate schemas/agentcore.schema.v1.json from the Zod source schemas. If schema changes are merged between releases, the published JSON schema file can drift from the actual validation logic.

This adds a schema regeneration step to the prepare-release job, after the version bump and before the release branch commit. The existing git add -A picks up the regenerated file automatically.

Related Issue

Closes #

Documentation PR

N/A

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe): CI workflow improvement

Testing

  • I ran npm run test:unit and npm run test:integ
  • I ran npm run typecheck
  • I ran npm run lint
  • If I modified src/assets/, I ran npm run test:update-snapshots and committed the updated snapshots

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

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

@github-actions github-actions Bot added the size/xs PR size: XS label Mar 27, 2026
@Hweinstock Hweinstock mentioned this pull request Mar 27, 2026
15 tasks
@Hweinstock Hweinstock marked this pull request as ready for review March 27, 2026 21:27
@Hweinstock Hweinstock requested a review from a team March 27, 2026 21:27
@aidandaly24 aidandaly24 merged commit e75e8a0 into aws:main Mar 27, 2026
18 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants