-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jesse's database depends on the CWD => changing it breaks jesse #50
Comments
the canonical keys refactoring are related to #13 (comment) as for the behaviour, it is correct (though I agree the function docs should be updated). because jesse didn't support Makes sense? If so, please close the issue. If not, fire away. Thanks! |
I think better words would be
Now this is a bug :) because the 5th expression (note the quotes) should have succeeded. Because there is a schema with an id "key". There's a bug in |
@andreineculau : not sure I get why has to call jesse:add_schema/2 with an atom and then jesse:validate/2 with a string instead to mean the same schema? Seems rather counter-intuitive? Other than that, yes, that solves the issue, thanks :) |
the difference is not so much in atom vs list, but in SourceKey vs Id, that is lookup schema via how it was loaded, or via its id value (property), and the id can only be a string. As per the spec, all keys should be "strings", but in reality it accepts anything that can converted to a string (if memory holds true it's for keeping some backwards compatibility). |
I believe #59 would also cover this case. Closing. |
It seems that starting from 820d0e9#diff-06b055de1c1c5e19892ec0ef0a7d057f, jesse stores schemas in its database using canonical keys, which, unfortunately, depend on the current working directory (see
jesse/src/jesse_state.erl
Line 345 in 718d95d
In particular, that means this:
which I think should be regarded as a bug?
Two questions here:
Thanks! :)
The text was updated successfully, but these errors were encountered: