claude-code - 💡(How to fix) Fix [BUG] The JSON schema for .claude/settings.json is outdated

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Code Example

String does not match the pattern of "^((Agent|Bash|Edit|ExitPlanMode|Glob|Grep|KillShell|LSP|NotebookEdit|Read|Skill|TaskCreate|TaskGet|TaskList|TaskOutput|TaskStop|TaskUpdate|TodoWrite|ToolSearch|WebFetch|WebSearch|Write)(\((?=.*[^)*?])[^)]+\))?|mcp__.*)$".

---

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "permissions": {
    "allow": [ "CronCreate"  ]
  }
}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The JSON schema https://json.schemastore.org/claude-code-settings.json is outdated compared to current settings documentation.

In particular it does not list the Cron family of tools.

What Should Happen?

The JSON schema shouldn't flag CronCreate as an invalid tool.

https://code.claude.com/docs/en/scheduled-tasks

Error Messages/Logs

String does not match the pattern of "^((Agent|Bash|Edit|ExitPlanMode|Glob|Grep|KillShell|LSP|NotebookEdit|Read|Skill|TaskCreate|TaskGet|TaskList|TaskOutput|TaskStop|TaskUpdate|TodoWrite|ToolSearch|WebFetch|WebSearch|Write)(\((?=.*[^)*?])[^)]+\))?|mcp__.*)$".

Steps to Reproduce

Minimal example:

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "permissions": {
    "allow": [ "CronCreate"  ]
  }
}

Open in VSCode or a similar text editor with built-in JSON schema validation

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.25

Platform

Other

Operating System

Other Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

extent analysis

TL;DR

Update the JSON schema to include the Cron family of tools to resolve the validation error.

Guidance

  • Verify that the JSON schema is indeed outdated by comparing it with the current settings documentation.
  • Check the official Claude Code documentation for any updates or patches related to JSON schema validation.
  • Consider manually updating the local copy of the JSON schema to include the missing Cron tools, but be aware that this might not be a permanent solution.
  • If possible, try to reproduce the issue with a minimal example, as provided in the issue description, to isolate the problem.

Example

No code snippet is provided as it's not necessary for this specific issue, but the minimal example in the issue description can be used for testing:

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "permissions": {
    "allow": [ "CronCreate"  ]
  }
}

Notes

The issue seems to be related to an outdated JSON schema, but without more information about the version history or update process, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by manually updating the local JSON schema to include the missing Cron tools, as this seems to be the most straightforward way to resolve the validation error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING