Project

General

Profile

Actions

Defect #7170

closed

Custom attribute in REST response breaks ActiveResource

Defect #7170: Custom attribute in REST response breaks ActiveResource

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

Status:
Closed
Priority:
Normal
Assignee:
-
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 ;)

Updated by Yohann Monnier almost 16 years ago Actions #1

Maybe these attributes could be optional ?

OR

We could unactivate it through a parameter..

Updated by Jean-Philippe Lang almost 16 years ago Actions #2

  • 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: PDF Atom