Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

docs +create: <ol seq="auto"> 返回 degrade_code=5002,但 skill 文档要求写该属性

Open Beginner friendly
#2,796 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
go
Domain
documentation

Research direction

Read skills/lark-doc/references/lark-doc-xml.md around line 22 and compare its seq guidance with the warning reproduced by the docs +create command. Check the XML schema or validation path for ordered lists to determine whether col supports seq; done means either the behavior matches the documentation without a warning, or the documentation clearly explains that ordered lists do not support this attribute.

Written by the indexing model from the issue text.

Description

domain/core domain/doc enhancement

环境

  • lark-cli 1.0.97(npm 全局安装),macOS,identity=user
  • 命令:lark-cli docs +create --doc-format xml --content @draft.xml --format json

复现

按 skill 文档写有序列表属性:

<ol seq="auto">
  <li><p>第一项</p></li>
  <li><p>第二项</p></li>
</ol>

实际

ok: true,但返回 warnings:

degrade_code=5002,msg=Unsupported attribute "seq" on <ol> is not in schema.
Check whether the generated attribute is expected by the target DocxXML tag

期望

要么无警告;要么 <ol> 确实不支持 seq 时,skill 文档不要要求作者写它。

冲突点

skills/lark-doc/references/lark-doc-xml.md 第 22 行写着:

有序列表:默认属性 seq="auto",需从指定数字开始时设置对应值,如 seq="3"。

同一份文档里 <h1 seq="auto"> 是有效的(创建后正确生成 seq-marker,无警告),所以作者会自然把同一写法用到 <ol> 上。
"从指定数字开始"(seq="3")这个用法在文档里也没有别的入口说明。

影响

  1. 每次用有序列表创作都会带一条 warning。
  2. 把 warning 当可操作信号的 agent 会去找问题,但 <ol> 在 docs +fetch --detail with-ids 里没有 block id(只有子级 <li> 有),无法用 docs +update 定位修复。
  3. 编号本身渲染正常(默认自增,<li> 上带 seq-marker),所以这是一条无法消除、又无实际损坏的噪声警告。

建议

二选一:

  • 服务端接受 <ol> 的 seq(含 seq="3" 起始编号),与文档对齐;
  • 或更新 lark-doc-xml.md,明确 seq 只适用于标题与列表项,有序列表无需也无法显式设置。
Dominant language
Go
Stars
17.5k
Forks
1.4k
Avg merge
1d 12h
Merged PRs (30d)
31

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from larksuite/cli

All issues in larksuite/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.