You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I think it's worth to make a derive macro for decoding and validating KDL. This is a bit different from #17, as that has some specific mapping between KDL and serde structure. And I'm proposing something, more like in clap.
So for this example from help (adjusted a bit):
contents {
section "First section" style="emphasized" {
paragraph "This is the first paragraph"
paragraph "This is the second paragraph"
}
}
And this could serve as both: more convenient structure to work with data and to validate that there are no extra arguments and properties (unless there is an explicit extension point) and types of all arguments and properties are correct.
What do you think?
The text was updated successfully, but these errors were encountered:
Hi! I think it's worth to make a
derive
macro for decoding and validating KDL. This is a bit different from #17, as that has some specific mapping between KDL and serde structure. And I'm proposing something, more like in clap.So for this example from help (adjusted a bit):
You could have structures like:
And this could serve as both: more convenient structure to work with data and to validate that there are no extra arguments and properties (unless there is an explicit extension point) and types of all arguments and properties are correct.
What do you think?
The text was updated successfully, but these errors were encountered: