Skip to content

modelgenerator: default to generating JSON - #23097

Open
nickrolfe wants to merge 1 commit into
mainfrom
nickrolfe/model-generator-default-json
Open

nickrolfe wants to merge 1 commit into
mainfrom
nickrolfe/model-generator-default-json

Conversation

@nickrolfe

Copy link
Copy Markdown
Contributor

Now that I'm merging PRs to convert all existing models to JSON, changing the default here ensures any new ones should also be generated in the JSON format.

@nickrolfe nickrolfe added the no-change-note-required This PR does not need a change note label Nov 11, 2026
@nickrolfe
nickrolfe requested a review from a team as a code owner November 11, 2026 11:31
Copilot AI auto review requested due to automatic review settings November 11, 2026 11:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change defaults model generation and conversion to JSON while pack manifests and CI workflows still recognize only YAML, so generated models would be omitted from CodeQL and workflow processing.

3 open issues
What changed in this PR

This pull request changes Models-as-Data generation and conversion tools to produce JSON output by default, but repository manifests and workflows still match only .model.yml files.

Changes:

  • Defaults standalone and bulk model generation to JSON.
  • Changes extension conversion to emit .model.json files.
  • Requires coordinated updates to pack manifests and workflow globs so generated JSON files are consumed and staged.
File Description
misc/​scripts/​models-as-data/​generate_mad.py Defaults standalone model generation to JSON output.
misc/​scripts/​models-as-data/​convert_extensions.py Changes converted model extension files to use the .model.json format.
misc/​scripts/​models-as-data/​bulk_generate_mad.py Defaults bulk model generation to JSON output.

Review effort: Lite (auto)

"--extension-format",
choices=["json", "yaml"],
default="yaml",
default="json",
# N.B. change this to .model.json to change the output format:
self.modelFileExtension = ".model.yml"
# N.B. change this to .model.yml to change the output format:
self.modelFileExtension = ".model.json"
"--extension-format",
choices=["json", "yaml"],
default="yaml",
default="json",

This branch has not been deployed

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

Labels

no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants