mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 01:08:28 +02:00
Add previewArgs support for template functions and enhance validation logic for form inputs
This commit is contained in:
@@ -758,6 +758,10 @@ pub struct TemplateFunction {
|
||||
#[ts(optional)]
|
||||
pub aliases: Option<Vec<String>>,
|
||||
pub args: Vec<TemplateFunctionArg>,
|
||||
|
||||
/// A list of arg names to show in the inline preview. If not provided, none will be shown (for privacy reasons).
|
||||
#[ts(optional)]
|
||||
pub preview_args: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
/// Similar to FormInput, but contains
|
||||
|
||||
Reference in New Issue
Block a user