Registry / utility / typify

typify

JSON →
library0.6.2rscratesunverified

JSON schema to rust type code generator.

# Cargo.toml [dependencies] typify = "0.6.2"
INSTALL
IMPORT
SIG · TYPIFY
T
typify
utilityrustv0.6.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TypeSpace
use typify::TypeSpace;

Generate Rust types from a JSON schema.

use typify::TypeSpace; fn main() { let mut ts = TypeSpace::new(); let schema = serde_json::json!({"type": "object", "properties": {"name": {"type": "string"}}}); ts.add_schema(&schema).unwrap(); println!("{}", ts.to_string()); }
Debug
Known issues
gotchaRequires serde_json for schema input.
fix
Add serde_json as a dependency.
affects: >=0.1.0
Upgrade
Version history
0.6.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
typify — cargo add typify · libregistry