Skip to content

feat: accept $schema in model data and offer more examples - #40

Merged
Mearman merged 2 commits into
mainfrom
feat/schema-field-and-examples
Oct 30, 2026
Merged

Mearman merged 2 commits into
mainfrom
feat/schema-field-and-examples

Conversation

@Mearman

@Mearman Mearman commented Oct 30, 2026

Copy link
Copy Markdown
Member

The JSON view of a model never showed a $schema, so an exported file got no editor validation. ModelData and the published schema now accept the key (it is ignored by parseModel), and the explorer writes it first into every new model and every example, pointing at the schema of the release the page is built from. The form no longer lists it under keys it does not show.

The example menu goes from three to eleven. The new ones cover implications, a numeric version floor, values no rule leaves possible (for the dead-value check), membership with any-of and not, unless, a first-valid fallback, chained activeWhen, and a 189-combination space for covering arrays. Each count is checked against the arithmetic of its dimensions and rules rather than copied from the engine.

The first commit is a feat to the package, so merging it releases a minor version. Until then the $schema URL names the previous release, whose schema does not list the key, so an editor would flag it. The post-release redeploy rebuilds the site against the new version.

A model file can name the JSON Schema it is written against, which an editor
reads without any setting. parseModel and isModelData accept the key and
ignore it, and the published schema declares it, so a file that names its
schema validates against that schema.
…xamples

The JSON view of a new model and of every example now starts with the
$schema its release published, which the form keeps and no longer lists
among the keys it does not show.

The examples gain implications, numeric comparison, dead values, membership
and negation, an unless exception, a derived fallback, chained activity
and a space large enough for a covering array. Each is checked against the
arithmetic of its dimensions and rules.
@Mearman
Mearman marked this pull request as ready for review October 30, 2026 09:31
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ⚠️ Failed 2026-10-30T09:32:04.684257Z
We couldn’t complete this review. Comment @codex security review to try again.
3d74815 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@Mearman
Mearman merged commit 7c0e191 into main Oct 30, 2026
30 of 36 checks passed
@Mearman
Mearman deleted the feat/schema-field-and-examples branch October 30, 2026 09:32
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant