Converts an Avsc schema into a JSON schema
composer require php-kafka/avsc-json-converter
Convert a folder with avsc files into json schema:
./bin/console convert:avsc-to-json avscFolder jsonOutputFolder
Convert a single avsc file to a json schema:
./bin/console convert:single-avsc-to-json avscFolder jsonOutputFolder
--convertOnlyValueSchema
only convert avsc files that end withvalue.avsc
--noDefaultAsRequired
only mark fields with no defaults as required instead of all
This library is very experimental and has the following open issues / tasks