Commit f2d23ab8 authored by eveeifyeve's avatar eveeifyeve
Browse files

openapi-generator-cli: add passthru.updateScript

parent cbb30140
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  fetchFromGitHub,
  maven,
  makeWrapper,
  nix-update-script,
}:

let
@@ -47,9 +48,12 @@ let
      runHook postInstall
    '';

    passthru.tests.example = callPackage ./example.nix {
    passthru = {
      updateScript = nix-update-script { };
      tests.example = callPackage ./example.nix {
        openapi-generator-cli = this;
      };
    };

    meta = {
      description = "Allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec";