-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checklist metadata input validation on export (#5902)
* checklist metadata input validation on export Signed-off-by: kemley76 <[email protected]> * update lock file * added @types/validator Signed-off-by: kemley76 <[email protected]> * move throwIfInvalid() to not be inline Signed-off-by: kemley76 <[email protected]> * remove @types/validator from devDependencies Signed-off-by: kemley76 <[email protected]> * validate all metadata fields on checklist metadata Signed-off-by: kemley76 <[email protected]> * Merge branch 'master' into ckl-metadata-validation Signed-off-by: kemley76 <[email protected]> * refactor nested template strings Signed-off-by: kemley76 <[email protected]> * refactor checklist metadata validation assertions Signed-off-by: kemley76 <[email protected]> * cleaned up input validation error messaging on ckl export modal Signed-off-by: Kaden Emley <[email protected]> * restrict number inputs to positive integers in ckl export modal Signed-off-by: Kaden Emley <[email protected]> * added combined ckl metadata validation methods into single helper method Signed-off-by: Kaden Emley <[email protected]> * remove repeated imports of the same file Signed-off-by: Kaden Emley <[email protected]> * Merge branch 'master' into ckl-metadata-validation Signed-off-by: Kaden Emley <[email protected]> * minor formatting change Signed-off-by: Kaden Emley <[email protected]> * make checklist metadata date validator accept more formats Signed-off-by: Kaden Emley <[email protected]> * swapped error message for format hint in ckl export modal Signed-off-by: Kaden Emley <[email protected]> * move vul id mapping info icon to allow dropdown arrow to show Signed-off-by: Kaden Emley <[email protected]> * refine integer constraints on checklist export modal fields Signed-off-by: Kaden Emley <[email protected]> * move metadata validation functions into util file Signed-off-by: Kaden Emley <[email protected]> * add test to ensure errors are thrown upon using invalid checklist metadata Signed-off-by: Kaden Emley <[email protected]> * remove unused import Signed-off-by: Kaden Emley <[email protected]> --------- Signed-off-by: kemley76 <[email protected]> Signed-off-by: Kaden Emley <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e01b077
commit 63b42a3
Showing
12 changed files
with
786 additions
and
28 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
Oops, something went wrong.