misc: addressed type issue with date fields

This commit is contained in:
Sheen Capadngan
2025-05-18 00:07:03 +08:00
parent 4d95052896
commit ef9269fe10

View File

@@ -275,7 +275,12 @@ export const SanitizedTagSchema = SecretTagsSchema.pick({
});
export const InternalCertificateAuthorityResponseSchema = CertificateAuthoritiesSchema.merge(
InternalCertificateAuthoritiesSchema
InternalCertificateAuthoritiesSchema.omit({
notAfter: true,
notBefore: true
})
).extend({
requireTemplateForIssuance: z.boolean().optional()
requireTemplateForIssuance: z.boolean().optional(),
notAfter: z.string().optional(),
notBefore: z.string().optional()
});