Modify validation to have a more user friendly API

* Adding a container type to be returned from validate function
* Modifying JsonRulesEngineFactChecker to throw with error information if check addition fails on validation

Signed-off-by: Jussi Hallila <jussi@hallila.com>
This commit is contained in:
Jussi Hallila
2021-10-21 11:48:00 +02:00
parent b2363f3e3b
commit b427f4ba0b
6 changed files with 109 additions and 21 deletions
@@ -31,6 +31,7 @@
},
"dependencies": {
"@backstage/backend-common": "^0.9.0",
"@backstage/errors": "^0.1.2",
"@backstage/config": "^0.1.8",
"@types/luxon": "^2.0.5",
"luxon": "^2.0.2",