Fix dict body validation

This commit is contained in:
2025-10-16 20:51:19 +03:00
parent b724e3c5dd
commit d4d7a68d7a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[project]
name = "megasniff"
version = "0.2.5.post1"
version = "0.2.5.post2"
description = "Library for in-time codegened type validation"
authors = [
{ name = "nikto_b", email = "niktob560@yandex.ru" }

View File

@@ -20,7 +20,7 @@ if not isinstance({{from_container}}, dict):
{% endif %}
for k_{{hashname(unwrapping)}}, v_{{hashname(unwrapping)}} in {{from_container}}.items():
{{ render_unwrap(unwrapping.key_unwrap, 'k_' + hashname(unwrapping), 'k_' + hashname(unwrapping)) | indent(4) }}
{{ render_unwrap(unwrapping.value_unwrap, into_container + '[v_' + hashname(unwrapping) + ']', 'v_' + hashname(unwrapping)) | indent(4) }}
{{ render_unwrap(unwrapping.value_unwrap, 'v_' + hashname(unwrapping), into_container + '[v_' + hashname(unwrapping) + ']') | indent(4) }}
{%- endset %}
{{out}}
{%- endmacro %}