Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-785

SPA endpoints are not returning parameters defined in the template

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • None
    • None

    Description

      templating-definitions and templating-annotations endpoints are ignoring parameters added in the template definition.

      Sample with templating-definitions endpoint:

      The serialisation fails for simple values as well.

      lightmodule/components/template.yaml
      title: My Template
      dialog: lightmodule:components/template
      parameters:
        foo: bar
      
      /.rest/template-definitions/v1/lightmodule:components/template
      {"lightmodule:components/template": {
         "dialog": "lightmodule:components/template",
         "name": "template",
         "id": "lightmodule:components/template",
         "type": "content",
         "title": "My Template",
         "parameters": {"foo":    {
            "blank": false,
            "empty": false
         }}
      }}

       

      Checklists

        Acceptance criteria

        Attachments

          1.
          Implementation Sub-task To Do Unassigned
          2.
          Review Sub-task To Do Unassigned
          3.
          Pre-Integration QA Sub-task To Do Unassigned
          4.
          QA Sub-task To Do Unassigned

          Activity

            People

              Unassigned Unassigned
              miruela Mercedes Iruela
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD