Page MenuHomePhabricator

Support JSON Reference specification
Closed, DeclinedPublic

Description

The JSON Reference specification defines a notation by which a JSON document may transclude another document by reference. It looks like this:

{ "$ref": "http://example.com/example.json#/foo/bar" }

The JSON Schema specification requires JSON Reference -- it allows one to declare a composite data model that is made up of a combination of JSON Schema primitives and other schema.

Supporting JSON Reference in EventLogging would allow us to build up a model library. For example, we could have a standard definition of a 'user' object, etc.

Both Rob's JsonData library and the json-schema library for Python provide some level of support for JSON Reference. We don't need support in client-side JavaScript; instead, we'll ensure ResourceLoaderSchemaModule dereferences all $refs and emit the fully-expanded schema.


Version: unspecified
Severity: normal
URL: http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-034

Details

Reference
bz45878

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:29 AM
bzimport set Reference to bz45878.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 44937 has been marked as a duplicate of this bug. ***

[moving from MediaWiki extensions to Analytics product - see bug 61946]

Restricted Application edited projects, added Analytics; removed Analytics-Radar. · View Herald TranscriptJun 10 2020, 6:33 AM
Restricted Application edited projects, added Analytics; removed Analytics-Radar. · View Herald TranscriptJun 10 2020, 6:36 AM