docs: alias bullets for port-specific Object struct names#40122
Merged
yury-s merged 3 commits intomicrosoft:mainfrom Apr 9, 2026
Merged
docs: alias bullets for port-specific Object struct names#40122yury-s merged 3 commits intomicrosoft:mainfrom
yury-s merged 3 commits intomicrosoft:mainfrom
Conversation
Replace the `[Object=Name]` syntax for naming generated structs in language ports with `- alias:` / `- alias-LANG:` child bullets, so the default alias applies to all ports while individual languages can override it.
So the Java generator can drop its hardcoded customTypeNames map and toTitle(parent.jsonName) inference and read langAliases.java from the api.json instead. Also extend Type.parse to attach langAliases to non-Object types so the exposeBinding/exposeFunction function callbacks can carry an alias.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
dgozman
approved these changes
Apr 9, 2026
Contributor
Test results for "tests 1"1 failed 2 flaky39187 passed, 846 skipped Merge workflow run. |
Contributor
Test results for "MCP"6468 passed, 383 skipped Merge workflow run. |
yury-s
added a commit
that referenced
this pull request
Apr 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[Object=Name]with- alias:/- alias-LANG:child bullets so language ports can override the struct name independently.alias-javaentries for every top-level Object/function type the Java port currently customizes via its hardcodedcustomTypeNamesmap andtoTitle(parent.jsonName)inference, so the Java generator can be simplified after the next roll.C# generator output is byte-identical to baseline.