Skip to content

feat: Add metadata field to strategyOpportunity schema#1480

Merged
jjenscodee merged 1 commit intomainfrom
feat/optional-metadata-in-oppty
Mar 30, 2026
Merged

feat: Add metadata field to strategyOpportunity schema#1480
jjenscodee merged 1 commit intomainfrom
feat/optional-metadata-in-oppty

Conversation

@jjenscodee
Copy link
Copy Markdown
Contributor

@jjenscodee jjenscodee commented Mar 30, 2026

Adds an optional metadata field (z.record(z.string(), z.any())) to the strategyOpportunity schema, consistent with the existing metadata field on the strategy schema. This allows arbitrary key-value metadata to be attached to individual opportunities within a strategy. Includes corresponding tests for the new field and backward compatibility.

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

Thanks for contributing!

@jjenscodee jjenscodee self-assigned this Mar 30, 2026
@jjenscodee jjenscodee marked this pull request as ready for review March 30, 2026 11:32
@jjenscodee jjenscodee merged commit dbe1ba6 into main Mar 30, 2026
5 checks passed
@jjenscodee jjenscodee deleted the feat/optional-metadata-in-oppty branch March 30, 2026 11:49
solaris007 pushed a commit that referenced this pull request Mar 30, 2026
## [@adobe/spacecat-shared-utils-v1.108.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.107.0...@adobe/spacecat-shared-utils-v1.108.0) (2026-03-30)

### Features

* Add metadata field to strategyOpportunity schema ([#1480](#1480)) ([dbe1ba6](dbe1ba6))
@solaris007
Copy link
Copy Markdown
Member

🎉 This PR is included in version @adobe/spacecat-shared-utils-v1.108.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants