An open API service indexing awesome lists of open source software.

https://github.com/php-kafka/avsc-json-converter

Convert avsc schema to json schema
https://github.com/php-kafka/avsc-json-converter

avro avsc convert converter json schema

Last synced: 5 months ago
JSON representation

Convert avsc schema to json schema

Awesome Lists containing this project

README

          

# Avsc Json Schema converter
Converts an Avsc schema into a JSON schema

## Installation
```bash
composer require php-kafka/avsc-json-converter
```

## Usage
Convert a folder with avsc files into json schema:
```bash
./bin/console convert:avsc-to-json avscFolder jsonOutputFolder
```
Convert a single avsc file to a json schema:
```bash
./bin/console convert:single-avsc-to-json avscFolder jsonOutputFolder
```
### Options
- `--convertOnlyValueSchema` only convert avsc files that end with `value.avsc`
- `--noDefaultAsRequired` only mark fields with no defaults as required instead of all

## Known issues
This library is very experimental and has the following open [issues / tasks](https://github.com/php-kafka/avsc-json-converter/issues)