|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Compile-time $defs keys for the forms layer's field wrappers. More...
#include <array>#include <concepts>#include <cstddef>#include <string_view>#include <type_traits>#include "../../detail/fixed_string.hpp"Go to the source code of this file.
Compile-time $defs keys for the forms layer's field wrappers.
glaze keys a schema's $defs block by glz::name_v<T> and populates each entry once: auto& def = defs[name_v<val_t>]; if (!def.type) { … }. A glz::meta::name that is the same string for two instantiations therefore makes the second one silently $ref the first one's definition, and a renderer that resolves the $ref reads the wrong payload type.
This header is the single place the forms layer composes those keys, so the rule that keeps them apart is stated once rather than once per wrapper.
Two rules shape what goes into a key:
Definition in file schema_name.hpp.