Problem/Motivation

Having a Rest export display setting to fields it is possible to select 'raw'. One would expect a boolean / number for those field types.

The boolean are represented by "Off" and "On" strings which seems a double error as those values are configured for the particular field.

Similar for a 'normal' request like curl --header "Accept: application/json" --request GET http://drupal.d8/node/1 where all values are strings.

Where is this stringify all values done?

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

clemens.tolboom’s picture

Title: Rest request does not contain raw values for boolean and number » Rest request does not contain raw values for ie boolean and number
Issue summary: View changes
dawehner’s picture

Issue tags: -views +VDC

The boolean are represented by "Off" and "On" strings which seems a double error as those values are configured for the particular field.

You can configure them to be "boolean" in that configuration form of the field.

R.Muilwijk’s picture

As per comment #2 this is by design?

Wim Leers’s picture

Category: Bug report » Support request
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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