Skip to content
Permalink
Browse files

v1.2.1

  • Loading branch information...
Sayi committed Nov 9, 2018
1 parent 03ac03a commit bda37e66d49318397eb4288db82b7d2c2c7683ec
@@ -1,6 +1,6 @@
## swagger-diff

![Build Status](https://travis-ci.org/Sayi/swagger-diff.svg?branch=master) ![jdk1.6+](https://img.shields.io/badge/jdk-1.6%2B-orange.svg) [![Coverage Status](https://coveralls.io/repos/github/Sayi/swagger-diff/badge.svg)](https://coveralls.io/github/Sayi/swagger-diff) [![Maven](https://maven-badges.herokuapp.com/maven-central/com.deepoove/swagger-diff/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/com.deepoove/swagger-diff)
![Build Status](https://travis-ci.org/Sayi/swagger-diff.svg?branch=master) ![jdk1.8+](https://img.shields.io/badge/jdk-1.8%2B-orange.svg) [![Coverage Status](https://coveralls.io/repos/github/Sayi/swagger-diff/badge.svg)](https://coveralls.io/github/Sayi/swagger-diff) [![Maven](https://maven-badges.herokuapp.com/maven-central/com.deepoove/swagger-diff/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/com.deepoove/swagger-diff)

Compare two swagger API specifications(1.x or v2.0) and render the difference to html file or markdown file.

@@ -48,13 +48,13 @@ Download the fatJar or view the changelog on the **[Release Page](https://github
<dependency>
<groupId>com.deepoove</groupId>
<artifactId>swagger-diff</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
</dependency>
```

## Gradle
```shell
compile group: 'com.deepoove', name: 'swagger-diff', version: '1.2.0'
compile group: 'com.deepoove', name: 'swagger-diff', version: '1.2.1'
```

## Usage
@@ -10,7 +10,7 @@

<groupId>com.deepoove</groupId>
<artifactId>swagger-diff</artifactId>
<version>1.3.0</version>
<version>1.2.1</version>
<packaging>jar</packaging>

<name>swagger-diff</name>
@@ -56,7 +56,7 @@ public void run(JCommander jCommander) {
return;
}
if (v){
JCommander.getConsole().println("1.2.0");
JCommander.getConsole().println("1.2.1");
return;
}

@@ -83,7 +83,7 @@ public void testVersion() {
JCommander jCommander = JCommander.newBuilder().addObject(cli).build();
jCommander.parse(argv);
cli.run(jCommander);
Assert.assertEquals(outContent.toString().trim(), "1.2.0");
Assert.assertEquals(outContent.toString().trim(), "1.2.1");
}

@Test

0 comments on commit bda37e6

Please sign in to comment.
You can’t perform that action at this time.