test: regenerate keyword fixtures from keywords.txt by schani · Pull Request #3473 · glideapps/quicktype · GitHub
Skip to content

test: regenerate keyword fixtures from keywords.txt - #3473

Merged
schani merged 2 commits into
masterfrom
sync-keyword-fixtures
Sep 6, 2026
Merged

test: regenerate keyword fixtures from keywords.txt#3473
schani merged 2 commits into
masterfrom
sync-keyword-fixtures

Conversation

@schani

@schani schani commented Sep 6, 2026

Copy link
Copy Markdown
Member

Closes #3120

Why

test/keywords.json, keyword-enum.schema, and keyword-unions.schema are generated by test/make-keyword-tests.sh from test/keywords.txt. Over the last few weeks 41 keys were added to keywords.json by hand without touching keywords.txt, so running the generator deleted them. Four of those entries also carry hand-written values (a date-time, an enum array, null, a UUID) that make generated code use a same-named runtime helper. The generator could not produce those.

What

  • keywords.py accepts an optional tab-separated JSON literal after a keyword and uses it as the sample value. Default stays 123.
  • keywords.txt gains the 41 missing names in the file's existing order, with values for the four typed entries.
  • All three files regenerated. The key set and every value in keywords.json are unchanged; only the 64-per-chunk objN boundaries moved. The two schemas gain the 41 names as enum values and union properties, which is new coverage for every language.
  • CLAUDE.md states that these files are generated and must not be edited directly.

Regenerating a second time is a no-op. Ran typescript, javascript, golang, rust, and swift JSON and schema fixtures on the changed inputs locally. Other languages depend on CI.

Supersedes #3121.

🤖 Generated with Claude Code

keywords.json had 41 keys added by hand that were missing from
keywords.txt, so regenerating silently dropped them. Add them to
keywords.txt, let keywords.py carry a per-keyword JSON value for the
four entries whose value matters, and regenerate all three files.

Closes #3120

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

A union member named ToString hides object.ToString and dotnet run
prints warning CS0108 to stdout, which the fixture parses as JSON.
Surfaced by the regenerated keyword-unions.schema.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

@schani
schani enabled auto-merge (squash) September 6, 2026 02:57
@schani
schani merged commit fb78a67 into master Sep 6, 2026
35 checks passed
@schani
schani deleted the sync-keyword-fixtures branch September 6, 2026 03:14
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.

[BUG]: keywords.json deviated from generator file keywords.txt

1 participant