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:14PM (#30806593)
(author here, the blog is under an alias) those are serialization formats, they don't allow for defining the physical representation of the data. for instance, you can't write a protobuf schema that de-serializes a .gif header.
Re:Why isn't there a Swagger/OpenAPI for binary formats? by kortex on Friday March 25, 2022 @08:40PM (#30808300)
What exactly do you mean by "defining the physical representation of the data"? Like, "here is a type called uint32, it is a 32 bit little endian unsigned number. Here is struct Foo, it has two uint32 fields". Like, that level of granularity?

Basically Katai struct but can also be used to serialize, not just deserialize?