Repository navigation
Fix context7.json schema error, validate it in CI - #105
Merged
Merged
Conversation
The description added in mage-os#104 was 361 characters. Context7's schema (https://context7.com/schema/context7.json) caps it at 200, and the file failed validation. Context7 has since re-parsed the repo (2026-10-05) but its stored settings for /mage-os/devdocs are still the defaults: the generated description, default excludeFiles, and no rules. So none of the config from mage-os#104 took effect, and the 13 unlinked duplicate pages are still indexed in place of the published *_xml pages. This is the only schema error in the file; it now validates cleanly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Context7 gives no error when context7.json is invalid. The description added in mage-os#104 exceeded the schema's 200-character limit and the library kept its default settings. This workflow runs check-jsonschema against https://context7.com/schema/context7.json whenever the file changes, so a schema error fails the PR instead of going unnoticed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rhoerr
approved these changes
Oct 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #104. The
context7.jsonmerged there doesn't pass Context7's schema, so none of its settings took effect. My mistake: I checked it was valid JSON, but never validated it against the schema.What went wrong
The
descriptionI wrote was 361 characters. Context7's schema allows at most 200. That is the only validation error in the file.Context7 re-parsed the repo on 2026-10-05, 12 minutes after #104 merged, so the refresh workflow works. But the settings shown on the library page for
/mage-os/devdocsare still all defaults:excludeFileslist, without our 13 unlinked pagesrulesat allSo the unlinked duplicate pages are still indexed in place of the published
*_xmlpages. For example,cron_groups.mdsupplies 9 snippets andcron_groups_xml.mdsupplies none. The code-block language tags from #104 did land, because they live in the markdown, not in the config.Changes
context7.json: description shortened to 181 characters. No other change. The file now validates..github/workflows/context7-validate.yml: a CI check that validatescontext7.jsonagainst the Context7 schema withcheck-jsonschema. Context7 gives no error when the file is invalid, so this makes a schema error fail the PR instead of going unnoticed. It runs only whencontext7.jsonor the workflow itself changes.Tested:
$.description: ... is too long.After merge
The refresh workflow will trigger a re-parse. I'll re-check the index afterwards, to confirm the unlinked pages drop out and the
rulesare served.🤖 Generated with Claude Code