Requires columns (integer) and width (positive number)
components
Array with at least one item; each item requires role
Component role
Validated against known ANF roles (unknown future roles produce a warning)
Cross-references
textStyle, layout, and style string refs validated against root dictionaries
Extension Settings
This extension has no configurable settings.
Known Issues
The bundled ANF JSON Schema covers the most common fields and component types. Properties not explicitly listed are allowed (additionalProperties: true for components). If you encounter a false positive for a valid ANF property, please open an issue.
Validation runs on open and save only — live typing does not trigger re-validation.
Release Notes
0.1.0 — Initial Release
JSON Schema validation for ANF article.json files
Cross-reference validation for textStyle, layout, and style refs
Diagnostics in the VS Code Problems panel
Development
git clone https://github.com/whyisjake/anf-validator
cd anf-validator
npm install
npm run build # one-shot build
npm run watch # watch mode
npm test # unit tests (Vitest)
npm run typecheck # TypeScript type-check only
To launch the extension in a VS Code Extension Host for manual testing:
Open the project folder in VS Code
Press F5 (Run Extension)
In the new window, open a folder containing an article.json