Skip to content

Conversation

@vchudnov-g
Copy link
Contributor

  • depend on google-api-core >= 2.10.0 for REST transport
  • use strict to force query string booleans to be JSON encoded in lower case

Fixes #1407

- depend on google-api-core >= 2.10.0 for REST transport
- use `strict` to force query string booleans to be JSON encoded in lower case
@vchudnov-g vchudnov-g requested review from a team as code owners September 8, 2022 23:14
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Sep 8, 2022
@vchudnov-g vchudnov-g added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 8, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 8, 2022
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 9, 2022
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 9, 2022
@parthea parthea merged commit e667406 into googleapis:main Sep 9, 2022
"{{ req_field.field_pb.default_value }}",
{% else %}
{{ req_field.type.python_type(req_field.field_pb.default_value or 0) }},
str({{ req_field.type.python_type(req_field.field_pb.default_value or 0) }}),
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not seem right, and it fails generated unit tests for compute

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that you mention it, yes, I think you're right. This "else" should be an "elseif" specific to bools. Yikes! That was quite an oversight on my part. Thanks for catching it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ensure fields are JSON encoded correctly

3 participants