Tighten XCUI schema consistency rules

This commit is contained in:
2026-04-05 06:02:40 +08:00
parent ff44b15396
commit 7b49a621cc
3 changed files with 131 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ Current gap:
- `XCNewEditor` Debug target builds successfully
- `core_ui_tests`: `14/14`
- `core_ui_style_tests`: `5/5`
- `ui_resource_tests`: `7/7`
- `ui_resource_tests`: `11/11`
- `editor_tests` targeted bridge smoke: `3/3`
## Landed This Phase
@@ -94,6 +94,10 @@ Current gap:
- artifact schema version bump for UI documents
- loader/resource accessors and memory accounting
- schema compile/load/artifact regression coverage
- schema consistency rules for:
- `allowedValues` only on `enum`
- `documentKind` / `restrictDocumentKind` only on `document`
- explicit `documentKind` required when `restrictDocumentKind=true`
- Engine runtime layer added:
- `UIScreenPlayer`
- `UIDocumentScreenHost`