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
Non-nil ID detection for @id tagged structure not working correctly with nested anonymous structs with more than one level
I have identified the bug and will submit a pull request with a fix
Steps to reproduce the issue:
type struct A {
ID quad.IRI `quad:"@id"`
}
type struct B {
A
}
type struct C {
B
}
v := C{}
v.ID = quad.IRI("something") // Not-nil
rules, err := c.rulesFor(rt)
...
id, err := c.idFor(rules, rt, rv, "")
// id == nil
Received results:
See description
Expected results:
id = "<something>"
Output of cayley version or commit hash:
243214c801c26d9b36436ed3d92d4ed18298b309
Environment details:
n/a
The text was updated successfully, but these errors were encountered:
phyrwork
added a commit
to phyrwork/cayley
that referenced
this issue
Aug 25, 2018
Description
Non-nil ID detection for @id tagged structure not working correctly with nested anonymous structs with more than one level
I have identified the bug and will submit a pull request with a fix
Steps to reproduce the issue:
Received results:
See description
Expected results:
Output of
cayley version
or commit hash:Environment details:
n/a
The text was updated successfully, but these errors were encountered: