Files
sausage/sdk/imports/notes.json
surma 61d5d5f817 sausage-plugin: the crate docs are the manual for agents; remove PROPOSAL.md
Its content lives in PROTOCOL.md (the contract), DECISIONS.md (the
reasons), and the SDK docs (how to write a plugin).
2026-10-23 02:46:47 +01:00

26 lines
882 B
JSON

{
"openrpc": "1.2.6",
"info": {"title": "notes", "version": "0.1.0"},
"components": {"schemas": {
"AddParams": {
"description": "The parameters of add.",
"type": "object",
"properties": {"text": {"type": "string", "description": "The text to append."}},
"required": ["text"]
},
"Added": {
"description": "The result of add.",
"type": "object",
"properties": {"count": {"type": "integer", "minimum": 0, "description": "The total number of notes."}},
"required": ["count"]
}
}},
"methods": [{
"name": "add",
"summary": "Append a note and return the new count.",
"params": [{"name": "text", "required": true, "schema": {"type": "string"}}],
"x-sausage-params": {"$ref": "#/components/schemas/AddParams"},
"result": {"name": "result", "schema": {"$ref": "#/components/schemas/Added"}}
}]
}