mattiabasone commented on code in PR #3624:
URL: https://github.com/apache/avro/pull/3624#discussion_r2688416906
##########
lang/php/test/SchemaTest.php:
##########
@@ -232,6 +232,27 @@ public function test_validate_repeated_aliases(): void
);
}
+ public function test_doc_attribute_on_primitive_fields(): void
+ {
+ $schemaJson = <<<JSON
+ {
+ "type": "record",
+ "name": "fruits",
+ "fields": [
+ {
+ "name": "banana",
+ "type": "string",
+ "doc": "This is a banana"
Review Comment:
I've added a negative test below
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]