Crates.io | schemafy-cli |
lib.rs | schemafy-cli |
version | 0.1.0 |
source | src |
created_at | 2020-10-29 13:23:01.211931 |
updated_at | 2020-10-29 13:23:01.211931 |
description | Command line application for generating Rust types from Json Schema |
homepage | |
repository | https://gitlab.com/genesismobo/schemafy-cli |
max_upload_size | |
id | 306637 |
size | 13,111 |
schemafy-cli is a tool which generates Rust structs from JSON Schema Draft 4 files. Output is dumped to standard output.
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