タイトル通りではあるが、その言葉全部通じない人も少なからずいるし、そもそもどうやっては書いてない。まずは言葉の定義から順にする:ActivityPubって何、それを使った通信が一体どんなものか、SNS連合とは何なのか、そして最後どうやってそれと通信できたかを述べる。
Dealing with weird keywords in Clojure specs
Recently I’ve been working on a Clojure implementation for ActivityPub. In the process I wanted to use specs, but I ran into a pretty significant problem. Namely the very first line in basically every single ActivityPub JSON object: { "@context": "https://www.w3.org/ns/activitystreams" }
.
Do you see the problem? Well. This JSON will arrive at the server, where it’ll be handled by Cheshire or something along those lines. Point is, keys in JSON maps will end up turned into keywords. Clicked the link? The guide isn’t exactly specific about what can and can’t go into a keyword.
-
Recent Posts
Tags
ahol álmomban jártam ale anime art beer blog clojure code coffee concoct english fansub fest filozófia gaming geek hegymász ipa kaja kocsma kubernetes kultúra lager league of legends literature live magyar politika python rant seven summits stout study travel társadalom ubuntu university weather work zene 就活 日本 日本語 百名山 艦これ