forked from cstroe/swagger-ant-task
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to current swagger-maven-plugin 3.1.3, swagger-annotations 1.5.7
- Loading branch information
1 parent
fc4eb35
commit d2e3d2e
Showing
30 changed files
with
1,844 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 0 additions & 43 deletions
43
src/main/java/com/github/cstroe/swagger/docgen/task/AntApiSourceInfo.java
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
src/main/java/com/github/cstroe/swagger/docgen/task/AntInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.github.cstroe.swagger.docgen.task; | ||
|
||
import io.swagger.models.Info; | ||
import org.apache.tools.ant.Project; | ||
|
||
public class AntInfo extends Info { | ||
|
||
private final Project project; | ||
|
||
public AntInfo(Project project) { | ||
this.project = project; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createTitle() { | ||
return new WriteBack(project, this, "title"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createVersion() { | ||
return new WriteBack(project, this, "version"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createDescription() { | ||
return new WriteBack(project, this, "description"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createTermsOfService() { | ||
return new WriteBack(project, this, "termsOfService"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public AntInfoContact createContact() { | ||
AntInfoContact antInfoContact = new AntInfoContact(project); | ||
setContact(antInfoContact); | ||
return antInfoContact; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public AntInfoLicense createLicense() { | ||
AntInfoLicense antInfoLicense = new AntInfoLicense(project); | ||
setLicense(antInfoLicense); | ||
return antInfoLicense; | ||
} | ||
|
||
} |
28 changes: 28 additions & 0 deletions
28
src/main/java/com/github/cstroe/swagger/docgen/task/AntInfoContact.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.github.cstroe.swagger.docgen.task; | ||
|
||
import io.swagger.models.Contact; | ||
import org.apache.tools.ant.Project; | ||
|
||
public class AntInfoContact extends Contact { | ||
|
||
private final Project project; | ||
|
||
public AntInfoContact(Project project) { | ||
this.project = project; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createName() { | ||
return new WriteBack(project, this, "name"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createUrl() { | ||
return new WriteBack(project, this, "url"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createEmail() { | ||
return new WriteBack(project, this, "email"); | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/com/github/cstroe/swagger/docgen/task/AntInfoLicense.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.cstroe.swagger.docgen.task; | ||
|
||
import io.swagger.models.License; | ||
import org.apache.tools.ant.Project; | ||
|
||
public class AntInfoLicense extends License { | ||
|
||
private final Project project; | ||
|
||
public AntInfoLicense(Project project) { | ||
this.project = project; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createUrl() { | ||
return new WriteBack(project, this, "url"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createName() { | ||
return new WriteBack(project, this, "name"); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/com/github/cstroe/swagger/docgen/task/AntSecurityDefinition.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.github.cstroe.swagger.docgen.task; | ||
|
||
import com.github.kongchen.swagger.docgen.mavenplugin.SecurityDefinition; | ||
import org.apache.tools.ant.Project; | ||
|
||
/** | ||
* AntSecurityDefinition | ||
* <p/> | ||
* | ||
* @author $Author$ | ||
* @version $Revision$ | ||
* <p>Copyright (c) 2003 - 2016 CGI IT Czech Republic s.r.o. </p> | ||
*/ | ||
public class AntSecurityDefinition extends SecurityDefinition { | ||
private final Project project; | ||
|
||
public AntSecurityDefinition(Project project) { | ||
this.project = project; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createName() { | ||
return new WriteBack(project, this, "name"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createType() { | ||
return new WriteBack(project, this, "type"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createDescription() { | ||
return new WriteBack(project, this, "description"); | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public WriteBack createJson() { | ||
return new WriteBack(project, this, "json"); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/github/cstroe/swagger/docgen/task/AntSecurityDefinitions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.github.cstroe.swagger.docgen.task; | ||
|
||
import com.github.kongchen.swagger.docgen.mavenplugin.SecurityDefinition; | ||
import org.apache.tools.ant.Project; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* AntSecurityDefinitions | ||
* <p/> | ||
* | ||
* @author $Author$ | ||
* @version $Revision$ | ||
* <p>Copyright (c) 2003 - 2016 CGI IT Czech Republic s.r.o. </p> | ||
*/ | ||
public class AntSecurityDefinitions extends ArrayList<SecurityDefinition> { | ||
private final Project project; | ||
|
||
public AntSecurityDefinitions(Project project) { | ||
this.project = project; | ||
} | ||
|
||
@SuppressWarnings("unused") | ||
public AntSecurityDefinition createSecurityDefinition() { | ||
AntSecurityDefinition antSecurityDefinition = new AntSecurityDefinition(project); | ||
add(antSecurityDefinition); | ||
return antSecurityDefinition; | ||
} | ||
} |
Oops, something went wrong.