Bits should be of type string but it currently an array of Bit, could use pattern regex: "^(?:[01]{8} ){X}[01]{Y}$" where Y is the number of bits in the last byte (1-8) and X is the number of whole bytes BEFORE the last byte
N > 0
Y = (N - 1) % 8 + 1
X = (N - Y) / 8
Specifically this bug exists wherever serialize_fromstr_display is used
Bits should be of type string but it currently an array of Bit, could use
pattern
regex: "^(?:[01]{8} ){X}[01]{Y}$" where Y is the number of bits in the last byte (1-8) and X is the number of whole bytes BEFORE the last byte N > 0 Y = (N - 1) % 8 + 1 X = (N - Y) / 8Specifically this bug exists wherever serialize_fromstr_display is used