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

@@ -9,6 +9,7 @@ export interface WeatherSourceProviderOptions {
}
export const weatherConfig = type({
"+": "reject",
"units?": "'metric' | 'imperial'",
"hourlyLimit?": "number",
"dailyLimit?": "number",