2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00

Add more checks

This commit is contained in:
Matthias Mair
2024-08-19 22:55:16 +02:00
parent c26d73036d
commit 3b9d485403
94 changed files with 228 additions and 358 deletions

View File

@ -46,7 +46,7 @@ def top_level_path(path: str) -> str:
key = path.split('/')[1]
if key in SPECIAL_PATHS.keys():
if key in SPECIAL_PATHS:
return key
return GENERAL_PATH
@ -173,7 +173,7 @@ def parse_api_file(filename: str):
The intent is to make the API schema easier to peruse on the documentation.
"""
with open(filename, 'r') as f:
with open(filename) as f:
data = yaml.safe_load(f)
paths = data['paths']