avro4k
avro4k copied to clipboard
fix: Allow value classes and primitive schemas generation
I detected a bug while using a field Map<MyStringValueClass, NestedObject>
. It is not handling well value classes everywhere. By the way I also added tests for primitive schema generation with also primitive schema that are coming from value classes.
It was because of the value class descriptor has not the STRING kind, while the elementDescriptor at index 0 is of STRING kind.