diff --git a/atproto/lexicon/catalog.go b/atproto/lexicon/catalog.go index 7797fad9..524ef81a 100644 --- a/atproto/lexicon/catalog.go +++ b/atproto/lexicon/catalog.go @@ -72,9 +72,8 @@ func (c *BaseCatalog) AddSchemaFile(sf SchemaFile) error { return err } s := Schema{ - ID: name, - Revision: sf.Revision, - Def: def.Inner, + ID: name, + Def: def.Inner, } c.schemas[name] = s } diff --git a/atproto/lexicon/language.go b/atproto/lexicon/language.go index 1eb5bdf0..b2243076 100644 --- a/atproto/lexicon/language.go +++ b/atproto/lexicon/language.go @@ -16,7 +16,6 @@ import ( type SchemaFile struct { Lexicon int `json:"lexicon,const=1"` ID string `json:"id"` - Revision *int `json:"revision,omitempty"` Description *string `json:"description,omitempty"` Defs map[string]SchemaDef `json:"defs"` } diff --git a/atproto/lexicon/lexicon.go b/atproto/lexicon/lexicon.go index 840d2ae7..df0909da 100644 --- a/atproto/lexicon/lexicon.go +++ b/atproto/lexicon/lexicon.go @@ -22,9 +22,8 @@ var LenientMode ValidateFlags = AllowLegacyBlob | AllowLenientDatetime // Represents a Lexicon schema definition type Schema struct { - ID string - Revision *int - Def any + ID string + Def any } // Checks Lexicon schema (fetched from the catalog) for the given record, with optional flags tweaking default validation rules.