Skip to content

Fix: augmenting template property didn't resolve declaration#3212

Merged
timotheeguerin merged 2 commits intomicrosoft:mainfrom
timotheeguerin:fix/augment-decorator-template-decl
Apr 23, 2024
Merged

Fix: augmenting template property didn't resolve declaration#3212
timotheeguerin merged 2 commits intomicrosoft:mainfrom
timotheeguerin:fix/augment-decorator-template-decl

Conversation

@timotheeguerin
Copy link
Copy Markdown
Member

@timotheeguerin timotheeguerin commented Apr 23, 2024

fix #3211
Problem was we were checking the decorator declaration passing the mapper this mean the checker was thinking we were defining this decorator declaration in a template instance(which is not possible)
This resulted in the argument marshaling to not happen as it will only happen when there is a valueof constraint

@azure-sdk
Copy link
Copy Markdown
Collaborator

azure-sdk commented Apr 23, 2024

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Fix: augmenting template model property could result in sending invalid argument to decorator

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3212/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3212/

@timotheeguerin timotheeguerin added this pull request to the merge queue Apr 23, 2024
Merged via the queue into microsoft:main with commit e09af82 Apr 23, 2024
@timotheeguerin timotheeguerin deleted the fix/augment-decorator-template-decl branch April 23, 2024 17:38
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.

Augmenting a template declaration with a decorator from a library doesn't seem to use value marshalling

3 participants