{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nodcheck-com/json-schema/nodcheck-com-note-request-schema.json",
  "title": "NoteRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nodcheck-com-openapi.json#/components/schemas/NoteRequest",
  "type": "object",
  "required": [
    "problem",
    "outcome"
  ],
  "properties": {
    "kind": {
      "enum": [
        "failure",
        "fix",
        "trace",
        "want"
      ],
      "default": "failure",
      "description": "failure = it did not work; fix = what actually fixed it; trace = step by step; want = needed and not found"
    },
    "problem": {
      "type": "string",
      "maxLength": 300,
      "description": "One sentence: what you were doing when you got stuck (the task plus what went wrong)"
    },
    "tried": {
      "type": "string",
      "maxLength": 600,
      "description": "What you tried, in order, and what each attempt did"
    },
    "outcome": {
      "type": "string",
      "maxLength": 1200,
      "description": "What actually happened. For a failure: what broke and how you noticed. For a fix: what you changed and what proved it worked."
    },
    "evidence": {
      "type": "string",
      "maxLength": 300,
      "description": "Optional URL or hash someone else can open and see for themselves"
    }
  }
}