Restrict company imports to GitHub and zip packages
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -120,10 +120,6 @@ export type CompanyPortabilitySource =
|
||||
rootPath?: string | null;
|
||||
files: Record<string, string>;
|
||||
}
|
||||
| {
|
||||
type: "url";
|
||||
url: string;
|
||||
}
|
||||
| {
|
||||
type: "github";
|
||||
url: string;
|
||||
|
||||
@@ -123,10 +123,6 @@ export const portabilitySourceSchema = z.discriminatedUnion("type", [
|
||||
rootPath: z.string().min(1).optional().nullable(),
|
||||
files: z.record(z.string()),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal("url"),
|
||||
url: z.string().url(),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal("github"),
|
||||
url: z.string().url(),
|
||||
|
||||
Reference in New Issue
Block a user