Open adeschamps opened 4 years ago
Ah yes, I use this executable https://github.com/MindFlavor/bpb to convert the .json
files in the skeleton corresponding .rs
.
I should have documented this better but since the code quality of the bpb
tool is abysmal I had hoped to keep it under wraps 🤷♂ ...
I generally use it like this:
bpb class.json | rustfmt > class.rs
It will create the skeleton class with all the builder functions in place (enforcing the mandatory fields). That is if you specify a valid json (and I'm sorry but my error messages and documentation are, ehm, absent...). I will try to at least document the json schema ASAP (https://github.com/MindFlavor/bpb/issues/2).
I'd like to add support for a few more APIs (in particular, Get/Set Blob Metadata). It looks to me like the request builder
.rs
files are generated code from the corresponding.json
files, but I can't find a codegen script anywhere. Is it in the repository?