openapi: put a static version into the repository

This avoids a lot of rebuilds and we can also track api changes better
This commit is contained in:
Jörg Thalheim
2023-11-24 15:32:31 +01:00
parent 4a19e3af95
commit d394792238
7 changed files with 985 additions and 20 deletions

View File

@@ -1,7 +1,6 @@
{ fmod
, pkg
, pkgs
, clanPkgs
}:
pkgs.mkShell {
buildInputs = [
@@ -26,7 +25,7 @@ pkgs.mkShell {
# re-generate the api code
rm -rf src/api openapi.json
cp ${clanPkgs.clan-openapi}/openapi.json .
cp ${../../pkgs/clan-cli/clan_cli/webui/openapi.json} .
orval
'';
}