Skip to content

fix(citations): accept string in journal volume and issue fields#33

Merged
Bissbert merged 1 commit into
mainfrom
fix/citations-issue-string
May 12, 2026
Merged

fix(citations): accept string in journal volume and issue fields#33
Bissbert merged 1 commit into
mainfrom
fix/citations-issue-string

Conversation

@Bissbert
Copy link
Copy Markdown
Contributor

Phase 3 introduced a journal reference in equipment/conoscope.yaml citing Acta Crystallographica Section A, Issues 1–4 — a real compound-issue value that cannot be represented as a single integer.

Relaxes the journal reference schema in src/content/config.ts to accept either z.number().int() or z.string() for both volume and issue. The format library at src/lib/citations/format.ts:72-73 already coerces both via template literals, so no rendering changes are needed.

Validation:

  • npm run validate:citations — 0 errors, 45 unused-reference warnings (non-blocking)
  • npm run build — 913 pages built in 8.71s, no schema errors

Unblocks Phase 3 citation deployment.

Some references describe compound issues (e.g. conoscope.yaml cites
Acta Cryst 'Section A, Issues 1–4'), which cannot be represented as
a single integer. Relaxes the schema to accept either int or string
for both volume and issue.

The format library already coerces to string for display so no
downstream changes are needed.

Fixes the build-time Astro content schema error blocking npm run build
after Phase 3 citation merges.
@Bissbert Bissbert merged commit 0787b9c into main May 12, 2026
3 of 4 checks passed
@github-actions
Copy link
Copy Markdown

🚀 Preview deployed to: https://f28efe39.gemmology-dev.pages.dev

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