File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
result = {}
8
8
result_ext = {}
9
+ proto = {}
9
10
10
11
def resources_recurse (resources , resource_type_path ):
11
12
for resource_type in resources .keys ():
@@ -16,7 +17,7 @@ def resources_recurse(resources, resource_type_path):
16
17
if method_id not in result [api ['name' ]]['methods' ]:
17
18
flatpath = resources [resource_type ]['methods' ][method_name ]['flatPath' ] if 'flatPath' in resources [resource_type ]['methods' ][method_name ] else resources [resource_type ]['methods' ][method_name ]['path' ]
18
19
if flatpath .startswith (apidetail ['version' ] + "/" ):
19
- flatpath = "\{ _version\ }" + flatpath [len (apidetail ['version' ]):]
20
+ flatpath = "{" + " _version}" + flatpath [len (apidetail ['version' ]):]
20
21
21
22
result [api ['name' ]]['methods' ][method_id ] = {
22
23
'description' : resources [resource_type ]['methods' ][method_name ]['description' ] if 'description' in resources [resource_type ]['methods' ][method_name ] else '' ,
You can’t perform that action at this time.
0 commit comments