--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a7193e5d-c061-4550-9aa0-e3f7292274e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
https://github.com/cloudendpoints/endpoints-python/blob/d3fe5f504d8b58714c455d8d42ead1fbedad0bc9/endpoints/endpoints_dispatcher.py#L559
Thanks Rose.
I'm curious about the code forking approach that you mentioned. Are there any examples of how that could be done? Wondering if it'd be a relatively simple change.
On Friday, 18 May 2018 11:09:15 UTC-7, Rose Davidson wrote:
Hi Andrew,I assume from your mention of protorpc that you are using the Python Framework for Endpoints. Protocol buffer messages remove all values which are equal to the default value, on the assumption that the receiving party has a copy of the schema and can put those default values back in. Protorpc does the same thing when parsing and generating JSON.Unfortunately protorpc does not provide any means to distinguish between an explicit default and an implicit default, since as the name suggests it was intended for RPC-style APIs rather than REST-style.There are a number of ways you can work around this limitation, but they would require either adding additional fields to your messages or forking the framework code. Alternatively, you could write your application for App Engine Flex and deploy it using the normal OpenAPI Endpoints support.I hope this helps!Rose DavidsonCloud Endpoints
On Thu, May 17, 2018 at 2:33 PM, Andrew Paugh <andrew...@dialpad.com> wrote:
In json payloads, there's a huge difference between null and empty lists. Despite that, there seems to be no way to distinguish the two in Cloud Endpoints. (Likely because of protorpc?)
If I'm doing a PATCH operation with a repeated StringField called 'phone_numbers', then the following payload should remove all phone numbers:
{
"phone_numbers": []
}
Whereas the following payload should do nothing to the phone numbers:
{
}
However, for both scenarios I see an empty list. Is there anything I can do to identify the second scenario vs the first?
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a7193e5d-c061-4550-9aa0-e3f7292274e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/df60158f-becf-4ce0-833b-f31fcefaa298%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a7193e5d-c061-4550-9aa0-e3f7292274e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endp...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a7193e5d-c061-4550-9aa0-e3f7292274e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a7193e5d-c061-4550-9aa0-e3f7292274e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/df60158f-becf-4ce0-833b-f31fcefaa298%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/a9e16d11-23b7-4269-a4f7-bbf6495092da%40googlegroups.com.