fix: comfyui sdk serde
This commit is contained in:
parent
eb81f106dd
commit
d61e2e8f4c
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue