Skip to content

Create Validator and Perform Validation on Services (Input Flags)#52

Open
JosephSemrai wants to merge 1 commit intoleopardslab:masterfrom
JosephSemrai:input-validation-cli
Open

Create Validator and Perform Validation on Services (Input Flags)#52
JosephSemrai wants to merge 1 commit intoleopardslab:masterfrom
JosephSemrai:input-validation-cli

Conversation

@JosephSemrai
Copy link

Created helper validator argumentValidator:

  • Validates isString by checking the typeof
  • Validates isNotEmpty by checking that it's not an empty string, that it's not null and that it's not typeof undefined.

Implemented new validator for multiple arguments:

  • image
  • instance
  • name
  • id
  • key
  • value

Copy link
Collaborator

@TRomesh TRomesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to be merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants