mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
feat: add zod-deep-partial, partialValidator on InputSpec, and z.deepPartial re-export
This commit is contained in:
3
web/package-lock.json
generated
3
web/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user