Defect #7170

Custom attribute in REST response breaks ActiveResource

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

Status:ClosedStart date:2010-12-24
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
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 ;)

History

#1 Updated by Yohann Monnier almost 7 years ago

Maybe these attributes could be optional ?

OR

We could unactivate it through a parameter..

#2 Updated by Jean-Philippe Lang almost 7 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.

Also available in: Atom PDF