Skip to content

Commit

Permalink
fix: exclude null values from attribute schema
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickvP committed Jul 17, 2024
1 parent 8eaff21 commit 47db7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cog.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ in {
WorkingDir = "/src";
Labels = {
"run.cog.has_init" = "true";
"run.cog.config" = builtins.toJSON config.cog;
"run.cog.config" = builtins.toJSON (lib.filterAttrs (_: x: x != null) config.cog);
"run.cog.version" = "${cfg.cog_version}";
# Initially we had openapi_schema here, but there is a problem with doing that:
# builtins.readFile has to generate the file to read the contents,
Expand Down

0 comments on commit 47db7ff

Please sign in to comment.