Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13182

Make sure _meta and _links are mandatory output in the PMA for page, components and content

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.2.0
    • None
    • 0.5
    • Quasar
    • Puma Sprint 232, Puma Sprint 233

    Description

      We currently have

      @JsonProperty("_links")
      @JsonInclude(Include.NON_NULL)
      public Map<String, LinkModel> getLinksMap() 
      

      and

      @JsonProperty("_meta")
      @JsonInclude(Include.NON_NULL)
      public Map<String, Object> getMetadataMap() 
      

      Since the SPA SDK wants to assume _links and _meta are always there, it seems we need to remove '@JsonInclude(Include.NON_NULL)' and also add a unit test to confirm that if link map is null or metaDataMap is null, the PMA still contains _links and _meta

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: