Refuse an options object with a key the call doesn't take: { serach: "x" } or
{ levle: "kreis" } used to be ignored silently, so the call answered with the whole
catalogue or the default level, which reads as a filtered answer. Own keys only, so a
__proto__ or constructor key (from JSON.parse) is caught too. Throws
RegionalatlasValidationError (Invalid <name>: unknown key "serach" (did you mean "search"?); known keys: theme, year, search.). Nothing is sent for these keys —
regionalatlas filters on the client — so there is no opt-out: an unknown key can only
be a mistake.
Refuse an options object with a key the call doesn't take:
{ serach: "x" }or{ levle: "kreis" }used to be ignored silently, so the call answered with the whole catalogue or the default level, which reads as a filtered answer. Own keys only, so a__proto__orconstructorkey (from JSON.parse) is caught too. ThrowsRegionalatlasValidationError(Invalid <name>: unknown key "serach" (did you mean "search"?); known keys: theme, year, search.). Nothing is sent for these keys — regionalatlas filters on the client — so there is no opt-out: an unknown key can only be a mistake.