avsc null default

node v12.22.12
version: 1.0.0
endpointsharetweet
const a = require("avsc") const demoType = a.Type.forSchema({ type: 'record', fields: [ {name: 'demo', type: ['null', 'string'], default: null} ] }); const demoBuf = demoType.toBuffer({}) demoType.fromBuffer(demoBuf)
Loading…

no comments

    sign in to comment