Files
whetstone_DSL/schemas/methods/getAnnotationSuggestions.schema.json
Bill c9d938f855 Sprint 7 Phase 7a: API documentation, schemas, and new RPC methods (Steps 202-206)
- Step 202: docs/AGENT_API.md — comprehensive JSON-RPC API reference with 23 methods
- Step 203: schemas/ — 20 JSON Schema files (8 types, 12 methods) for validation
- Step 204: Expose ContextAPI (getInScopeSymbols, getCallHierarchy, getDependencyGraph) and BatchMutationAPI (applyBatch) via WebSocket RPC
- Step 205: Expose Pipeline operations (runPipeline, parseSource, generateFromAST, projectLanguage) via WebSocket RPC
- Step 206: API schema validation tests — 51/51 assertions pass
- Updated PROGRESS.md with Sprint 5+6 completion, corrected summary table
- Updated FEATURE_REQUESTS.md to reflect implemented items
- Created sprint7_plan.md with 33 steps across 6 phases

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 07:31:01 -07:00

56 lines
1.6 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://whetstone-dsl.org/schemas/methods/getAnnotationSuggestions.schema.json",
"title": "getAnnotationSuggestions",
"description": "Get annotation suggestions for a node or source location",
"type": "object",
"properties": {
"request": {
"type": "object",
"properties": {
"nodeId": {
"type": "string",
"description": "The unique identifier of the AST node to query"
},
"line": {
"type": "integer",
"minimum": 0,
"description": "The line number in the source code"
},
"col": {
"type": "integer",
"minimum": 0,
"description": "The column number in the source code"
}
},
"additionalProperties": false
},
"response": {
"type": "object",
"properties": {
"scopeId": {
"type": "string",
"description": "The scope ID where suggestions were generated"
},
"suggestions": {
"type": "array",
"items": {
"$ref": "../types/Suggestion.schema.json"
},
"description": "Array of annotation suggestions"
},
"diagnostics": {
"type": "array",
"items": {
"$ref": "../types/Diagnostic.schema.json"
},
"description": "Array of diagnostics related to the suggestions"
}
},
"required": ["scopeId", "suggestions", "diagnostics"],
"additionalProperties": false
}
},
"required": ["request", "response"]
}