Closed Pfeil closed 4 years ago
I can confirm that the issue is the fact that the identifier begins with a number, like stated in #35 .
So I added schemafy like this: schemafy = { git = "https://github.com/Marwes/schemafy"}
, but the issue is still there. Am I missing something? This should use the latest commit, right?
You can run cargo update
to ensure it has the latest, and you can check Cargo.lock
to see which git revision it uses to be safe. Not sure what is going on though, not sure I will have a chance to look at it soon
It works with a separate project, even though I tried cargo update on the first project and the cargo lock had the correct commit. I'm a little confused, but probably a clean build or so will solve it. Thanks!
Hi. I just tried this library the first time with a schema from a datatype registry, and the macro panics. I did everything like in https://github.com/Marwes/debugserver-types . The problem is the identifier. "asdf" as identifier makes it work. I believe that the identifier is valid, though. Also, I can not change it (except for this test). Those schemes are already used in other software to validate json files (I think this is one of the libraries that is used for validation: https://github.com/everit-org/json-schema/). This issue is currently not very important/urgent to me, but in case this is really a bug I thought I better report it.
Output of
cargo build
:My schema.json: