-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(models): require slug for organization and project, better desc…
…riptions
- Loading branch information
Showing
5 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import { z } from 'zod'; | ||
import { urlSchema } from './implementation/schemas'; | ||
import { slugSchema, urlSchema } from './implementation/schemas'; | ||
|
||
export const uploadConfigSchema = z.object({ | ||
server: urlSchema('URL of deployed portal API'), | ||
apiKey: z.string({ | ||
description: | ||
'API key with write access to portal (use `process.env` for security)', | ||
}), | ||
organization: z.string({ | ||
description: 'Organization in code versioning system', | ||
}), | ||
project: z.string({ | ||
description: 'Project in code versioning system', | ||
}), | ||
organization: slugSchema('Organization slug from Code PushUp portal'), | ||
project: slugSchema('Project slug from Code PushUp portal'), | ||
}); | ||
|
||
export type UploadConfig = z.infer<typeof uploadConfigSchema>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters