Skip to content

Commit

Permalink
add signature to this schema
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Mar 20, 2024
1 parent 656caf4 commit 31d27f7
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import { z } from "zod";

export const MavenOutputSignatureSchema = z.strictObject({
keyId: z.string(),
password: z.string(),
secretKey: z.string()
});

export const MavenOutputLocationSchema = z.strictObject({
location: z.literal("maven"),
url: z.optional(z.string()),
coordinate: z.string(),
username: z.optional(z.string()),
password: z.optional(z.string())
password: z.optional(z.string()),
signature: z.optional(MavenOutputSignatureSchema)
});

export type MavenOutputLocationSchema = z.infer<typeof MavenOutputLocationSchema>;

0 comments on commit 31d27f7

Please sign in to comment.