Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

timotheeguerin
Copy link
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
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
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/

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