Hello everyone, I’m currently finishing a backend project for communicating with serial/UDP devices.
I’ve successfully generated an API spec for the REST API, and for WebSockets, I’m planning to use Schemars to export the API for users.
Schemars worked well for exporting my Enum Component, which contains categories like Component > Commands > Payload.
Does anyone know how to use the generated schema.json to recreate enum fields, similar to how we use them when writing code in Rust?
I’ve tried an automatic load approach, but certain parts had to be implemented manually for each field.
Hello everyone, I’m currently finishing a backend project for communicating with serial/UDP devices. I’ve successfully generated an API spec for the REST API, and for WebSockets, I’m planning to use Schemars to export the API for users.
Schemars worked well for exporting my Enum Component, which contains categories like Component > Commands > Payload.
Does anyone know how to use the generated schema.json to recreate enum fields, similar to how we use them when writing code in Rust?
I’ve tried an automatic load approach, but certain parts had to be implemented manually for each field.
Schemars generated schema.json