mirror of
https://github.com/kennethnym/aris.git
synced 2026-04-17 23:31:17 +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:
@@ -9,6 +9,7 @@ export interface WeatherSourceProviderOptions {
|
||||
}
|
||||
|
||||
export const weatherConfig = type({
|
||||
"+": "reject",
|
||||
"units?": "'metric' | 'imperial'",
|
||||
"hourlyLimit?": "number",
|
||||
"dailyLimit?": "number",
|
||||
|
||||
Reference in New Issue
Block a user