Project

General

Profile

Actions

Defect #7170

closed

Custom attribute in REST response breaks ActiveResource

Added by Yohann Monnier almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

For example in User api :

<users type="array" total_count="3" limit="25" offset="0">

These 3 attributes break the active resource parsing :

can't typecast "1" ....

Déjà vu ;)

Actions #1

Updated by Yohann Monnier almost 14 years ago

Maybe these attributes could be optional ?

OR

We could unactivate it through a parameter..

Actions #2

Updated by Jean-Philippe Lang almost 14 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Redmine offers a way to get responses without these attributes.
See Rest_api#Collection-resources-and-pagination.

Actions

Also available in: Atom PDF