#include struct Device { int value{}; }; int main() { auto schema = structive::object( structive::field<&Device::value>( structive::key<"value">, structive::unit<"first">, structive::unit<"second">)); static_cast(schema); }