Profile: inset

Profile Schema

An inset document is a document that contains inner content as an aside within an ordered layout list.

Structure

inset documents must have a layout attribute which is represented as a list of link objects. This list is to be considered ordered by publishers, and may link to other CDS assets or documents.

The links in the layout array of inset documents may not have rels.

Example inset document

{
  "id": "12345",
  "profiles": [
    {
      "href": "/v1/profiles/inset",
      "rels": [
        "type"
      ]
    },
    {
      "href": "/v1/profiles/document"
    }
  ],

  "layout": [
    {
      "href": "#/assets/5678"
    }
  ]
}

© 2024 npr