Skip to content

fix(ci): generate docs per-schema-file#69

Merged
ronaldtse merged 1 commit into
mainfrom
fix/ci-docs-per-file
Jul 5, 2026
Merged

fix(ci): generate docs per-schema-file#69
ronaldtse merged 1 commit into
mainfrom
fix/ci-docs-per-file

Conversation

@ronaldtse

Copy link
Copy Markdown
Member

The directory-based invocation was failing because schemas/v3/ now contains bibliography.yaml and figure.yaml, which are dataset-syntax files — not valid JSON Schemas. generate-schema-doc fails with 'root schema could not be loaded'.

Fix: invoke generate-schema-doc once per valid schema file. Also more explicit and extensible — adding new dataset-syntax files won't break doc generation.

Passing schemas/v3 as a directory caused generate-schema-doc to try
processing bibliography.yaml and figure.yaml, which are dataset-syntax
files — not valid JSON Schemas (no $id, no type: object). The tool
fails with 'Cannot generate documentation since root schema could not
be loaded'.

Fix: invoke generate-schema-doc once per valid schema file
(concept, localized-concept, register for v3; concept, localized-concept
for v2). This is also more explicit and extensible — new dataset-syntax
files won't break the doc generation.
@ronaldtse ronaldtse merged commit 529f386 into main Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant