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

specs: clarify union and unknown data types #349

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

bnewbold
Copy link
Contributor

@bnewbold bnewbold commented Oct 3, 2024

tl;dr:

  • union definition was already good, but word it more strongly, and explicitly say token strings are not valid (I had been fuzzy on this)
  • unknown needs to be an object. It can't be things like a blob, link, or bytes, even though those are "objects" in JSON encoding.

Also recommend against using unknown in records, to give us some wiggle room about strict data validation. AKA, we haven't really defined or enforced some of the corner cases around "generic data validation".

Closes: #317
Closes: #319

@arcalinea arcalinea temporarily deployed to bnewbold/clarify-union-unknown - atproto-website PR #349 October 3, 2024 01:34 — with Render Destroyed
@bnewbold bnewbold merged commit 0c1b2c9 into main Oct 3, 2024
@bnewbold bnewbold deleted the bnewbold/clarify-union-unknown branch October 3, 2024 02:24
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

Successfully merging this pull request may close these issues.

specs: clarify what can go in unknown: objects? blobs? anything? specs: clarify what data types can appear in a union (object only, or token/ref allowed)
3 participants