Replies: 1 comment 1 reply
-
|
Thanks! I updated the docs. In most cases the function can't error, but in some uses of Glaze writing schemas can error, so it is good to check. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documented call
std::string schema = glz::write_json_schema<my_struct>();doesn't match the current implementation in Glaze.glz::write_json_schema<my_struct>()now returns a typeglz::expected(which is based on `std::expected' ), so you have to use something like this:Beta Was this translation helpful? Give feedback.
All reactions