motionbank / piecemaker2-api

An api at the core of piecemaker
7 stars 0 forks source link

JSON return event.fields structure is an array should be an hash #108

Open fjenett opened 10 years ago

fjenett commented 10 years ago

GET /group/:gid/events used to return

{
    ... event attr ...,
    fields : {
        key1 : value1,
        key2 : value2
    }
}

and now after changes for issue #105 returns

{
    ... event attr ...,
    fields : [
        { id : key1, value : value1 },
        { id : key2, value : value2 }
    ]
}
fjenett commented 10 years ago

Correction: it always used to be as it is now but it should have been different from the start ... :)

fjenett commented 10 years ago

For ref: https://github.com/motionbank/piecemaker2-api/issues/54

fjenett commented 10 years ago

Ok, added a workaround to motionbank/piecemaker-api-client for now ... but in general it would be better to fix here.