CLI: Parse profile create
input using zod
#361
Labels
difficulty: 2
foss hack
Clustering all the curated issues for Foss Hack 2024
good first issue
Good for newcomers
priority: medium
scope: cli
Everything related to the CLI
type: enhancement
New feature or request
Description
keyshade/apps/cli/src/commands/profile/create.profile.ts
Lines 70 to 93 in 4bd12f0
After we have taken the input from the users, we would like to validate the data using zod.
Validation types
name
: String containing the charset a-z,A-Z,0-9, and no spacesbaseUrl
: If not empty, then should be a valid URLapiKey
: Should start withks_
and have characters in a-z,A-Z,0-9setDefault
: If specified, should be either true or false.The text was updated successfully, but these errors were encountered: