]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
python: modeling: empty root "object_path" fixed docs-modeling-err-pmiltw/deployments/6998 modeling-errors-improvements
authorAleš Mrázek <ales.mrazek@nic.cz>
Wed, 11 Jun 2025 14:04:22 +0000 (16:04 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Wed, 11 Jun 2025 14:04:22 +0000 (16:04 +0200)
python/knot_resolver/utils/modeling/base_schema.py

index 73cd1d0aa6de20514da708b3cccf2658ab5a7cea..3358de9d7ce2fa2e71f77a179975f9c3d1214389 100644 (file)
@@ -624,7 +624,7 @@ class ObjectMapper:
                 keys = ", ".join((f"'{u}'" for u in unused))
                 raise DataValidationError(
                     f"unexpected extra key(s) {keys}",
-                    object_path,
+                    object_path or "/",
                 )
 
         # validate the constructed value