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
- Host: GitHub
- URL: https://github.com/php-kafka/avsc-json-converter
- Owner: php-kafka
- License: bsd-3-clause
- Created: 2021-11-20T17:54:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-08T20:19:38.000Z (about 4 years ago)
- Last Synced: 2025-07-20T16:45:33.218Z (11 months ago)
- Topics: avro, avsc, convert, converter, json, schema
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)