mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-18 03:02:56 +00:00
feat(api): enhance OpenAPI schema for application endpoints and network validation
- Added new endpoints for application creation, retrieval, and reloading with detailed request and response schemas. - Updated existing network validation schemas to enforce minimum length requirements for network IDs. - Improved OpenAPI documentation to ensure better clarity and validation for application-related operations.
This commit is contained in:
+35915
-24479
File diff suppressed because it is too large
Load Diff
@@ -116,14 +116,10 @@ export const apiCreateNetwork = createSchema
|
|||||||
.required({ name: true })
|
.required({ name: true })
|
||||||
.superRefine(validateNetworkInput);
|
.superRefine(validateNetworkInput);
|
||||||
|
|
||||||
export const apiFindOneNetwork = createSchema
|
export const apiFindOneNetwork = z.object({
|
||||||
.pick({
|
networkId: z.string().min(1),
|
||||||
networkId: true,
|
});
|
||||||
})
|
|
||||||
.required();
|
|
||||||
|
|
||||||
export const apiRemoveNetwork = createSchema
|
export const apiRemoveNetwork = z.object({
|
||||||
.pick({
|
networkId: z.string().min(1),
|
||||||
networkId: true,
|
});
|
||||||
})
|
|
||||||
.required();
|
|
||||||
|
|||||||
Reference in New Issue
Block a user