scheme_filler
scheme_filler
is a CLI tool that helps you populate an OpenAPI 3.0.0 schema with example values.
It does so by accepting an HAR file and a schema file, and then generating a new schema file with the example values.
Installation
From Source
- Install Crystal
git clone
this repocd
into the reposhards build
Docker Image
- clone the repo
cd
into the repodocker build -t neuralegion/scheme_filler .
Usage
Binary
bin/scheme_filler <scheme_file> <har_file>
will generate a new schema file with the example values.
Docker
docker run -v <path_to_schema_file>:/tmp/schema.json -v <path_to_har_file>:/tmp/har.json neuralegion/scheme_filler /tmp/schema.json /tmp/har.json
will generate a new schema file with the example values.
Contributing
- Fork it (https://github.com/NeuraLegion/scheme_filler/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Bar Hofesh - creator and maintainer