Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: Generate json objects based on jsonschema #341

Open
RaulTrombin opened this issue Sep 12, 2024 · 0 comments
Open

Help: Generate json objects based on jsonschema #341

RaulTrombin opened this issue Sep 12, 2024 · 0 comments

Comments

@RaulTrombin
Copy link

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.

dynamic-form2
Schemars generated schema.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant