{"uid":"cap_k_1_0MjGQKOMNwiRPcUei","slug":"validate-compile-commands-json-c73029a1","name":"Validate compile_commands.json","description":"Validate compile_commands.json: Validate a JSON document for compile_commands.json. Uses a pinned SchemaStore definition on this PC. Reports JSON pointers and rule violations. Up to 100 KB per document; no YAML/TOML parsing or deployment/security guarantee. 0.01 USDC includes one JSON document validation.","url":"https://market.datapackvibe.com/x402/assistant-schema-compile-commands-json-eaa48d00-validate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"document":{"default":{},"description":"JSON value to validate; maximum 100 KB, 32 levels."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c5w6lo1uFzk9KMLNRw2wy","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON document against a pinned SchemaStore definition for compile_commands.json, reporting JSON pointer violations and rule errors.","exampleAgentPrompt":"Can you validate this compile_commands.json document for me and report any schema violations or JSON pointer errors? Here's the content: [{\"directory\":\"/home/user/project\",\"command\":\"gcc -o main main.c\",\"file\":\"main.c\"}]","exampleUseCases":[{"title":"CI pipeline compile commands check","prompt":"Before I merge this PR, validate my compile_commands.json to make sure it conforms to the schema — here's the JSON: [{\"directory\":\"/workspace/build\",\"command\":\"clang++ -std=c++17 -o app main.cpp\",\"file\":\"main.cpp\"}]"},{"title":"Debugging clangd LSP setup","prompt":"My clangd language server isn't picking up my project — can you validate this compile_commands.json and tell me exactly which fields are wrong or missing? Here's the file content: [{\"file\":\"src/main.c\",\"arguments\":[\"cc\",\"-DDEBUG\",\"src/main.c\"]}]"},{"title":"Onboarding new C++ project","prompt":"I just generated a compile_commands.json for a new C++ project and want to make sure it's correct before sharing it with the team — please check it against the official schema and list any violations: [{\"directory\":\"/projects/myapp\",\"command\":\"g++ -std=c++20 main.cpp\",\"file\":\"main.cpp\",\"output\":\"main.o\"}]"}],"resultDescription":"A validation report indicating whether the supplied JSON document conforms to the pinned compile_commands.json SchemaStore schema, including a list of JSON pointer paths and specific rule violations found, or confirmation that the document is valid.","failureModes":["Document exceeds 100 KB limit — rejected with size error","JSON nesting depth exceeds 32 levels — rejected with depth error","Malformed JSON submitted (not parseable) — parse error returned","Network or payment processing failure — no validation result returned","Schema definition unavailable or pinned version mismatch — validation may fail unexpectedly"],"whenToPreferThis":"Choose this endpoint when you need to validate a compile_commands.json compilation database file against the authoritative SchemaStore definition, especially in CI/CD pipelines, developer tooling agents, or clangd/LSP setup workflows. Prefer it over generic JSON validators because it uses a pinned, domain-specific schema for compile commands rather than a user-supplied schema.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:48:02.607Z","isFirstParty":false,"canonicalSlug":"validate-compile-commands-json-c73029a1"}