hack/list-swagger-objects.py
52dc4bf9
 import json;
 import sys;
 import string;
 
 if len(sys.argv)!=2:
fd9784a1
 	print("Usage: python hack/list-swagger-objects.py <swagger-spec-location>")
52dc4bf9
 	sys.exit(1)
 
 swagger_spec_location=sys.argv[1]
 
 with open(swagger_spec_location, 'r') as source:
 	for model in json.load(source)["models"]:
 		print(string.lower(model))