Skip to content

feat(schema): publish one JSON Schema with explicit experiment and dataset unions - #59

Merged
clevinson merged 5 commits into
mainfrom
feat/single-schema
Nov 11, 2026
Merged

clevinson merged 5 commits into
mainfrom
feat/single-schema

Conversation

@clevinson

@clevinson clevinson commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

The main schema now accepts every experiment and dataset subclass at Container.experiments and Container.datasets, so it validates whole files. The separate validation schema and its recipe are gone; anything linking to oae_data_protocol.validation.schema.json should use oae_data_protocol.schema.json.

Removes Project.experiments. Nothing wrote it: experiments live in the container and point back with project_id.

Two things are stricter than the old validation schema. Nested instrument and calibration slots take the declared class only, matching the Metadata Builder. null is no longer accepted for experiments or datasets; use [] or omit the key.

The generated TypeScript types the two container slots as Any[]. Version 0.6.1.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2

QR code for preview link

🚀 View preview at
https://submarine-mrv.github.io/oae-data-protocol/pr-preview/pr-59/

Built to branch gh-pages at 2026-11-11 06:29 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@clevinson
clevinson merged commit 9046b47 into main Nov 11, 2026
5 checks passed
@clevinson
clevinson deleted the feat/single-schema branch November 11, 2026 06:30
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