-
Notifications
You must be signed in to change notification settings - Fork 82
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
EMPTY_BYTE_ARRAY in client impl will cause compilation error #3006
Comments
6 tasks
Or just use I believe |
Yes.
Yeah we could. Though this would compromise some performance, and we need some hack to check for ByteArray when doing default value expression conversion. |
github-merge-queue bot
pushed a commit
to microsoft/typespec
that referenced
this issue
Jan 7, 2025
… implementations (#5510) - fix Azure/autorest.java#3006 - swagger test: Azure/autorest.java#3007
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EMPTY_BYTE_ARRAY
instead ofnew byte[0]
).If we need similar transformation for client method parameters, this won't work since we won't generate this field member for clients.
Possible solution is to track all client methods for optional ByteArray parameters. If any of them exists, generate
EMPTY_BYTE_ARRAY
as field member of client impl.Theoretically we need to track anywhere that needs default value expression conversion for ByteArray.
The text was updated successfully, but these errors were encountered: