WeKnora/docs
lyingbug 234aa948db
docs(swagger): document the real request and response types (#4304)
* docs(swagger): add shared response envelope types

* docs(swagger): type knowledge base responses

* docs(swagger): add concrete response body types

* docs(swagger): type chunk list responses

* docs(swagger): type knowledge mutation responses

* docs(swagger): type wiki search and autofix responses

* docs(swagger): type FAQ responses

* docs(swagger): type tag responses

* docs(swagger): type message responses and SSE schemas

* docs(swagger): type agent responses

* docs(swagger): type remaining handler responses

* docs(swagger): regenerate OpenAPI spec

* docs(swagger): type knowledge, activity and wiki maintenance endpoints

Covers the endpoints left out of the earlier passes: knowledge base
detail, document list/detail/spans/reparse/cancel/delete, knowledge
base activity and the Wiki stats, issues, lint and rebuild-links
endpoints. The spans handler now writes the documented structs instead
of gin.H, so the schema cannot drift from the body; the JSON is
unchanged. List filters gain their real enums and bounds, including
the finalizing, cancelled and deleting parse states.

* docs(swagger): document JSON-valued fields as JSON, not byte arrays

types.JSON and json.RawMessage are byte slices, so swag rendered every
metadata, details and config field as an array of integers. A swag
overrides file documents them as objects; the four fields that hold
arrays (relation chunk ids, allowed origins, image refs) say so with a
swaggertype tag.

* chore(lint): exempt swag annotation lines from the line-length limit

swag reads each @Param, @Success and @Failure as a single line, so an
enum list or a composed response type cannot be wrapped to fit.

* chore(lint): exempt struct tags carrying swag attributes from the line limit

Struct tags cannot wrap either; a field documented with swaggertype or
extensions keeps its tags on the declaration line.
2026-10-15 01:41:42 +08:00
..
assets feat(search): add RRF controls in a tabbed settings popover (#4300) 2026-10-14 23:41:16 +08:00
design feat(agent): persist human-in-the-loop prompts with a shared broker (#4250) 2026-10-14 20:37:28 +08:00
images feat(system): add platform user management and streamline settings (#4153) 2026-10-11 17:07:00 +08:00
poc/docker-sandbox docs: 迁移有效文档至 website-docs 并清理旧文档 (#3580) 2026-09-22 23:25:40 +08:00
LITE.md refactor(terminology): rename user-facing tenant labels to workspace 2026-07-14 16:14:43 +08:00
README.md docs: 迁移有效文档至 website-docs 并清理旧文档 (#3580) 2026-09-22 23:25:40 +08:00
docs.go docs(swagger): document the real request and response types (#4304) 2026-10-15 01:41:42 +08:00
release-v0.8.3-audit.md chore(release): finalize v0.8.3 website and documentation (#4285) 2026-10-14 15:20:30 +08:00
swag.overrides docs(swagger): document the real request and response types (#4304) 2026-10-15 01:41:42 +08:00
swagger.json docs(swagger): document the real request and response types (#4304) 2026-10-15 01:41:42 +08:00
swagger.yaml docs(swagger): document the real request and response types (#4304) 2026-10-15 01:41:42 +08:00
swagger_contract_test.go chore(release): finalize v0.8.3 website and documentation (#4285) 2026-10-14 15:20:30 +08:00

README.md

文档已迁至 website-docs

产品、部署、API 和开发文档统一维护在 website-docs。已迁移、重复和过时的旧手写文档已删除;历史内容可从 Git 历史查看。

本目录仅保留以下工程资源及本入口说明:

  • docs.go、swagger.json、swagger.yaml 与契约测试:参与后端编译和测试,生成物仍由 make docs 更新。
  • LITE.md:Lite 发布包复制为离线 README。
  • images/、assets/:README、Helm 等仍使用的图片资源。
  • poc/docker-sandbox/:独立 Go 实验模块,保留源码和运行说明,不作为当前产品指南。

这些资源尚有编译、发布或历史实验用途,不能直接整目录删除。新的产品说明不要再放入此处。