adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
744 stars 752 forks source link

[Teaser][List] Mismatch between :type and @type properties in the JSON #1589

Open jckautzmann opened 3 years ago

jckautzmann commented 3 years ago

For the teaser:

  1. Go to https://aemcomponents.dev/content/core-components-examples/library/page-authoring/teaser.html
  2. Go to section "Call To Action Button"
  3. Click the JSON tab

Note that the :type and @type properties of the action CTA are different:

"actions": [
    {
      "id": "teaser-83a73ada4e-cta-ed267738cb",
      "url": "/content/core-components-examples/library/page-authoring/teaser.html",
      "title": "Call To Action",
      ":type": "nt:unstructured",
      "dataLayer": {
        "teaser-83a73ada4e-cta-ed267738cb": {
          "@type": "core-components-examples/components/teaser/cta",

For the list:

  1. Go to https://aemcomponents.dev/content/core-components-examples/library/page-authoring/list.html
  2. Go to section "Items with Link, Description and Date"
  3. Click the JSON tab

Note that the :type and @type properties of the itesm are different:

      "dataLayer": {
        "list-949c81eff0-item-df1699a779": {
          "@type": "core-components-examples/components/list/item",
          "repo:modifyDate": "2020-01-16T15:15:41Z",
          "dc:title": "Title",
          "xdm:linkURL": "/content/core-components-examples/library/page-authoring/title.html"
        }
      },
      ":type": "core-components-examples/components/page"

Happens with Core Components version 2.16.4.

jckautzmann commented 3 years ago

@adobe export issue to Jira project SITES as Story

github-jira-sync-bot commented 3 years ago

:white_check_mark: Jira issue SITES-746 is successfully created for this GitHub issue.