Skip to content

[http-client-csharp] Generated deserialization code does not pass ModelReaderWriterOptions to custom hook methods #9800

@ShivangiReja

Description

@ShivangiReja

When a custom deserialization hook method (e.g., DeserializeFunctionArgumentsValue) declares a ModelReaderWriterOptions options parameter, the generated deserialization code at the call site does not pass the options value through(e.g. DeserializeFunctionArgumentsValue).

Expected behavior

The generated code should forward the options parameter to the custom deserialization hook:

DeserializeFunctionArgumentsValue(prop, ref functionArguments, options);

Impact

This forces custom deserialization hooks to hard-code ModelSerializationExtensions.WireOptions instead of flowing the caller-provided options, which may behave incorrectly in non-wire serialization scenarios.

Metadata

Metadata

Labels

emitter:client:csharpIssue for the C# client emitter: @typespec/http-client-csharp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions