-
Notifications
You must be signed in to change notification settings - Fork 85
Closed
microsoft/typespec
#5510Description
- issue: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4217139&view=logs&j=42d88303-8e48-5332-e7e9-82bec1356e32&t=33740b31-17c1-53d0-4485-7f460d813a8f
- Currently, we'll generate EMPTY_BYTE_ARRAY as private static final member for a model, if it contains property that needs value expression conversion(null ->
EMPTY_BYTE_ARRAYinstead 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, generateEMPTY_BYTE_ARRAYas field member of client impl.
Theoretically we need to track anywhere that needs default value expression conversion for ByteArray.
Metadata
Metadata
Assignees
Labels
No labels