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
Originally posted by Yzen90 January 20, 2025
Hello, would it be possible to add an option to make fields required by default when generating a JSON schema?
Something like this:
structMyObject {
structChild {
string a_field;
} child;
};
// Set `child` and `a_field` as required in the generated schema:auto schema = glz::write_json_schema<MyObject, glz::opts{.require_all_fields = true}>();
Thanks
The text was updated successfully, but these errors were encountered:
Discussed in #1571
Originally posted by Yzen90 January 20, 2025
Hello, would it be possible to add an option to make fields required by default when generating a JSON schema?
Something like this:
Thanks
The text was updated successfully, but these errors were encountered: