You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using rfl 0.19, but the change notes in the recent versions didnt indicate anything about this behaviour would have changed.
I'm working on a Qt based project trying to reflect QString. So I wrote this based on the example in the docs:
This works fine for parsing/writing, but does not seem to work for the schema generation:
structRflTest {
QString test_string;
};
auto a = RflTest{ "AAAAAH" };
auto json_a = rfl::json::write(a);
qDebug() << QString::fromStdString(json_a); // Output: "{\"test_string\":\"AAAAAH\"}"auto b = rfl::json::read<RflTest>(json_a);
qDebug() << b.value().test_string; // Output: "AAAAAH"auto schema = rfl::json::to_schema<RflTest>(); // breaks during compilation: "static_assert failed: 'Unsupported type'"qDebug() << QString::fromStdString(schema);
Is there an additional function that can be overwritten for the Reflector? Or is extending the schema beyond the default types not supported as of now?
Thank you for your work, this library is wildly impressive
Activity
liuzicheng1987 commentedon Oct 8, 2025
All right, I'll take a look.
liuzicheng1987 commentedon Oct 19, 2025
@Wittypal , issue is resolved. Thanks for flagging this!
Added support for JSON schemata for the Reflector type; fixes munich-…