-

@ mleku
2025-05-16 17:43:46
i just had "fun" trying to get an openapi spec
https://myanimelist.net/apiconfig/references/api/v2
firstly, they don't even provide a download link for it
i had to trawl through some megabytes of minified json to find the actual swagger.json in it
second, when i extracted it, and my IDE seemed happy with its syntax, openapi-codegen fails to parse it, says some symbol is missing or some shit
and i'm like
guys, guys,
you know the whole point of openapi was to make it so i could just slang out an api client in any language?
the openapi spec is a farce
i use, like almost everyone, a specific language toolkit, and it generates nice, compliant, generatable json or yaml, at your option, that you can use in any other openapi code generator for any language, and it just works
i was getting "huh?" out of the devs who built a javascript one for the shitcoin chain indexer when i asked for the openapi/swagger.json of their thing, and eventually they told me "oh it serves it up at this api"
yeah, like, what is the fucking point of this shit if i am just going to end up writing a fucking http get/post request manually for you to have all this spec shit when i can't even fucking get it to parse
this is also a perfect summary of how i never became a javascript front end dev
i get this thing, and yeah, it works
i change one thing, and kablooey, it's over
ok, try a different template
kablooey
3 months later
"ok, fuck this, this is not a computer programming language this is some secret language that i seem to be incapable of comprehending" and some years later i became an advanced Go programmer, and i still cannot make heads or tails of javascript and anyone who can, well, lucky you but it's just the most byzantine, retarded thing i have ever encountered on a computer since windows