Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ protected JsonMappingException _invalidSchemaDefinition(JavaType type,
public AvroSchema schemaFrom(InputStream in) throws IOException
{
try {
return new AvroSchema(new Schema.Parser().setValidate(true)
return new AvroSchema(new Schema.Parser()
.parse(in));
} finally {
in.close();
Expand All @@ -249,7 +249,7 @@ public AvroSchema schemaFrom(InputStream in) throws IOException
*/
public AvroSchema schemaFrom(String schemaAsString) throws IOException
{
return new AvroSchema(new Schema.Parser().setValidate(true)
return new AvroSchema(new Schema.Parser()
.parse(schemaAsString));
}

Expand All @@ -263,7 +263,7 @@ public AvroSchema schemaFrom(String schemaAsString) throws IOException
*/
public AvroSchema schemaFrom(File schemaFile) throws IOException
{
return new AvroSchema(new Schema.Parser().setValidate(true)
return new AvroSchema(new Schema.Parser()
.parse(schemaFile));
}
}
2 changes: 1 addition & 1 deletion avro/src/test/java/perf/PerfBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected GenericRecord itemToRecord(MediaItem item) throws IOException
}

protected static AvroSchema itemSchema() {
return new AvroSchema(new Schema.Parser().setValidate(true).parse(JVM_SERIALIZERS_SCHEMA_STR));
return new AvroSchema(new Schema.Parser().parse(JVM_SERIALIZERS_SCHEMA_STR));
}

protected static MediaItem buildItem()
Expand Down
5 changes: 5 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Active maintainers:
=== Releases ===
------------------------------------------------------------------------

2.21.1 (not yet released)

#645: (avro) Remove use of Avro `Schema.Parser().setValidate()` to allow
use of Avro core 1.12.1 (2.x)

2.21.0 (18-Jan-2026)

#599: (cbor) Unable to deserialize stringref-enabled CBOR with ignored properties
Expand Down