@@ -294,8 +294,8 @@ def check_for_ref(global_: Dict[str, Any],
294
294
split ('/' )
295
295
except KeyError :
296
296
class_location = \
297
- block ["responses" ][obj ]["schema" ]["items" ]["$ref" ].\
298
- split ('/' )
297
+ block ["responses" ][obj ]["schema" ]["items" ]["$ref" ].\
298
+ split ('/' )
299
299
collection = check_collection (
300
300
schema_obj = block ["responses" ][obj ]["schema" ],
301
301
method = path )
@@ -382,7 +382,8 @@ def get_parameters(global_: Dict[str, Any],
382
382
# check if class has been pared
383
383
if parameter ["schema" ]["$ref" ].split (
384
384
'/' )[2 ] in global_ ["class_names" ]:
385
- param = "vocab:{}" .format (parameter ["schema" ]["$ref" ].split ('/' )[2 ])
385
+ param = "vocab:{}" .format (
386
+ parameter ["schema" ]["$ref" ].split ('/' )[2 ])
386
387
387
388
else :
388
389
# if not go to that location and parse and add
@@ -392,7 +393,8 @@ def get_parameters(global_: Dict[str, Any],
392
393
parameter ["schema" ]["$ref" ]),
393
394
parameter ["schema" ]["$ref" ].split ('/' )[2 ],
394
395
path = path )
395
- param = "vocab:{}" .format (parameter ["schema" ]["$ref" ].split ('/' )[2 ])
396
+ param = "vocab:{}" .format (
397
+ parameter ["schema" ]["$ref" ].split ('/' )[2 ])
396
398
except KeyError :
397
399
param = ""
398
400
@@ -487,7 +489,8 @@ def parse(doc: Dict[str, Any]) -> Dict[str, Any]:
487
489
baseURL = try_catch_replacement (doc , "host" , "localhost" )
488
490
name = try_catch_replacement (doc , "basePath" , "api" )
489
491
schemes = try_catch_replacement (doc , "schemes" , "http" )
490
- api_doc = HydraDoc (name , title , desc , name , "{}://{}" .format (schemes [0 ],baseURL ))
492
+ api_doc = HydraDoc (name , title , desc , name ,
493
+ "{}://{}" .format (schemes [0 ], baseURL ))
491
494
get_paths (global_ )
492
495
for name in global_ ["class_names" ]:
493
496
for prop in global_ [name ]["prop_definition" ]:
0 commit comments