Skip to content
This repository was archived by the owner on Jan 11, 2019. It is now read-only.

Commit 55183b9

Browse files
author
Ole Lensmar
committed
- added info on how to build to README
- fixed creation of default 200 response - fixed removal of trailing slashes in basePath
1 parent 547575d commit 55183b9

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Provider the following swagger-related features in Ready! API:
88

99
Download and install via the Plugin Manager / Repository Browser from inside Ready! API. Older versions are available for SoapUI open-source as well (see below)
1010

11+
Build with
12+
13+
```
14+
mvn clean install assembly:single
15+
```
16+
1117
### Release History
1218

1319
* June 2016 - Version 2.3.1 - Dependency updates for improved message creation

src/main/groovy/com/smartbear/swagger/Swagger2Exporter.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Swagger2Exporter implements SwaggerExporter {
7575
}
7676

7777
if ( !operation.responses || operation.responses.isEmpty()) {
78-
operation.addResponse(200, new Response())
78+
operation.addResponse("200", new Response())
7979
}
8080

8181
p.set(it.method.name().toLowerCase(), operation)

src/main/groovy/com/smartbear/swagger/Swagger2Importer.groovy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ class Swagger2Importer implements SwaggerImporter {
337337

338338
if (swagger.basePath != null) {
339339
restService.basePath = swagger.basePath
340+
if( restService.basePath.endsWith('/')){
341+
restService.basePath = restService.basePath.substring(0,restService.basePath.length()-1)
342+
}
340343
}
341344

342345
return restService

0 commit comments

Comments
 (0)