schemafy-cli

Crates.ioschemafy-cli
lib.rsschemafy-cli
version0.1.0
sourcesrc
created_at2020-10-29 13:23:01.211931
updated_at2020-10-29 13:23:01.211931
descriptionCommand line application for generating Rust types from Json Schema
homepage
repositoryhttps://gitlab.com/genesismobo/schemafy-cli
max_upload_size
id306637
size13,111
(irexiz)

documentation

README

schemafy-cli

schemafy-cli is a tool which generates Rust structs from JSON Schema Draft 4 files. Output is dumped to standard output.

Usage:

schemafy-cli <path-to-schema-dir> | tee my_types.rs

or if we want this stuff to be prettier

schemafy-cli <path-to-schema-dir> | rustfmt |  tee my_types.rs

Example:

schemafy-cli ./resources/test | rustfmt | tee ocpp_16.rs
Commit count: 7

cargo fmt