Argus icon indicating copy to clipboard operation
Argus copied to clipboard

Restrict the json schema of medias better

Open hmpf opened this issue 3 years ago • 1 comments

Turns out, json schema is a bit too forgiving. If you send in json with an unknown key, that json will still be valid. To prevent that, '"additionalProperties": false' needs to be a sibling of "properties".

hmpf avatar May 18 '22 09:05 hmpf

We need this to better protect what is in "settings", and to be able to report/log an error when somebody sends in settings with an extra object (imagine a multiple-terabyte large file as a hexdump, say.)

hmpf avatar May 18 '22 09:05 hmpf