Skip to content

fix(typescript): preserve all top-level arrays#3083

Merged
schani merged 1 commit into
masterfrom
fix/remove-array-provenance
Jul 23, 2026
Merged

fix(typescript): preserve all top-level arrays#3083
schani merged 1 commit into
masterfrom
fix/remove-array-provenance

Conversation

@schani

@schani schani commented Jul 23, 2026

Copy link
Copy Markdown
Member

Summary

Follow-up to #3031 (comment).

  • remove the schema-array provenance type attribute
  • remove the private $comment used to preserve provenance through generated JSON Schema
  • preserve top-level array wrappers consistently for JSON samples and JSON Schema inputs
  • update sample-array tests to expect exported aliases and inferred Element names

This fixes the fallout directly: direct JSON generation and generation via quicktype's JSON Schema output now produce the same array alias without encoding input provenance in the type graph or schema.

Verification

  • npm run build
  • npm run lint
  • npm run test:unit (229 passed)
  • QUICKTEST=true FIXTURE=typescript npm run test:fixtures (84 passed)
  • QUICKTEST=true FIXTURE=javascript npm run test:fixtures (64 passed)
  • manually verified Flow output

@github-actions

Copy link
Copy Markdown

Generated-output differences

128 files differ — 128 modified, 0 new, 0 deleted
1530 changed lines — +851 / −679

Open the generated-output report →

@schani
schani merged commit 83a53f9 into master Jul 23, 2026
30 checks passed
@schani
schani deleted the fix/remove-array-provenance branch July 23, 2026 20:32
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