search-backend: validate query string

Ensures that known query params accepted by the search endpoint have
the correct type after parsing

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
MT Lewis
2022-01-18 12:27:14 +00:00
parent 6680853e0c
commit cd6854046e
4 changed files with 88 additions and 13 deletions
+5 -1
View File
@@ -21,13 +21,17 @@
},
"dependencies": {
"@backstage/backend-common": "^0.10.4-next.0",
"@backstage/config": "^0.1.11",
"@backstage/errors": "^0.2.0",
"@backstage/search-common": "^0.2.0",
"@backstage/plugin-search-backend-node": "^0.4.4",
"@backstage/types": "^0.1.1",
"@types/express": "^4.17.6",
"express": "^4.17.1",
"express-promise-router": "^4.1.0",
"winston": "^3.2.1",
"yn": "^4.0.0"
"yn": "^4.0.0",
"zod": "^3.11.6"
},
"devDependencies": {
"@backstage/cli": "^0.12.0-next.0",