in api/plugins/openapi.py [0:0]
def __init__(self, APIFile):
""" Instantiates an OpenAPI validator given a YAML specification"""
if APIFile.endswith(".json") or APIFile.endswith(".js"):
self.API = json.load(open(APIFile))
else:
self.API = yaml.load(open(APIFile))