onix-engine 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/index.cjs +118799 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +168 -1
- package/dist/index.d.ts +168 -1
- package/dist/index.js +118798 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -93,6 +93,22 @@ pnpm demo
|
|
|
93
93
|
It opens a Vite development server where you can switch between ONIX codelists
|
|
94
94
|
and Thema, then filter entries by code or heading.
|
|
95
95
|
|
|
96
|
+
To explore field-level validation with an editable product-code draft, run:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
pnpm demo:validation
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
The validation demo shows each field's exact-path findings alongside the full
|
|
103
|
+
validation report grouped by canonical path, with repeatable Thema subject and
|
|
104
|
+
qualifier assignments restricted to the selected List 27 scheme.
|
|
105
|
+
|
|
106
|
+
`isThemaCodeAssignable(code)` and `themaNonAssignableCodes` expose a curated,
|
|
107
|
+
immutable v1.6 assignment policy for codes that the pinned Thema notes say not
|
|
108
|
+
to assign directly. This list is hand-maintained: update it only after an
|
|
109
|
+
explicit review of the pinned Thema notes; it is not derived during generation
|
|
110
|
+
or at runtime.
|
|
111
|
+
|
|
96
112
|
## Updating the source data
|
|
97
113
|
|
|
98
114
|
Place exactly one official ONIX export named
|