···14141515// Interface type for a resolver or container of lexicon schemas, and methods for validating generic data against those schemas.
1616type Catalog interface {
1717- // Looks up a schema refrence (NSID string with optional fragment) to a Schema object.
1717+ // Looks up a schema reference (NSID string with optional fragment) to a Schema object.
1818 Resolve(ref string) (*Schema, error)
1919}
2020
+1-1
atproto/lexicon/lexicon.go
···1717 StrictRecursiveValidation
1818)
19192020-// Combination of agument flags for less formal validation. Recommended for, eg, working with old/legacy data from 2023.
2020+// Combination of argument flags for less formal validation. Recommended for, eg, working with old/legacy data from 2023.
2121var LenientMode ValidateFlags = AllowLegacyBlob | AllowLenientDatetime
22222323// Represents a Lexicon schema definition
+1-1
atproto/lexicon/testdata/catalog/query.json
···22 "lexicon": 1,
33 "id": "example.lexicon.query",
44 "revision": 1,
55- "description": "exersizes many lexicon features for the query type",
55+ "description": "exercizes many lexicon features for the query type",
66 "defs": {
77 "main": {
88 "type": "query",
+1-1
atproto/lexicon/testdata/catalog/record.json
···22 "lexicon": 1,
33 "id": "example.lexicon.record",
44 "revision": 1,
55- "description": "exersizes many lexicon features for the record type",
55+ "description": "exercizes many lexicon features for the record type",
66 "defs": {
77 "main": {
88 "type": "record",
+1-1
atproto/repo/mst/encoding.go
···5252 return &nd, nil
5353}
54545555-// Transforms `Node` stuct to `NodeData`, which is the format used for encoding to CBOR.
5555+// Transforms `Node` struct to `NodeData`, which is the format used for encoding to CBOR.
5656//
5757// Will panic if any entries are missing a CID (must compute those first)
5858func (n *Node) NodeData() NodeData {
+2-2
cmd/collectiondir/README.md
···33333434`listCollections` returns JSON with a map of collection name to approximate number of dids implementing it.
3535With no `c` parameter it returns all known collections with cursor paging.
3636-With up to 20 repeated `c` paramaters it returns only those collections (no paging).
3636+With up to 20 repeated `c` parameters it returns only those collections (no paging).
3737It may be the cached result of a computation, up to several minutes out of date.
3838```json
3939{"collections":{"app.bsky.feed.post": 123456789, "some collection": 42},
···5353it then calls the collection directory for a list of repos which may have already created data in this collection,
5454and does `getRepo` calls to those repo's PDSes to get prior data.
5555By the time it is done paging forward through the collection directory results and getting those repos,
5656-it will have backfilled data and new data it has collected live off the firehose.5656+it will have backfilled data and new data it has collected live off the firehose.
+1-1
cmd/collectiondir/serve.go
···486486}
487487488488// return cached collection stats if they're fresh
489489-// return new collection stats if they can be calculated quicly
489489+// return new collection stats if they can be calculated quickly
490490// return stale cached collection stats if new stats take too long
491491// just wait for fresh stats if there are no cached stats
492492// stalenessAllowed is how old stats can be before we try to recalculate them, 0=default of 5 minutes