What's a schema?

You can find good explanations here:

http://json-schema.org/examples.html

https://spacetelescope.github.io/understanding-json-schema/about.html

Why?

The purpose of using a schema is to achieve transparency on the data feed level, by allowing developers to create valid JSON feeds, benefiting from their IDE's intellisense.

Example

The following is a feed JSON example:


{
  "updated": "2018-04-19T14:58:13z+0300",
  "link": {
    "type": "atom",
    "rel": "self",
    "href": "applicaster://fetchData?type=APPLICASTER_COLLECTION&accountId=xxx&collectionId=yyy"
  },
  "id": "1",
  "ui_tag": "reshet_first_live",
  "content": {
    "src": "applicaster://fetchData?type=APPLICASTER_COLLECTION&accountId=xxx&collectionId=yyy"
  },
  "title": "Reshet First Live Channel",
  "entry": [
    {
      "updated": "2018-04-19T14:58:13z+0300",
      "content": {
        "type": "video/hls"
      },
      "author": {
        "name": "applicaster"
      },
      "id": "1",
      "title": "Reshet 13 Live",
      "media_group": [
        {
          "type": "image",
          "media_item": [
            {
              "src": "",
              "key": "channel_logo_thumbnail",
              "type": "image"
            }
          ]
        }
      ],
      "type": {
        "value": "channel"
      },
      "extensions": {
        "free": true
      }
    }
  ],
  "author": {
    "name": "applicaster"
  },
  "type": {
    "value": "feed"
  }
}

Versions

v1.0

results matching ""

    No results matching ""