Skip to content

Revert breaking change in HttpClient - #50

Closed
pilotmoon wants to merge 2 commits into
KnpLabs:masterfrom
pilotmoon:master
Closed

pilotmoon wants to merge 2 commits into
KnpLabs:masterfrom
pilotmoon:master

Conversation

@pilotmoon

Copy link
Copy Markdown

This reverts commit 85c2994.

This change breaks issue creation. An array of labels in the parameters to api('issue')->create()

'labels'=>array('label1','label2)

should be encoded as:

"labels":{"label1","label2"}

but with JSON_FORCE_OBJECT it is encoded as

"labels":{"0":"label1","1":"label2"}

which fails validation and results in 422 Unprocessable Entity.

This reverts commit 85c2994.

This change breaks issue creation. An array of labels in the parameters to api('issue')->create()

    'labels'=>array('label1','label2)

should be encoded as:

    "labels":{"label1","label2"}

but with JSON_FORCE_OBJECT it is encoded as

    "labels":{"0":"label1","1":"label2"}

which fails validation and results in 422 Unprocessable Entity.
@pilotmoon

Copy link
Copy Markdown
Author

Closed as duplicate of #48

@pilotmoon pilotmoon closed this Apr 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant