-
Notifications
You must be signed in to change notification settings - Fork 112
AnyOf &schema.Reference{Path: ".."} is broken now #114
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
Comments
Could be this one - 1e0b0e6 |
However, probably more likely that it's related to - 5b33327. |
@omani, could you please share some details on which context you use this schema in. Do you use it with the Does the Reference validators work when they are not inside an AnyOf masks any original error, so to see which error is returned from just: ...
"id": {
Validator: &schema.Reference{
Path: "users",
},
},
... would be super useful. Thanks! |
As an FYI, if you use a if cmp, ok := index.(resource.Compiler); ok { // Used to be schema.Compiler!
cmp.Compile()
} This type-cast is necesarry until #109 is resolved. |
#115 might fix this. |
@omani is this still broken? BTW, I never though about using anyof with a reference. I guess projections could not work with this kind of construct and you don't expect it to right? |
As a FYI, I never tried to reproduce it. |
Adding "help wanted" -- if someone have time to implement a demo-app to confirm this issue, or test if it's fixed, it would be helpful. |
Closing due to inactivity, please re-open if this issue is still valid. |
Hi team,
something happened the last weeks. I've pulled the latest commits and something broke my AnyOf Paths. The code is the following:
"users" and "vents" is defined like always.
the error I get is the following:
this worked for a long time before the latest pull. what happened? I see a commit mentioning schema.AnyOf treating as normal fields or something like that. but what happened here?
The text was updated successfully, but these errors were encountered: