-
-
Notifications
You must be signed in to change notification settings - Fork 291
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
spec!: add support for several topic matcher types, including URL Pattern #959
base: main
Are you sure you want to change the base?
Conversation
spec/mercure.md
Outdated
* Topic matcher: An expression intended to be matched by one or several topics, | ||
depending on the matcher type. | ||
* Topic matcher type: Several types of matchers **MAY** be supported by the hub. The hub **MUST** support exact matching of topic and **SHOULD** support | ||
matching topics using I-Regexp [@!RFC9485], URL patterns [@!urlpattern] and URI Templates [@!RFC6570] as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say:
should support at least one of the following topic matchers:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll improve this by adding a table.
Link: <https://example.com/.well-known/mercure>; rel="mercure" | ||
|
||
{"@id": "/books/foo", "foo": "bar", "@context": {"@language": "fr-FR"}} | ||
~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nothing has changed there it just got moved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Co-authored-by: Antoine Bluchet <[email protected]>
Co-authored-by: Antoine Bluchet <[email protected]>
Co-authored-by: Antoine Bluchet <[email protected]>
Replaces #831 with a more flexible and future-proof approach.
Summary
topic
query parameter becomesmatch
and now only supports exact matchingmatch{MatchType}
matchRegexp
,matchURLPattern
, andmatchURITemplate
are definedThe official hub will be able to support both the current and new protocols simultaneously (no hard BC break).
TODO: