-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Clarify usage or URN for an AsyncAPI spec id #725
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Relates to #718 (not the same) |
It is not very clear to me, by the RFC, that informal URN namespaces should be registered as they already have the Are you sure about that (asking because I have no idea)? |
By RFC 8141, even the informal URN namespace identifiers (NIDs) are meant to be registered with IANA. Section 5.2 says
And section 7.2 says
So even an informal URN would need to be registered and, using a hypothetical informal URN namespace "8", would look something like For what it's worth, I suggest keeping the requirement that the I suggest recommending the I recognize there are several examples of URNs with unregistered NIDs in other products and systems. Those usages were created before RFC8141 obsoleted RFC2141 in 2017. RFC2141 didn't require namespace identifiers to be registered with IANA, while RFC 2611 and RFC 3406 that described the registration process were only "Best current practices" documents. But a new industry standard like AsyncAPI should follow the latest standards-track RFC for URNs and respect the registration requirement. |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
Describe the bug
The documentation of the
id
property of an AsyncAPI spec currently recommends using a URN as anid
(https://www.asyncapi.com/docs/specifications/v2.3.0#A2SIdString).The RFC of URN states that a URN needs to have a registered namespace in order to be valid:
This makes it very hard to provide valid URNs for the
id
property, as one needs to register a URN namespace at IANA.Possible solution
IMHO the recommendation of using a URN should be changed to using an identifier that starts with a reverse-DNS name. Doing so would still make it possible to have unique IDs for AsyncAPI specs while not having to hassle with invalid URNs. Using a reverse-DNS prefixed id is a common pattern.
The text was updated successfully, but these errors were encountered: