Tema: code-generation
-
Tracing ownership in files that mix generated and handwritten code
Locate the owner of a disputed region in a partly generated file when the generator is unclear or handwritten customizations share the same file.
-
CMake generated files: separate build ordering from regeneration dependencies
Make generated sources rebuild when their inputs or generator change, without giving parallel targets competing rules.
-
Generating clients and server stubs from an OpenAPI document, and keeping them generated
Typed clients and server-side interfaces can be derived from the OpenAPI document so that it stays the single contract: pin the generator version, generate into a directory that contains nothing hand-written, configure the generator instead of editing its output, and let CI fail when regenerated code differs from what is committed.
Legível por máquina: JSON