mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 19:28:16 +00:00
15 lines
309 B
TypeScript
15 lines
309 B
TypeScript
import { z } from "zod";
|
|
|
|
export const validateAzureAuthField = z
|
|
.string()
|
|
.trim()
|
|
.default("")
|
|
.transform((data) => {
|
|
if (data === "") return "";
|
|
// Trim each ID and join with ', ' to ensure formatting
|
|
return data
|
|
.split(",")
|
|
.map((id) => id.trim())
|
|
.join(", ");
|
|
});
|