Crates.io | schemajen |
lib.rs | schemajen |
version | 0.2.0 |
source | src |
created_at | 2023-04-12 01:30:12.727234 |
updated_at | 2023-04-13 04:23:17.154985 |
description | SchemaJen - Auto-magically infer language bindings given a JSON schema. |
homepage | https://github.com/davnotdev/schemajen |
repository | https://github.com/davnotdev/schemajen |
max_upload_size | |
id | 836484 |
size | 47,172 |
Auto-magically infer language bindings given a JSON schema.
Bridging client and backend is hard. This is especially true if your backend is written in a different language from your client. Schemajen is a tool that makes the process almost painless. Given a JSON request, response, or literally anything, SchemaJen can infer working language bindings.
java.io.Serializable
)Feel free to send in language requests or additional implementations!
You can try the web version of SchemaJen here.
Alternatively, you can also install the CLI version of SchemaJen using cargo.
cargo install schemajen
Being built in Rust, SchemaJen comes as a crate. You can find more on the docs and crate information pages.
use schemajen::*;
// See [`ACCUMULATOR_SUPPORT_LIST`] for string options.
// let mut accumulator = accumulator_choose_with_str("rust");
let mut accumulator = Box::new(RustAccumulator::begin());
let res = generate(&mut accumulator, "MyType", r#"{"a": 10}"#);
res.unwrap();
eprintln!("{}", res);