We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CodeGenSerializationAttribute
ModelReaderWriterOptions
For example, I created my own serialization hook like this:
[MethodImpl(MethodImplOptions.AggressiveInlining)] private void SerializeDataValue(Utf8JsonWriter writer, ModelReaderWriterOptions options) { ... }
The generator correctly recognizes the hook and uses it in the generated code, but it is not passing the options parameter.
Observed:
void IJsonModel<EmbeddingCollection>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { ... writer.WritePropertyName("data"u8); SerializeDataValue(writer); ... }
Expected:
void IJsonModel<EmbeddingCollection>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { ... writer.WritePropertyName("data"u8); SerializeDataValue(writer, options); ... }
The text was updated successfully, but these errors were encountered:
nisha-bhatia
Successfully merging a pull request may close this issue.
For example, I created my own serialization hook like this:
The generator correctly recognizes the hook and uses it in the generated code, but it is not passing the options parameter.
Observed:
Expected:
The text was updated successfully, but these errors were encountered: