nodecloud-cli icon indicating copy to clipboard operation
nodecloud-cli copied to clipboard

Create Validator and Perform Validation on Services (Input Flags)

Open JosephSemrai opened this issue 6 years ago • 0 comments

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

JosephSemrai avatar Jan 03 '20 04:01 JosephSemrai