Re:Sqlc: Compile SQL to type-safe code
by paperplatter on Tuesday September 17, 2024 @06:36PM
(#41573617)
That's neat. It should be just as easy in theory to generate tests from the OpenAPI spec, but idk what tooling there is.
Re:Sqlc: Compile SQL to type-safe code
by pdimitar on Tuesday September 17, 2024 @06:58PM
(#41573780)
Ah, we have `openapi-generator` already (look it up) and it works well enough. I plan on starting to use OpenAPI only for types and be able to generate structs and various other types in several languages -- fingers crossed.
So they can be utilized to save us some work.