mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 15:40:10 +00:00
Fix Workflow Validation error when node pack 'unknown' version (#3179)
This commit is contained in:
@@ -155,9 +155,10 @@ const zAuxId = z
|
||||
)
|
||||
.transform(([username, repo]) => `${username}/${repo}`)
|
||||
|
||||
const zSemVer = z
|
||||
.string()
|
||||
.regex(semverPattern, 'Invalid semantic version (x.y.z)')
|
||||
const zSemVer = z.union([
|
||||
z.string().regex(semverPattern, 'Invalid semantic version (x.y.z)'),
|
||||
z.literal('unknown')
|
||||
])
|
||||
const zGitHash = z.string().regex(gitHashPattern, 'Invalid Git commit hash')
|
||||
const zVersion = z.union([zSemVer, zGitHash])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user