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

Schema validation #3

Closed
23 tasks done
snarfed opened this issue Sep 19, 2023 · 4 comments
Closed
23 tasks done

Schema validation #3

snarfed opened this issue Sep 19, 2023 · 4 comments
Labels

Comments

@snarfed
Copy link
Owner

snarfed commented Sep 19, 2023

In progress in the schema-validation branch.

https://atproto.com/specs/lexicon

TODO:

  • nullable
  • array
  • bytes
  • blob
  • ref
  • union
  • const
  • [ ] default
  • string formats:
    • at-identifier
    • at-uri
    • cid
    • datetime
    • did
    • handle
    • nsid
    • tid
    • record-key
    • uri
    • language
  • int:
    • minimum
    • maximum
    • enum
  • array, bytes:
    • minLength
    • maxLength
@snarfed
Copy link
Owner Author

snarfed commented Jan 27, 2024

Current status: debating whether to try to shoehorn JSON Schema into this or just do it all myself.

@snarfed
Copy link
Owner Author

snarfed commented Mar 16, 2024

Bluesky team leans toward doing it from scratch, not via hacked JSON Schema: bluesky-social/atproto#2102 (comment)

@snarfed snarfed changed the title Finish schema validation Schema validation Jul 10, 2024
@snarfed snarfed added the now label Jul 10, 2024
@snarfed
Copy link
Owner Author

snarfed commented Jul 10, 2024

Started on this in the schema validation branch.

snarfed added a commit that referenced this issue Sep 22, 2024
snarfed added a commit that referenced this issue Sep 23, 2024
…n unknown, token

also add multiformats as a dep

for #3
snarfed added a commit that referenced this issue Sep 24, 2024
snarfed added a commit that referenced this issue Sep 24, 2024
snarfed added a commit that referenced this issue Sep 24, 2024
snarfed added a commit that referenced this issue Sep 24, 2024
snarfed added a commit that referenced this issue Sep 24, 2024
snarfed added a commit that referenced this issue Sep 25, 2024
snarfed added a commit that referenced this issue Sep 25, 2024
snarfed added a commit that referenced this issue Sep 26, 2024
@snarfed
Copy link
Owner Author

snarfed commented Sep 27, 2024

Landed in main! And updated granary, bridgy-fed, etc.

@snarfed snarfed closed this as completed Sep 27, 2024
snarfed added a commit to snarfed/bridgy-fed that referenced this issue Sep 28, 2024
see snarfed/lexrpc#3. I expect this will highlight at least a couple kinds of invalid records that we're currently emitting, eg #1327
snarfed added a commit to snarfed/arroba that referenced this issue Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant