Add strict custom field registry

This commit is contained in:
2026-05-07 11:04:11 +08:00
parent 27e71d8c51
commit c1cc9132a4
20 changed files with 582 additions and 20 deletions

View File

@@ -7,6 +7,7 @@
```text
lottery/
gsp.manifest
gsp.fields
design/
*.gsp
```
@@ -23,6 +24,8 @@ page.lottery.main
```powershell
.\bin\gsp.exe validate --root examples\lottery
.\bin\gsp.exe fields list --root examples\lottery
.\bin\gsp.exe fields validate --root examples\lottery
.\bin\gsp.exe flatten page.lottery.main --root examples\lottery --depth -1
.\bin\gsp.exe pack page.lottery.main --root examples\lottery --for implement --format md
.\bin\gsp.exe links page.lottery.main --root examples\lottery --format md

View File

@@ -0,0 +1,2 @@
gspFieldsVersion: 0.1
fields: {}

View File

@@ -8,6 +8,9 @@ entry:
scan:
- design
customFieldPolicy: strict
fieldRegistry: gsp.fields
stageRules:
design:
minResolution: L0