darkmsph1t / _spartan

npm project to package & configure common security middleware && add security.js file to code repo
5 stars 0 forks source link

Validation of JSON format in inquirerer #30

Open darkmsph1t opened 6 years ago

darkmsph1t commented 6 years ago

Describe the bug Validation that user input is in correct format (JSON) in the security questionnaire is always seeing the format as being incorrect, even when it is in the correct format. Since JSON is used throughout the security policy, having this functionality operational is essential.

To Reproduce Steps to reproduce the behavior:

Expected behavior

  1. Ability to accurately differentiate between JSON and non-JSON formats and recognize when errors have been corrected
  2. Once in the correct format, proceed to the next question (if applicable)

Screenshots If applicable, add screenshots to help explain your problem. image image image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.