It's also worth noting CDDL [1], which adds schema-like utility to CBOR (and technically JSON.) We've started to use it in more places where we use CBOR.
[1] https://datatracker.ietf.org/doc/rfc8610/