swagger-codegen3: add passthru.tests.version
This commit is contained in:
parent
1568a8e235
commit
8bc5b41cd5
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
||||
{ lib, stdenv, fetchurl, jre, makeWrapper, testers, swagger-codegen3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "3.0.50";
|
||||
|
@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
|
|||
--add-flags "-jar $out/share/java/${jarfilename}"
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = swagger-codegen3;
|
||||
command = "swagger-codegen3 version";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an OpenAPI Spec";
|
||||
homepage = "https://github.com/swagger-api/swagger-codegen/tree/3.0.0";
|
||||
|
|
Loading…
Reference in a new issue