Skip to content

Commit 8656b58

Browse files
authored
Add missing validate check (#2372)
This branch was missed when adding the validate config
1 parent 35b8f99 commit 8656b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Confluent.SchemaRegistry.Serdes.Json/JsonDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public override async Task<T> DeserializeAsync(ReadOnlyMemory<byte> data, bool i
251251
{
252252
string serializedString = jsonReader.ReadToEnd();
253253

254-
if (schema != null)
254+
if (schema != null && validate)
255255
{
256256
var validationResult = validator.Validate(serializedString, schema);
257257

0 commit comments

Comments
 (0)