HomePhabricator

Tweak JSON-LD support to generate more idiomatic JSON-LD

Description

Tweak JSON-LD support to generate more idiomatic JSON-LD

Lean on the @context more to generate shortnames for fields and
hoist @type declarations so that the actual node objects are as
concise as possible. These structures are semantically equivalent
to the previous markup, but should download quicker and be easier
for consumers to use.

Bug: T44063
Bug: T164655
Change-Id: I45294572607926b68c60c9c2c0f306b8c8d14bc3

Details

Provenance
cscottAuthored on Oct 13 2017, 3:33 PM
Parents
R1907:6acdf009901e: Add new test case exercising conflicting types for a property
Branches
Unknown
Tags
Unknown
ChangeId
I45294572607926b68c60c9c2c0f306b8c8d14bc3