-
Notifications
You must be signed in to change notification settings - Fork 64
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
Filter not working as expected #115
Comments
Can you give me an example document that showcases a reference you expect to be passed to the filter function but isn't? |
My email is in my profile. |
@whitlockjc I've deleted my previous comment and emailed you just now :-) |
I don't think this is related but use of Your filter seems to just omit resolving any |
@whitlockjc your thought process went down the same path as mine there, and I removed relativeBase (see the code sample I emailed you) and also tried |
I think I know what is going on now. Basically, there were two issues that were resolved that are contributing to this:
With I get what you're trying to do, you want to create a composite but to do that would be extremely difficult to do because to really allow such a thing, you'd have to merge documents instead of dereference them. Then you have to deal with naming conflicts, etc. I'm open to suggestions. |
Hey,
I'm trying to upgrade to v3.0.0 but there seems to be a change in filter, which I don't know how to work around.
When i say filter, I mean this function:
https://github.com/whitlockjc/json-refs/blob/master/docs/API.md#jsonrefsjsonrefsoptions--object
We used to use this function not exclude certain references from being resolved, see https://github.com/peopledata/td.core/blob/803be57e98516cd5b96ac26295cfa9bacbc971c8/lib/swagger/swaggerResolver.js#L17
Now it appears that that those reference aren't being passed to filter, so we are no longer able to exclude them, and then the resolver is throwing an error.
I know this because I can
console.log
out the objects being passed to filter, < v3 shows the#/
refs being filtered, >= v3 only ever sees./
references passed to filter.Is there a new way that I can stop 'same document' references being resolved?
The text was updated successfully, but these errors were encountered: