From 28d3214acd534943d232ee4e57a0ecd96b660925 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 1 Jul 2025 15:04:31 -0300 Subject: [PATCH] Expose type validator from Dictionary and allow testing without error - Now you can get the ContainerTypeValidate from a Dictionary (both for keys and for values). - ContainerTypeValidate exposes a validator function that does not show any error in case of failure. This allows testing values before trying to use them in Dictionary. --- core/variant/container_type_validate.h | 179 +++++++++++++++---------- core/variant/dictionary.cpp | 8 ++ core/variant/dictionary.h | 3 + 3 files changed, 121 insertions(+), 69 deletions(-) diff --git a/core/variant/container_type_validate.h b/core/variant/container_type_validate.h index ba2e9ee926..d533f3ec2d 100644 --- a/core/variant/container_type_validate.h +++ b/core/variant/container_type_validate.h @@ -45,6 +45,116 @@ struct ContainerTypeValidate { Ref