Skip to content
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

Fixed Customer API docs with invalid "groups" parameter #9135

Merged
merged 1 commit into from
Mar 9, 2018

Conversation

gorkalaucirica
Copy link
Contributor

Q A
Branch? 1.0 (affects all)
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets no
License MIT

According to the Customer API docs, "groups" fields is expected to be an array while it has a 1 to N relationship in DB, and it does not work if an array is passed.

"group":[

]
"group":{}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be "group":null or "group":"GROUP_CODE" then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the response given by the API right now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we are missing serialization definition of customer groups.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the current behaviour that needs to be documented anyway :)

@Zales0123 Zales0123 added Documentation Documentation related issues and PRs - requests, fixes, proposals. API APIs related issues and PRs. labels Feb 6, 2018
@pamil
Copy link
Contributor

pamil commented Mar 9, 2018

Rebased & build restarted.

@pamil pamil merged commit da05993 into Sylius:1.0 Mar 9, 2018
@pamil
Copy link
Contributor

pamil commented Mar 9, 2018

Thanks Gorka! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs. Documentation Documentation related issues and PRs - requests, fixes, proposals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants