[Refactor] Extract nodeDefSchema from apiSchema (#2756)

This commit is contained in:
Chenlei Hu
2025-02-27 13:39:23 -05:00
committed by GitHub
parent e380d792c7
commit 1d95d639e9
27 changed files with 226 additions and 217 deletions

View File

@@ -2,7 +2,10 @@
import fs from 'fs'
import path from 'path'
import { ComfyNodeDef, validateComfyNodeDef } from '@/schemas/apiSchema'
import {
type ComfyNodeDef,
validateComfyNodeDef
} from '@/schemas/nodeDefSchema'
const EXAMPLE_NODE_DEF: ComfyNodeDef = {
input: {

View File

@@ -1,7 +1,7 @@
import { createPinia, setActivePinia } from 'pinia'
import { useComboWidget } from '@/composables/widgets/useComboWidget'
import type { InputSpec } from '@/schemas/apiSchema'
import type { InputSpec } from '@/schemas/nodeDefSchema'
jest.mock('@/scripts/widgets', () => ({
addValueControlWidgets: jest.fn()

View File

@@ -1,7 +1,7 @@
import axios from 'axios'
import { useRemoteWidget } from '@/composables/widgets/useRemoteWidget'
import type { ComboInputSpecV2 } from '@/schemas/apiSchema'
import type { ComboInputSpecV2 } from '@/schemas/nodeDefSchema'
jest.mock('axios', () => ({
get: jest.fn()