Skip to content

Added support to sync Labels with content models.#28

Closed
ArkeBcacy wants to merge 3 commits intomainfrom
feature/sync-labels
Closed

Added support to sync Labels with content models.#28
ArkeBcacy wants to merge 3 commits intomainfrom
feature/sync-labels

Conversation

@ArkeBcacy
Copy link
Copy Markdown

Added support to sync Labels with content models.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for syncing labels with content models by updating the schema normalization function to preserve label information during serialization and deserialization cycles.

Changes:

  • Updated the normalize function to extract and conditionally include the labels field from schemas
  • Added comprehensive test coverage for label preservation in normalized schemas
  • Added test coverage for schema equivalence comparisons with labels

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
cli/src/schema/normalize.ts Added labels parameter extraction and conditional inclusion in normalized schema output, with updated documentation
cli/src/schema/normalize.test.ts Added two new tests to verify labels are preserved when present and not added when absent
cli/src/schema/isEquivalentSchema.test.ts Added two new tests to verify schema equivalence behavior with different and same labels

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Bill Cacy <98779849+ArkeBcacy@users.noreply.github.com>
@ArkeBcacy ArkeBcacy requested a review from altearius January 13, 2026 17:39
@ArkeBcacy ArkeBcacy closed this Feb 10, 2026
@ArkeBcacy ArkeBcacy deleted the feature/sync-labels branch February 10, 2026 20:46
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.

2 participants