Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be8fc2b

Browse files
committed
Work around recursive type in google-bigquery2
1 parent 77b4705 commit be8fc2b

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
api:
22
no_upload_prefix: JobInsertCall
3+
schemas:
4+
RangeValue:
5+
properties:
6+
end: ~
7+
start: ~

etc/api/shared.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ api:
44
# recursive type
55
- analyticsadmin
66
# resursive type
7-
- bigquery
8-
# resursive type
97
- bigtableadmin
108
# redefinition of `Scope`
119
- binaryauthorization

etc/bin/mako-render.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ def merge(a, b, path=None):
372372
if key in a:
373373
if isinstance(a[key], dict) and isinstance(b[key], dict):
374374
merge(a[key], b[key], path + [str(key)])
375+
elif b[key] is None:
376+
del a[key]
375377
else:
376378
# overwrite leafs unconditionally !
377379
if isinstance(a[key], list) and isinstance(b[key], list):

0 commit comments

Comments
 (0)