Skip to content
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

Add support for external references #387

Open
BryanHunt opened this issue Mar 12, 2018 · 1 comment
Open

Add support for external references #387

BryanHunt opened this issue Mar 12, 2018 · 1 comment

Comments

@BryanHunt
Copy link

I have several use-cases where a resource has a reference to a resource managed by another server. I can get the reference to work by defining a dummy resource, but it would be nice if there were built in support for this. Maybe something like:

owner: jsonApi.Joi.one('users').external()

@pmcnr-hx
Copy link
Contributor

pmcnr-hx commented Apr 6, 2018

That sound like a very reasonable extension @BryanHunt. We'll be happy to merge support for it if you submit a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants