Skip to content

v1.0.1

Choose a tag to compare

@reteps reteps released this 13 May 20:34
· 47 commits to master since this release
01327bf

Schema formats

Two new ways to register ajv formats so custom-tag schemas can use { "format": "..." } value rules:

  • createLinter({ formats }) — programmatic hook, passed through to loadSchemaRegistry and ajv.addFormat.
  • formatsModule in .htmlmustache.jsonc — relative path to a JS/TS module whose default export is Record<string, SchemaFormat>. The CLI and the language server dynamically import it once per process. Load failures surface as customTagSchema diagnostics.

loadConfigFile and loadConfigFileForPath are now async (the dynamic import happens during config load).

Documentation

  • Worked example in the README showing how to express parent-conditional child-attribute constraints in plain JSON Schema 2020-12 (no DSL extensions). Solves the recurring "when parent has attr X, child of tag Y must not have attr Z" pattern.
  • Notes on the trust boundary formatsModule introduces (the CLI / extension runs that file in-process).

Internal

  • ADR directory removed.