Skip to content

Ramsess/add casing check to metadata#1094

Merged
ramsessanchez merged 7 commits intomasterfrom
ramsess/addCasingCheckToMetadata
May 5, 2026
Merged

Ramsess/add casing check to metadata#1094
ramsessanchez merged 7 commits intomasterfrom
ramsess/addCasingCheckToMetadata

Conversation

@ramsessanchez
Copy link
Copy Markdown
Contributor

Adds a check to our schema syncs so casing changes in entityTypes, complexTypes, and enumTypes are flagged. The following is achieved by:

  • Add script to create json files containing maps for entityTypes, complexTypes, and enumTypes for both v1.0 and beta.
  • Add a second script to compare the casing of type names in the schema csdl files to what is stored in the json maps.
  • An error is thrown if a type exists in the json map and the csdl with different casing; new types and deleted types are not flagged.
  • Adds a github action that runs on pull requests making changes to the schema csdl files. This would target the pr's created by our generation pipeline. Will flag changes to casing changes as breaking.
  • If a pr is approved and merged then the action runs the mapping script again to set a new baseline for what is contained in our csdl files.

Source of issue described here: microsoft/kiota#7654

Comment thread .github/workflows/check-casing-changes.yml
Comment thread scripts/check-casing-changes.ps1
Comment thread scripts/check-casing-changes.ps1
@ramsessanchez ramsessanchez merged commit e4cd34f into master May 5, 2026
21 checks passed
@ramsessanchez ramsessanchez deleted the ramsess/addCasingCheckToMetadata branch May 5, 2026 20:02
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