Unverified Commit 23afa305 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

openapi-generator-cli: use toFile instead of passAsFile (#502700)

parents 898447d6 d7c46776
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -11,11 +11,12 @@ runCommand "openapi-generator-cli-test"
      url = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/14c0908becbccd78252be49bd92be8c53cd2b9e3/examples/v3.0/petstore.yaml";
      hash = "sha256-q2D1naR41KwxLNn6vMbL0G+Pl1q4oaDCApsqQfZf7dU=";
    };
    config = builtins.toJSON {
    config = builtins.toFile "config.json" (
      builtins.toJSON {
        elmVersion = "0.19";
        elmPrefixCustomTypeVariants = false;
    };
    passAsFile = [ "config" ];
      }
    );
  }
  ''
    openapi-generator-cli generate \