anthropics / anthropics/claude-code

[Bug] LSP validation ignores valid $schema key in hooks.json

Open
#94,402 0 comments 0 reactions 0 assignees View on GitHub
area:hooks area:lsp bug platform:macos
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
Claude Code errors on the "$schema" key in hooks.json, which is valid:
⏺ yaml-lsp: hooks.json: unknown key "$schema" ignored

⏺ bash-lsp: hooks.json: unknown key "$schema" ignored

**Environment Info**
- Platform: darwin
- Terminal: ghostty
- Version: 2.1.271
- Feedback ID: e165041b-f61b-4855-a56c-3b2bafdcffc4

**Errors**
```json
[]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the validation messages for the "$schema" key in hooks.json on the reported environment, then trace the LSP validation entry point that handles this file. Done means a valid "$schema" key no longer produces the reported unknown-key errors in either yaml-lsp or bash-lsp.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.