News for hackers. Stuff that matters.
Re:Robust APIs Are Weird by yegle on Saturday June 20, 2020 @03:52AM (#23582510)
So just use protobuf/thrift as the payload, problem solved.
Re:Robust APIs Are Weird by morelisp on Saturday June 20, 2020 @07:11AM (#23583260)
protobuf still requires a schema to distinguish between 1 and true.
Re:Robust APIs Are Weird by lmz on Saturday June 20, 2020 @07:36AM (#23583351)
Their example of asn.1 also needs a schema.
Re:Robust APIs Are Weird by morelisp on Saturday June 20, 2020 @07:39AM (#23583361)
No, ASN.1 has separate boolean, integer, and enumeration types, as well as separate "printable string" and "octet sequence" types.
Re:Robust APIs Are Weird by wwright on Saturday June 20, 2020 @07:47AM (#23583393)
Yes, which makes it a schema
Re:Robust APIs Are Weird by morelisp on Saturday June 20, 2020 @07:53AM (#23583418)
OK, then what term would you like me to use to mean "the thing protobuf uses to define messages, commonly called a schema, that lives outside the encoded data itself"? The point is that ASN.1 can do certain things without it which protobuf cannot.