mirror of
https://github.com/kennethnym/aris.git
synced 2026-04-07 02:21:18 +01:00
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:
@@ -8,6 +8,7 @@ export type TflSourceProviderOptions =
|
||||
| { apiKey?: never; client: ITflApi }
|
||||
|
||||
export const tflConfig = type({
|
||||
"+": "reject",
|
||||
"lines?": "string[]",
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user