Problem/Motivation

When returning an integer (and properly also floats), it is returned as a string in the response. This should be returned as an integer.

Proposed resolution

We should properly use an IntegerFormatter for integers and a DecimalFormatter for decimal and floats like Drupal Core.

Comments

NicklasMF created an issue. See original summary.

  • LupusGr3y committed cd98905b on 1.0.x
    Issue #3439761 by NicklasMF, LupusGr3y: Integers are returned as strings
    
lupusgr3y’s picture

Added IntegerTransformer, FloatTransformer, IntegerFormattedTransformer and DecimalFormattedTransformer.

lupusgr3y’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.