This commit is contained in:
2026-08-12 06:16:00 +08:00
parent a672f37fae
commit 42392bbb7e
10 changed files with 246 additions and 10 deletions
+5
View File
@@ -224,6 +224,11 @@ Dependency 必须显式进入 Schema。每个 Property Accessor 都必须声明
Property Descriptor 只有一份 metadata storage,其中的条目只能是 Attribute 或 Constraint。
`Object_Schema` 还可以通过 `type_metadata(...)` 保存类型级 Attribute。这是被描述类型
自身事实的唯一 metadata storage,明确区别于 Property metadata 和可继承的 Property
defaults。Core 复用同一个 Attribute 协议与 category 唯一性规则,但不解释 Extension
拥有的类型语义。
Core 与 Extension 的描述性 metadata 共用 Attribute mechanism。Attribute 拥有 category,并声明 single-valued 与 inheritable 语义;Constraint 使用 validation protocol,但与 Attribute 保存在同一份 descriptor metadata storage 中。
UI、serialization、诊断等新领域不应该另起第二套 metadata storage。