feat: add zod-deep-partial, partialValidator on InputSpec, and z.deepPartial re-export

This commit is contained in:
Aiden McClelland
2026-02-25 13:35:52 -07:00
parent b466e71b3b
commit 8da9d76cb4
14 changed files with 412 additions and 67 deletions

3
web/package-lock.json generated
View File

@@ -126,7 +126,8 @@
"isomorphic-fetch": "^3.0.0",
"mime": "^4.0.7",
"yaml": "^2.7.1",
"zod": "^4.3.6"
"zod": "^4.3.6",
"zod-deep-partial": "^1.2.0"
},
"devDependencies": {
"@types/jest": "^29.4.0",

View File

@@ -82,7 +82,6 @@ export class StateService {
await this.api.execute({
guid: this.dataDriveGuid,
// @ts-expect-error TODO: backend should make password optional for restore/transfer
password: password ? await this.api.encrypt(password) : null,
name,
hostname,

View File

@@ -1,7 +1,5 @@
import { ISB } from '@start9labs/start-sdk'
export async function configBuilderToSpec(
builder: ISB.InputSpec<Record<string, unknown>>,
) {
export async function configBuilderToSpec(builder: ISB.InputSpec<any>) {
return builder.build({} as any).then(a => a.spec)
}