typoa icon indicating copy to clipboard operation
typoa copied to clipboard

feat: avoid re-generate if files haven't changed

Open Eywek opened this issue 5 years ago • 5 comments

Get md5 of each controller files, generate md5 of those md5 + config and store it in the openapi.yaml as an extension (e.g. info.x-hash). If the hash is the same as before, avoid re-generating openapi file.

Eywek avatar Apr 13 '21 08:04 Eywek

If types have been updated we want to update the openapi file, so we can't only use controllers content

Eywek avatar Apr 13 '21 11:04 Eywek