fix: comfyui sdk serde
This commit is contained in:
@@ -129,14 +129,14 @@ pub enum VariableSyntax {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Template validation result
|
/// Template validation result
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct ValidationResult {
|
pub struct ValidationResult {
|
||||||
pub valid: bool,
|
pub valid: bool,
|
||||||
pub errors: Vec<ValidationError>,
|
pub errors: Vec<ValidationError>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Validation error
|
/// Validation error
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct ValidationError {
|
pub struct ValidationError {
|
||||||
pub path: String,
|
pub path: String,
|
||||||
pub message: String,
|
pub message: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user