Skip to content

fix: Base CMS schema - #3290

Merged
eduardoformiga merged 1 commit into
devfrom
fix/base-schema
May 4, 2026
Merged

eduardoformiga merged 1 commit into
devfrom
fix/base-schema

Conversation

@lucasfp13

@lucasfp13 lucasfp13 commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

What's the purpose of this pull request?

Fix the base CMS schema to ensure that components will be created without the $componentKey and $componentTitle keys as properties.

How to test it?

The latest FS schema on Schema Registry ([email protected]) should not have $componentKey and $componentTitle keys as components' properties.

Summary by CodeRabbit

  • Changes
    • Component configurations are now more flexible with relaxed validation requirements. Components no longer require specific identifiers to be defined, allowing for greater customization and optional field specifications.

@lucasfp13 lucasfp13 self-assigned this May 4, 2026
@lucasfp13
lucasfp13 requested a review from a team as a code owner May 4, 2026 13:38
@lucasfp13 lucasfp13 added the bug Something isn't working label May 4, 2026
@lucasfp13
lucasfp13 requested review from emersonlaurentino and gabpaladino and removed request for a team May 4, 2026 13:38
@coderabbitai

coderabbitai Bot commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9c34bb1c-6f1e-4b98-9ebd-9f9f3deceadc

📥 Commits

Reviewing files that changed from the base of the PR and between 3069a16 and ada176d.

📒 Files selected for processing (2)
  • packages/core/cms/faststore/base.jsonc
  • packages/core/cms/faststore/schema.json

Walkthrough

The base-component schema definition is loosened across both the JSONC source and compiled JSON schema files by removing required constraints on $componentKey and $componentTitle properties. The base definition now accepts any structure without enforcing those specific metadata fields.

Changes

Schema Base Definition Loosening

Layer / File(s) Summary
Schema Source
packages/core/cms/faststore/base.jsonc
$defs.base-component required array and properties object are emptied, removing mandatory $componentKey/$componentTitle constraints.
Compiled Schema
packages/core/cms/faststore/schema.json
Same base-component definition update applied to the generated JSON schema for consistency.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

Suggested reviewers

  • ommeirelles
  • lemagnetic
  • lariciamota

Poem

Base components now breathe free,
No fields required to be.
Constraints fade away,
More flexible today,
Schema dances with liberty. 🎭

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing required component properties from the base CMS schema to fix schema definition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/base-schema

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@codesandbox-ci

codesandbox-ci Bot commented May 4, 2026

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@eduardoformiga
eduardoformiga merged commit 3455e89 into dev May 4, 2026
5 checks passed
@eduardoformiga
eduardoformiga deleted the fix/base-schema branch May 4, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants