HomePhabricator

JsonSchemaContent: Fix html rendering of objects and arrays

Authored by Krinkle.

Description

JsonSchemaContent: Fix html rendering of objects and arrays

JsonSchema in MediaWiki core now parses JSON objects as PHP objects
instead of associative arrays (JSON arrays are still PHP arrays).

It was calling objectTable for arrays, and falling back to
stringification for objects. As such neither was parsed properly.

Fix by removing the broken array->object logic and deferring it
to JsonSchema::valueCell.

Bug: T86748
Change-Id: I335ad42bb83917b3bf36ad6ee1c45f4521377c80
(cherry picked from commit 6b0b0a12fdd1c8414bfc40a24282f8570d338fa4)

Details

Committed
oriJan 16 2015, 1:30 AM
Parents
rEEVLc39d56313f6e: Creating new wmf/1.25wmf15 branch
Branches
Unknown
Tags
Unknown
References
refs/changes/63/185363/1
ChangeId
I335ad42bb83917b3bf36ad6ee1c45f4521377c80