Automatically migrate the API password hash and the lists of clients and domains to be excluded from setupVars.conf

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-01-08 21:21:38 +01:00
parent 1414e0d397
commit f199ac2f08
24 changed files with 376 additions and 305 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ if __name__ == "__main__":
if errs[1] > 0:
print("Found " + str(errs[1]) + " undocumented endpoints")
if errs[2] > 0:
print("Found " + str(errs[2]) + " endpoints not matching specs")
print("Found " + str(errs[2]) + " specs mismatches")
# Exit with an error if there are missing endpoints
if sum(errs) > 0:
+3
View File
@@ -121,6 +121,9 @@ class ResponseVerifyer():
if prop_type is type(None) and yaml_nullable:
return True
# Check if the type is correct using the YAML_TYPES translation table
if yaml_type not in self.YAML_TYPES:
self.errors.append("Property type \"" + yaml_type + "\" is not valid in OpenAPI specs")
return False
return prop_type in self.YAML_TYPES[yaml_type]