HNHacker News
TopNewBestAskShowJobs

varanauskas

26 karma · joined May 26, 2021

https://tadas.varanauskas.lt
submissionscomments
varanauskas··on OpenAPI v4 (aka Moonwalk) Proposal
OpenAPI uses JSONSchema to define object (e.g. request, response body) schemas, so it would be more accurate to say it:

Extracts the JSONSchema based on path+method+response type from OpenAPI and then converts that to typescript

varanauskas··on OpenAPI v4 (aka Moonwalk) Proposal
I’m trying to achieve generator-less mapping from OpenAPI to Typescript types at https://github.com/varanauskas/oatx
varanauskas··on Ultra-minimal JSON schemas with TypeScript inference
For those wanting to infer Typescript types from JSONSchema itself there is: https://github.com/lbguilherme/as-typed
varanauskas··on Attack campaign involving stolen OAuth tokens issued to third-party integrators
AFAIK according the draft HTTP request signing rfc [1] defines explicit instructions for normalising, serialising and signing HTTP headers (not body). However, you can use an HTTP Digest header for example, that is a hash of the plaintext body to authenticate the body

[1] https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-mes...

varanauskas··on Dislike button would improve Spotify's recommendations
Just to add to this restaurant based allegory, Spotify is like an all you can eat buffet that tries to serve out lots of sodas so you get bloated and don’t eat the expensive stuff they have
varanauskas··on NansAreNumbers – An esoteric data type built of NaNs
String addition = concatenation

String subtraction = ??? => Number subtraction

varanauskas··on FaceTime is coming to Android and Windows via the web
Still I think 2 way calls would benefit customers by reducing lag and Apple by reducing server load if using p2p
varanauskas··on Swiss Covid Certificate – Technical documentation of the swiss Covid certificate
I recently did a write up [1] of the Lithuanian vaccine certificate after finding a flaw on it.

What impressed me was that the verification was done fully offline in a privacy preserving way

[1] https://tadas.varanauskas.lt/posts/forging-lithuanian-vaccin...