| ▲ | danabramov 5 hours ago | ||||||||||||||||||||||
That's a great question! Adding new features is usually not a problem because you can always add optional fields and extend open unions. So, you just change `media: Link | Picture | unknown` to `media: Link | Picture | Video | unknown`. You can't remove things true, so records do get some deprecated fields. Re: updating safely, the rule is that you can't change which records it would consider valid after it gets used in the wild. So you can't change whether some field is optional or required, you can only add new optional fields. The https://github.com/bluesky-social/goat tool has a linting command that instantly checks whether your changes pass the rules. In general it would be nice if lexicon tooling matures a bit, but I think with time it should get really good because there's explicit information the tooling can use. If you have to make a breaking change, you can make a new Lexicon. It doesn't have to cause tech debt because you can make all your code deal with a new version, and convert it during ingestion. | |||||||||||||||||||||||
| ▲ | skybrian 2 hours ago | parent [-] | ||||||||||||||||||||||
Are these just guidelines or is this enforced in some way? I guess readers could validate and skip anything that doesn't match their schema. | |||||||||||||||||||||||
| |||||||||||||||||||||||