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

Allow to fix validation for parameters with a format #130

Merged
merged 3 commits into from
Jan 19, 2017

Conversation

bakura10
Copy link
Contributor

@bakura10 bakura10 commented Jan 17, 2017

Hi !

Some parameters may have a given type (example: string) in conjunction of a format (such as "date-time").

Currently, passing a DateTime for instance to such fields throw a validation error, because the format is done after validating it. As such conversion change the type of the value (DateTime => string), this PR ensures that this conversion is done before validating.

@bakura10
Copy link
Contributor Author

Never mind, I've been able to find a fix :).

@Konafets
Copy link
Contributor

Konafets commented Jan 18, 2017

Can you rewrite the topic of the PR and add a description about the change?

@bakura10 bakura10 changed the title Add failing test Allow to fix validation for parameters with a format Jan 18, 2017
@bakura10
Copy link
Contributor Author

Sure. Fixed! :)

@Konafets Konafets merged commit 67a90e6 into guzzle:master Jan 19, 2017
@Konafets
Copy link
Contributor

Thank you for your contribution!

@bakura10 bakura10 deleted the fix-format branch January 19, 2017 07:28
@bakura10
Copy link
Contributor Author

Thanks a lot ! Possible to tag ? :p

@Konafets
Copy link
Contributor

Sorry, I dont like to release any tiny change into a new version. You can require the "dev-develop" branch in your composer.json.

@bakura10
Copy link
Contributor Author

bakura10 commented Jan 19, 2017 via email

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.

2 participants