Closed johnykov closed 1 year ago
Hi @johnykov. Can you also share your code?
sure, however I'm using avsc indirectly through @kafkajs/confluent-schema-registry
import path from 'path'
import { avdlToAVSCAsync } from '@kafkajs/confluent-schema-registry'
;(async () => {
const avroSchema = await avdlToAVSCAsync(
path.join(__dirname, 'schema/import.avdl')
)
console.log(JSON.stringify(avroSchema, null, 2))
})()
I think I need to re-address the issue to @kafkajs/confluent-schema-registry
sorry :)
Hi, I appreciate your hard work on this library and find it helpful! Great job, thank you. I don't know if this is on purpose or just lacking functionality but when converting IDL to Avro Json notation I've noticed that I'm missing some types. They get lost somewhere along the way. For example, having IDL Avro file:
I get following Avro Schema in the result:
which obviously is not a valid Avro Schema as any tool reading it throws an error of unrecognized types "Double" and "Single".
I would expect to get valid Avro schema which is: