Skip to content

Conversation

@witemple-msft
Copy link
Member

This was an oversight. The PR corrects the construction of the mutators to pass the name template through the inner mutator and adds tests for regression.

Closes #8653

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 7, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/compiler@8676

commit: 5053951

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2025

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Addressed an issue where applying the Update visibility transform would not correctly rename nested models.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension


ok(nested);
ok(nested.type.kind === "Model");
ok(nested.type.name === "CreateOrUpdateNested");
Copy link
Member

Choose a reason for hiding this comment

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

strictEqual or expect toEqual?

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]: Visibility duplicate type name

3 participants