Page MenuHomePhabricator

JSON validator still allows properties that aren't in the schema if they're inside the sections array
Closed, InvalidPublic

Description

Author: molly.white5

Description:
It appears that maybe the JSON validation doesn't recurse into the child nodes of the sections property.


Version: unspecified
Severity: normal

Details

Reference
bz51062

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:05 AM
bzimport set Reference to bz51062.

You should poke Ori-l about this, IIRC it was an intentional design decision (assuming you're using JsonSchema.php)

(It's also something I'd like for UW :) )

Change 80308 had a related patch set uploaded by Mollywhite:
Bug 51062: Update schema so additional properties aren't allowed.

https://gerrit.wikimedia.org/r/80308

Change 80308 merged by Mollywhite:
Bug 51062: Update schema so additional properties aren't allowed.

https://gerrit.wikimedia.org/r/80308

molly.white5 wrote:

It turns out that this was happening because I needed

"additionalProperties": false

_within_ the sections array of the schema.