Skip to content

Commit 6f959bc

Browse files
committed
Ignorer les clés obsolètes dans l'éditeur
1 parent 658aca7 commit 6f959bc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Core/AdvancedConfigEditor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,15 +329,16 @@ def validate_payload(file_id: str, data: Any) -> tuple[list[str], list[str]]:
329329
return errs, warns
330330

331331
if file_id == "ark":
332+
deprecated_top = {"dependencies", "environment_manager"}
332333
allowed_top = {
333334
"project",
334335
"workspace",
335-
"dependencies",
336-
"environment_manager",
337336
"build",
338337
"plugins",
339338
}
340-
unknown = sorted(k for k in data.keys() if k not in allowed_top)
339+
unknown = sorted(
340+
k for k in data.keys() if k not in allowed_top and k not in deprecated_top
341+
)
341342
if unknown:
342343
warns.append("Unknown top-level keys: " + ", ".join(unknown))
343344

0 commit comments

Comments
 (0)