News for hackers. Stuff that matters.
Re:Why isn't there a Swagger/OpenAPI for binary formats? by woodrowbarlow on Friday March 25, 2022 @04:50PM (#30806921)
(author here, the blog is under an alias) ASN.1 is in a similar category to protobuf: it doesn't allow definition of the physical representation of the data. (it does support multiple serialization profiles, but ultimately ASN.1 data can only be serialized in a few different ways.) you can't write an ASN.1 file to parse arbitrary binary formats found in the wild.
Re:Why isn't there a Swagger/OpenAPI for binary formats? by tjalfi on Friday March 25, 2022 @07:11PM (#30807876)
ASN.1's Encoding Control Notation[0] allows bit-level encoding control and can be used to write ASN.1 specifications for existing protocols.

[0] https://en.wikipedia.org/wiki/Encoding_Control_Notation