You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is how STJ handles byte[] when serializing/deserializing.
Reproduction Steps
var x = new JsonSerializerOptions();
x.WriteIndented = true;
x.TypeInfoResolver = JsonSerializerOptions.Default.TypeInfoResolver;
Console.WriteLine(JsonSchemaExporter.GetJsonSchemaAsNode(x, typeof(byte[])).ToJsonString(x));
Description
Schema for
byte[]should produce"contentEncoding": "base64"https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-01#section-8.3
I think this is how STJ handles
byte[]when serializing/deserializing.Reproduction Steps
Expected behavior
contentEncoding is emitted and set to base64.
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response