Link

References

References is used to represent external data sources referred for a story

Format

JSON

{
  "type": "composite",
  "subtype": "references",
  "story-elements": [
    {
      "type": "text",
      "metadata": {
        "name": "Reference Story",
        "url": "http://fancynews.com/story/reference-story",
        "description": "This story was referred for the data",
      },
      "text": "<div>
                <p>Reference Story</p>
                <p>
                  <a href=\"http://fancynews.com/story/reference-story\">This story was referred for the data</a>
                </p>
              </div>",
      "...": "..."
    }
 ]
}

Schema

Key Type
type * String, Value should be composite
subtype * String, Value should be references
story-elements * Array of Object

Reference

Key Type
type * ‘text’
text * String
metadata * Object

Metadata

Key Type
name * string
url * String (URL of reference)
description string