Defect #7170

Custom attribute in REST response breaks ActiveResource

Added by Yohann Monnier about 12 years ago. Updated about 12 years ago.

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


Target version:-
Resolution:Wont fix Affected version:


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 ;)


#1 Updated by Yohann Monnier about 12 years ago

Maybe these attributes could be optional ?


We could unactivate it through a parameter..

#2 Updated by Jean-Philippe Lang about 12 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