This commit is contained in:
Fang-Pen Lin
2025-11-07 09:18:28 -08:00
parent 9ee9aa3261
commit 3d58702a4f
2 changed files with 5 additions and 5 deletions
@@ -80,10 +80,10 @@ export const CreateAcmeAccountResponseSchema = z.object({
export const CreateAcmeOrderBodySchema = z.object({
identifiers: z.array(
z.object({
type: z
type: z.enum(Object.values(AcmeIdentifierType) as [string, ...string[]]),
value: z
.string()
.regex(/^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*$/, "Invalid DNS identifier"),
value: z.enum(Object.values(AcmeIdentifierType) as [string, ...string[]])
.regex(/^(?!-)[A-Za-z0-9-]{1,63}(?<!-)(\.(?!-)[A-Za-z0-9-]{1,63}(?<!-))*$/, "Invalid DNS identifier")
})
),
notBefore: z.string().optional(),