Equality checks for NSIDs #1141
-
The spec for NSIDs permits upper and lowercase letters for both the authority and name segments. Given that domain names are case-insensitive and generally normalized to lowercase, should the following two NSIDs be considered equal?
Are both of these legal NSIDs? I assume that the name should be treated as case-sensitive, since it may identify a method and most languages will permit both |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Good question! We are working on formalizing our NSID specification a bit. Current thinking is:
The NSIDs embedded in record paths, inside records, and inside AT-URIs inside records, are the most important parts to get correct. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the detailed reply, @bnewbold! What you outlined sounds reasonable. I'll proceed with treating the example NSIDs in my original post as being equal (case-insensitive comparison). |
Beta Was this translation helpful? Give feedback.
-
We addressed these questions, at least indirectly, in an updated spec document: https://atproto.com/specs/nsid Going to convert this issue to a discussion, as it is helpful to keep around! |
Beta Was this translation helpful? Give feedback.
Good question! We are working on formalizing our NSID specification a bit.
Current thinking is:
The…