-
Notifications
You must be signed in to change notification settings - Fork 2
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
Metadata Usage #16
Comments
Hi! Adding metadata is currently not supported. What's your use case? Off the top of my head, would you expect to be able to do something like the following? #[derive(JsonTypedef)]
#[typedef(metadata = "{codegen_ver: \"2\"}")]
struct Foo {
x: u32,
} |
Hi Thanks for your reply. My use case would be to store additional data for use by the frontend. E.g. a form builder. This would be an idea: #[derive(JsonTypedef)]
#[typedef(metadata = "{codegen_ver: \"2\"}")]
struct Foo {
#[typedef(metadata = "{label: \"X coord\", required: true}")]
x: u32,
} cu |
Alright, I'll come up with something over the weekend. |
Sorry for the delay. I got |
Hello
Schema
does include theMetadata
type. However there is no information on how to use the type other then By default,jtd_derive
doesn't generate any metadata.Does this mean the feature is not supported at all or are there ways to add metadata to a struct?
cu
Roman
The text was updated successfully, but these errors were encountered: