Skip to content

V_delta element.reference: char -> integer to match v1#54

Merged
stevevanhooser merged 1 commit into
mainfrom
claude/element-reference-integer
May 22, 2026
Merged

V_delta element.reference: char -> integer to match v1#54
stevevanhooser merged 1 commit into
mainfrom
claude/element-reference-integer

Conversation

@stevevanhooser
Copy link
Copy Markdown
Contributor

Summary

Companion follow-up to #53. After reverting the V_delta property-block renames, did-matlab CI on PR #140 surfaced a second incompatibility — a type mismatch on element.reference:

Schema element.reference.type default
v1 (NDI-matlab element_schema.json) integer 1
V_alpha char "1"
V_delta (before this PR) char "1"

The corpus stores reference as a JSON number, so the char declaration rejects ~5,365 element docs across the test corpora (23 / 290 / 896 / 4156 in 20211116 / B / Dab / JH respectively, plus 2 in PRED that flip testPREDCorpusMigratesCleanly to fail).

This PR changes V_delta's declaration to integer, matching v1, so v1 bodies migrate without any coercion. Modeled on the integer field direct already in the same schema:

  • type: charinteger
  • blank_value: ""0
  • default_value: "1"1
  • mustNotHaveNaN: falsetrue (consistent with other ints)
  • constraints: maxLength: 256min: 0, max: 100000 (matches v1's parameters: [0, 100000, 0])

mustBeNonEmpty, mustBeScalar, queryable, ontology, documentation unchanged.

Test plan

  • did-schema CI green
  • did-matlab PR #140 CI re-runs cleanly (testCorpusPRED should now pass; the big corpus tests already passed their assertions and should report 0 element quarantines after this merges)

Generated by Claude Code


Generated by Claude Code

The v1 element_schema declares reference as integer with bounds
[0, 100000]; existing corpora write reference as a JSON number.
V_delta inherited V_alpha's char declaration, which rejected
~5,365 docs across the test corpora at validation time. Restoring
the integer type lets v1 bodies migrate without coercion.

Modeled on the integer field "direct" already in this schema:
blank_value 0, mustNotHaveNaN true, constraints min/max instead
of maxLength. default_value 1 matches v1.
@stevevanhooser stevevanhooser merged commit 0ccc83d into main May 22, 2026
4 checks passed
@stevevanhooser stevevanhooser deleted the claude/element-reference-integer branch May 22, 2026 12:12
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.

2 participants