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

[PHP] Fix enum validation in container setters #3534

Merged
merged 2 commits into from
Aug 8, 2016
Merged

[PHP] Fix enum validation in container setters #3534

merged 2 commits into from
Aug 8, 2016

Conversation

arnested
Copy link
Contributor

@arnested arnested commented Aug 5, 2016

When the setter is taking an array as argument we cannot use in_array() to validate if the values are part of the allowed enum values. Instead we use array_diff() for containers now.

When the setter is taking an array as argument we cannot use
`in_array()` to validate if the values are part of the allowed enum
values. Instead we use `array_diff()` for containers now.
@wing328 wing328 added this to the v2.2.1 milestone Aug 5, 2016
@wing328 wing328 modified the milestones: v2.2.1, v2.3.0 Aug 8, 2016
@wing328 wing328 merged commit 39e0e22 into swagger-api:master Aug 8, 2016
@wing328 wing328 modified the milestones: v2.2.2, v2.3.0 Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants