Skip to content

Revert breaking change in HttpClient #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

pilotmoon
Copy link

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