Rewrite the entire config-related code to allow for changing data without having to restart. Hereby, we greatly reduce code duplication in the TOML routines so we won't have to touch tme in the future when adding additional options.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-01-05 21:30:13 +01:00
parent 8c4b4d7ed5
commit e145d20d28
53 changed files with 2075 additions and 1735 deletions

View File

@@ -45,7 +45,10 @@ if __name__ == "__main__":
if errs[1] == 0:
print(" No missing endpoints\n")
print("Verifying endpoints...")
# Check if endpoints that are in both FTL and OpenAPI specs match
# and have the same response format. Also verify that the examples
# matches the OpenAPI specs.
print("Verifying the individual endpoint properties...")
for path in openapi.endpoints["get"]:
verifyer = ResponseVerifyer(ftl, openapi)
errors = verifyer.verify_endpoint(path)
@@ -70,6 +73,7 @@ if __name__ == "__main__":
if sum(errs) > 0:
exit(1)
# If there are no missing endpoints, exit with success
print("No missing endpoints")
# If there are no errors, exit with success
# (this is important for the CI)
print("Everything okay!")
exit(0)