{
  "openapi": "3.1.0",
  "info": {
    "title": "Fehlerheld Public Knowledge",
    "version": "1.0.0",
    "description": "Read-only access to reviewed, model-specific appliance error records. The canonical HTML page remains the preferred citation target."
  },
  "servers": [
    {
      "url": "https://fehlerheld.de/wissen/v1"
    }
  ],
  "paths": {
    "/index.json": {
      "get": {
        "summary": "List all published knowledge records",
        "responses": {
          "200": {
            "description": "Knowledge manifest",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/eintraege/{id}.json": {
      "get": {
        "summary": "Read one reviewed knowledge record",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A model-specific error-code record with sources and safety boundaries",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeEntry"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "KnowledgeEntry": {
        "type": "object",
        "required": [
          "schema_version",
          "id",
          "canonical_url",
          "entity",
          "answer",
          "causes",
          "safe_checks",
          "safety",
          "provenance"
        ],
        "properties": {
          "schema_version": {
            "type": "string",
            "const": "1.0"
          },
          "id": {
            "type": "string"
          },
          "canonical_url": {
            "type": "string",
            "format": "uri"
          },
          "machine_url": {
            "type": "string",
            "format": "uri"
          },
          "language": {
            "type": "string",
            "const": "de-DE"
          },
          "entity": {
            "type": "object"
          },
          "answer": {
            "type": "object"
          },
          "causes": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "safe_checks": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "safety": {
            "type": "object"
          },
          "provenance": {
            "type": "object"
          }
        }
      }
    }
  }
}
