mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-13 18:05:31 +02:00
chore: update @dokploy/trpc-openapi to version 0.0.14 and swagger-ui-react to version 5.31.2; refactor OpenAPI document handling in swagger.tsx and settings.ts for improved compatibility and clarity
This commit is contained in:
@@ -188,12 +188,26 @@ export const apiResetPostgres = createSchema
|
||||
})
|
||||
.required();
|
||||
|
||||
export const apiUpdatePostgres = createSchema
|
||||
.partial()
|
||||
.extend({
|
||||
postgresId: z.string().min(1),
|
||||
})
|
||||
.omit({ serverId: true });
|
||||
export const apiUpdatePostgres = z.object({
|
||||
postgresId: z.string().min(1),
|
||||
name: z.string().min(1).optional(),
|
||||
appName: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
dockerImage: z.string().optional(),
|
||||
command: z.string().optional(),
|
||||
args: z.array(z.string()).optional(),
|
||||
env: z.string().optional(),
|
||||
databaseName: z.string().min(1).optional(),
|
||||
databaseUser: z.string().min(1).optional(),
|
||||
databasePassword: z.string().optional(),
|
||||
memoryReservation: z.string().optional(),
|
||||
memoryLimit: z.string().optional(),
|
||||
cpuReservation: z.string().optional(),
|
||||
cpuLimit: z.string().optional(),
|
||||
externalPort: z.number().optional(),
|
||||
applicationStatus: z.enum(["idle", "running", "done", "error"]).optional(),
|
||||
environmentId: z.string().optional(),
|
||||
});
|
||||
|
||||
export const apiRebuildPostgres = createSchema
|
||||
.pick({
|
||||
|
||||
Reference in New Issue
Block a user