fix(backend): reject unknown fields in source config (#88)

Add "+": "reject" to all arktype schemas so undeclared
keys return 400. Sources without a configSchema now
reject the config field entirely at the HTTP layer.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-22 22:45:17 +00:00
committed by GitHub
parent a52addebd8
commit 99c097e503
5 changed files with 118 additions and 20 deletions

View File

@@ -8,6 +8,7 @@ export type TflSourceProviderOptions =
| { apiKey?: never; client: ITflApi }
export const tflConfig = type({
"+": "reject",
"lines?": "string[]",
})