basimons commented on PR #2672:
URL: https://github.com/apache/avro/pull/2672#issuecomment-2378587383

   I don't know if this is the right place, and maybe I'm doing something 
wrong, but when I run this it doesn't fully work for me.
   
   When I have this record:
   ```json
   
   {
     "namespace": "com.test.avro",
     "type": "record",
     "name": "TestRecordBla",
     "fields": [
       {
         "name": "name",
         "type": "string"
       },
       {
         "name": "test",
         "type": "fixed",
         "size": 16,
         "logicalType": "uuid"
       }
     ]
   }
   ```
   
   It doesn't work for me. The only way I get it to work is:
   ```json
   {
     "namespace": "com.test.avro",
     "type": "record",
     "name": "TestRecordBla",
     "fields": [
       {
         "name": "name",
         "type": "string"
       },
       {
         "name": "test",
         "type": {
           "name": "name",
           "type": "fixed",
           "size": 16,
           "logicalType": "uuid"
         }
       }
     ]
   }
   ```
   
   As when your using the fixed type you also have to provide a name. As stated 
in the docs:
   > Fixed uses the type name "fixed" and supports the following attributes:
       name: a string naming this fixed (required).
   
   Am I missing something, or was this overlooked? I don't think, the name 
requirement makes sense in this specific case, I also don't see it come back 
anywhere in my code.
   
   
   


-- 
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]

Reply via email to