Opting in to the new decorator Argument Marshalling syntax #3628
MaggieKimani1
started this conversation in
General
Replies: 1 comment 1 reply
-
It seems like your language service is using an older version of TypeSpec without the value syntax. Can you ensure that you have 0.57 installed in your project, and don't have multiple TypeSpec versions floating around? You can also try updating your extension to 057 as well. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm currently working on a Typespec for copilot project that uses the OpenApi emitter to transform a
.tsp
file with custom decorators to the corresponding OpenApi description.I have defined a custom decorator called state that takes in an object as one of the params;
State decorator syntax:
With the new upgrade, this syntax should ideally change to this:
I've tried upgrading the typespec libraries to the latest version
0.57
and opting in to the new decorator marshalling behavior by setting thevalueMarshalling
package flag tonew
in my .ts file as per the release notes but it doesn't seem to work.Screenshots
Is there an extra step I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions