Skip to content

C#: convert data extensions to JSON - #23063

Draft
nickrolfe wants to merge 2 commits into
mainfrom
nickrolfe/json-data-extensions-csharp
Draft

nickrolfe wants to merge 2 commits into
mainfrom
nickrolfe/json-data-extensions-csharp

Conversation

@nickrolfe

Copy link
Copy Markdown
Contributor

CodeQL CLI 2.27.3 supports JSON data extensions (aka MaD models), and can load them significantly faster than YAML. This PR converts those in C#'s library pack (first commit), along with $TEST.ext.yml files (second commit). The conversions were automated by an LLM-generated Python script (which I will add in a separate PR).

Although JSON is preferred going forward, csharp/ql/lib/qlpack.yml now has patterns that will pick up both .model.yml and .model.json files, so that any YAML files that do get checked in won't get silently dropped.

To verify successful conversion in the first commit, I cherry-picked it onto #23062, which has a temporary test that enumerates all tuples from data extensions. The test still passes after conversion.

For the second commit, I sampled several of the converted files and manually inspected the diffs.

@nickrolfe nickrolfe added the no-change-note-required This PR does not need a change note label Nov 9, 2026
@github-actions github-actions Bot added the C# label Nov 9, 2026

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

C# 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.

1 participant