Lexicons can include length limits for some fields, eg 300 graphemes for app.bsky.feed.post text. The relay (or AppView?) checks length limits in record validation and drops records if any fields are over their limit. We need to handle this in bluesky.to/from_as1.
Ideally we'd bundle the lexicons themselves and look up and use per-field length limits automatically. Not sure I want to go that far though. Alternatively we could do this in lexrpc, with an option to truncate values that are too long.
Lexicons can include length limits for some fields, eg 300 graphemes for
app.bsky.feed.post text
. The relay (or AppView?) checks length limits in record validation and drops records if any fields are over their limit. We need to handle this inbluesky.to/from_as1
.Ideally we'd bundle the lexicons themselves and look up and use per-field length limits automatically. Not sure I want to go that far though. Alternatively we could do this in lexrpc, with an option to truncate values that are too long.