diff --git a/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2 b/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2 index 1341571e48..bb6acbadd6 100644 --- a/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2 +++ b/gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/rest.py.j2 @@ -207,7 +207,10 @@ class {{ service.name }}RestTransport({{ service.name }}Transport): {%- if not method.void %} # Return the response - return {{ method.output.ident }}.from_json(response.content) + return {{ method.output.ident }}.from_json( + response.content, + ignore_unknown_fields=True + ) {%- endif %} {%- endif %} {%- endfor %}