DOC-FULL-005:ReadingPosition V2 camelCase 与 progress clamp #106
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
修复 / 完成 ReadingPosition V2,确保 position JSON 使用 camelCase,并将 progress clamp 到 0~1。
字段建议
规则
验收标准
完成证据
产物:
crates/zx_document_core/src/progress.rs(313 行)已有提交:
661d21dfix: DOC-FULL-005 ReadingPosition camelCase + clamp核心规则:
#[serde(rename_all = "camelCase")]在所有 variant 上)clamp_progress()+normalized())uniffi::Record+ 多个 FFI function)测试: 10 个已有测试 (test_deserialize_from_camel_case_json, test_deserialize_serialize_roundtrip_all_variants, test_clamp_negative, test_clamp_above_one, test_clamp_nan, test_markdown_camel_case, test_pdf_camel_case, test_rename_attrs_not_overridden_by_uniffi, test_roundtrip, test_is_compatible) — 168 passed