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

What is the correct type of Parameter static option #113

Closed
Konafets opened this issue Oct 21, 2016 · 0 comments
Closed

What is the correct type of Parameter static option #113

Konafets opened this issue Oct 21, 2016 · 0 comments

Comments

@Konafets
Copy link
Contributor

Konafets commented Oct 21, 2016

The service description knows a static option. From the header doc:

static: (bool) Set to true to specify that the parameter value cannot be changed from the default.

However, in the UnitTests the static option gets a string static! assigned.

Proposal: If static is boolean, we should change the test and also change the method name from getStatic() to isStatic().

The service description definition clearly defines static as type of boolean.

Konafets added a commit to Konafets/guzzle-services that referenced this issue Oct 21, 2016
The service description definition at http://guzzle3.readthedocs.io/_downloads/guzzle-schema-1.0.json defines the option `static` as boolean. Until now the option was handled internally as a string. This patch change the internal usage to boolean.

Closes: guzzle#113
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

No branches or pull requests

1 participant