Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-333

REST endpoints returns a String value regardless of the data type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.2.12
    • 2.2.9
    • delivery
    • None

      Steps to reproduce

      1.  Configure any JCR property with a type Double
      2.  Retrieve such property via Delivery API and see that no type is specified for it

      This seems to cause that, per example, in React SPAs, the values recovered by components and the like is always of type String rather than the defined value.

      Expected results

      Numeric values should be returned without quotation to facilitate handling.

      Actual results

      Values are always returned on String format.

      Workaround

      Data can be casted to the desired type after retrieving the values on the client side

      Development notes

        Acceptance criteria

              chuong.doan Chuong Doan Huy
              rgaona Roberto Gaona
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 2d 0.5h
                    2d 0.5h