Skip to content

Equality checks for NSIDs #1141

Discussion options

You must be logged in to vote

Good question! We are working on formalizing our NSID specification a bit.

Current thinking is:

  • the "domain" parts should be normalized to lower-case (including when the NSID is embedded in an AT-URI)
  • the "name" part is case-sensitive (should not be normalized)
  • for equality and uniqueness checks, case can be ignored on the "name" part, and thus the NSID as a whole
  • there "must" never be multiple schemas from the same authority that differ only by casing (though unclear how this is enforced technically)
  • there "should" never be multiple collections in the same atproto repository (aka, account storage) that differ only by case (again, the burden of enforcement/implementation is unclear)

The…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by bnewbold
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #971 on June 02, 2023 23:36.