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

Question about the spec #516

Open
raae opened this issue Feb 3, 2021 · 2 comments
Open

Question about the spec #516

raae opened this issue Feb 3, 2021 · 2 comments

Comments

@raae
Copy link
Contributor

raae commented Feb 3, 2021

Should it be possible for a url to match several endpoint?

I always assumed that a url would match one of the schema lists per provider, thus resulting in one and only one endpoint match.

This came up as #514 dictates there could be more than one endpoint match for a url, and that the first one should be preferred.

I am asking so I make the correct assumptions for my plugin gatsby-remark-omebed. I will be digging into the plugin again this spring creating a more generic plugin for remark and building on that for other frameworks as well I hope. I am also open to contribute more here as well if needed.

@iamcal
Copy link
Owner

iamcal commented Feb 3, 2021

This is an oversight in the original spec. A reasonable implementation would be to pick the first match.

@raae
Copy link
Contributor Author

raae commented Feb 3, 2021

Should it be added to the spec?
Should there be a RFC?

Let me know how I can help.

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