mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
19 lines
400 B
TypeScript
19 lines
400 B
TypeScript
import { z } from 'zod';
|
|
|
|
const httpServiceSpecSchema = z.object({
|
|
environment: z.string(),
|
|
subdomain: z.string(),
|
|
destination: z.object({
|
|
host: z.string(),
|
|
port: z
|
|
.object({
|
|
number: z.number().optional(),
|
|
protocol: z.enum(['http', 'https']).optional(),
|
|
name: z.string().optional(),
|
|
})
|
|
.optional(),
|
|
}),
|
|
});
|
|
|
|
export { httpServiceSpecSchema };
|