Skip to content

Instantly share code, notes, and snippets.

Concept for generating boilerplate for API
===
One issue is that the input and output parts are TS, and the others could be done with a DSL. (in order to not have to re-invent zod basically).
I used typescript interfaces for DTOs and zod for input, and came up with something like this:
For the DSL it could look like so:
===
types ts```{
Do you have a scylla stacktrace like
TRACE 2020-07-06 08:52:14,139 [shard 0] exception - Throw exception at:
0x457ef3b
0x403b6d9
0x403b9a4
/opt/scylladb/libreloc/libstdc++.so.6+0x97370
0x407c034
0x40cd031
0x40cd24e
0x41af27d