rust-ldn / rust-hack-and-learn

Coordination repository for the remote "Hack & Learn" event
MIT License
46 stars 5 forks source link

[Project proposal] JSON Schema Bindgen #3

Closed ccouzens closed 3 years ago

ccouzens commented 3 years ago

Project name: JSON Schema Bindgen Project details: A build.rs script that when given a JSON schema object, can generate corresponding Rust structs and enums. There are projects that go from Rust structs to JSON schema (eg schemars) and crates that validate JSON objects against a schema. But I don't believe there are Rust projects for generating Rust code from a schema. This Reddit post describes what I was thinking.

Short bio: I've used Rust non-professionally for a couple years now. I have an interest in OpenAPI schemas, which utilize JSON schemas. Looking for: A couple other team-mates would be good I think. If you know your way around Rust that would be good. But I wouldn't mind if you're less experienced and want to use this to learn.

ccouzens commented 3 years ago

Huh, just found this already exists https://github.com/Marwes/schemafy/

I'll close my idea