Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
6002a98
first version of session manager
Feb 12, 2016
0c7bb8b
updates templates according to https://github.com/NYTimes/objective-c…
Feb 15, 2016
0259c45
Merge branch 'master' into feature/objc-sessionmanager-merge
Apr 6, 2016
e258fb9
updates for ISO8601 0.5.1
Jun 6, 2016
cd6a805
updates templates with JSONModel workaround
Jun 8, 2016
83e7cdb
Merge branch 'feature/objc-sessionmanager' into feature/objc-sessionm…
Jul 14, 2016
f14f4c1
Merge branch 'upstream-master' into feature/objc-sessionmanager-maste…
Jul 14, 2016
fb68c6c
update naming
Jul 14, 2016
fab499e
Merge branch 'upstream-master' into feature/objc-sessionmanager-integ…
Jul 15, 2016
d120902
integrate latest objc changes into objc-sessionmanager
Jul 15, 2016
e077e80
add missing assignment to task
Jul 18, 2016
07d2e72
updates iso lib version requirement
Jul 18, 2016
749a17d
cleanup
Jul 18, 2016
e73f2a5
Merge branch 'upstream-master' into feature/objc-sessionmanager-integ…
Jul 18, 2016
f37bd4a
rename ApiClient to ApiSessionManager, return cancellable tasks inste…
Jul 18, 2016
d4611e4
remove custom codegen
Jul 18, 2016
52cfd0f
[C#] RootNamespace/AssemblyName use packageName
jimschubert Jul 24, 2016
aaba4b9
Html Docs 2 - API and Client Library Documentation
jimbobware Jul 25, 2016
8184732
Merge pull request #3442 from jimschubert/csharp/3441
wing328 Jul 25, 2016
30c2503
[C#][NancyFX] Better "Add" for Dictionary and using {{packageName}} f…
wing328 Jul 26, 2016
9489f7d
clear import mapping for gnereators that do not use it
wing328 Jul 26, 2016
b340301
fix scalatra path with basepath (#1425) (#3448)
Jul 26, 2016
2b66128
Merge pull request #3454 from wing328/bug/fix_3223
wing328 Jul 26, 2016
81f5108
[Scala][Scalatra] Include scalatra pestore in the CI tests (#3456)
wing328 Jul 26, 2016
743219a
fix apikey issue with go client
wing328 Jul 26, 2016
0beb4aa
Merge pull request #3458 from wing328/go_fix_apikey
wing328 Jul 26, 2016
39228c7
#3459 removed check for required params
neilotoole Jul 26, 2016
154d0fc
#3462 using base name in request instead of caseified paramName
neilotoole Jul 27, 2016
0675f16
Merge pull request #3460 from neilotoole/issue-3459_bad_required_chec…
wing328 Jul 27, 2016
748eaa8
Merge pull request #3463 from neilotoole/issue-3462-caseified-query-p…
wing328 Jul 27, 2016
c23b473
[Go] update travis config to run Go Petstore tests (#3465)
wing328 Jul 27, 2016
3cd37bf
fix casting issue with ModelImpl in Haskell
wing328 Jul 27, 2016
34137c7
Merge pull request #3467 from wing328/bug/fix_3396
wing328 Jul 27, 2016
75403f1
removed unused import
neilotoole Jul 27, 2016
3b4465d
add fluent methods to add items to list and put items to maps
cbornet Jul 27, 2016
c8764fe
Merge pull request #3470 from neilotoole/issue-3469-unused-errors-import
wing328 Jul 27, 2016
46a2220
update go petstore sample
wing328 Jul 27, 2016
8d4cfca
Add maven-javadoc-plugin in pom.xml of generated Java client.
cliffano Jul 28, 2016
b2cb215
Qt5: added missing data type handler for QByteArray to SWGHelper
philicious Jul 28, 2016
a67f168
Qt5: add handling for swagger type-format "byte" to Qt5 generator
philicious Jul 28, 2016
33b33cb
add Skurt to company list
wing328 Jul 29, 2016
4e17221
Merge pull request #3471 from cbornet/fluent_containers
wing328 Jul 29, 2016
293096f
Merge pull request #3476 from philicious/qt5-generator-fixes
wing328 Jul 29, 2016
aa58497
add decentfox
wing328 Jul 29, 2016
c377153
Confluence Wiki Documentation
jimbobware Jul 29, 2016
7c1daab
Merge branch 'feature/objc-tasks' of https://github.com/wberger/swagg…
wing328 Jul 30, 2016
75cd4bf
add shippable badge, update travis badge
wing328 Jul 31, 2016
c91b004
fixing bug of rendering an extra spaces into @FeignClient annotation …
szantopeter Jul 31, 2016
2d491dc
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Jul 31, 2016
3d7ff26
[C#] Add C# Petstore test to AppVeyor (#3489)
wing328 Jul 31, 2016
d7c959f
[PHP] add AbstractPhpCodegen to be as the base class of PHP-related …
abcsun Aug 1, 2016
0f8e1f8
[PHP] Client properties validation #3457 (#3480)
arnested Aug 1, 2016
434b4fd
Merge pull request #3447 from jhitchcock/feature/static-docs-2
wing328 Aug 1, 2016
fa7bd21
add template owner for html doc 2
wing328 Aug 1, 2016
8c357dd
fix validation for optional parameters/properties for ruby
wing328 Aug 1, 2016
4895a35
Merge pull request #3492 from wing328/ruby_optional_validation
wing328 Aug 1, 2016
85c8eb3
Merge branch 'master' of https://github.com/swagger-api/swagger-codegen
wing328 Aug 1, 2016
1bdd15c
Merge branch 'feature/confluencewikidocs' of https://github.com/jhitc…
wing328 Aug 1, 2016
c6e6a65
add shell script for cwiki
wing328 Aug 1, 2016
61b86c7
Merge branch 'jhitchcock-feature/confluencewikidocs'
wing328 Aug 1, 2016
df05295
add confluence wiki
wing328 Aug 1, 2016
cfe8dfc
[PHP] Fix invalid PHP syntax
arnested Aug 1, 2016
aacc235
[PHP] Regenerate petstore samples
arnested Aug 1, 2016
f5e20b4
Merge pull request #3493 from arnested/php/Client_properties_validati…
wing328 Aug 1, 2016
30776d7
NodeJS generator - Harken to the the warnings ...
osher Aug 1, 2016
103cc74
Merge pull request #3494 from osher/patch-1
wing328 Aug 1, 2016
abd5b3f
regenerated the spring-cloud sample
szantopeter Aug 1, 2016
9cc4e1f
updated readme.md
szantopeter Aug 1, 2016
ef52642
Support byte[] downloading in Java jersey2 client
Kvezon Aug 1, 2016
1886abb
Merge pull request #3487 from szantopeter/master
wing328 Aug 1, 2016
390ec38
Merge pull request #3482 from cliffano/master
wing328 Aug 2, 2016
7bd3746
Merge pull request #3496 from Kvezon/jersey2-byte-array-deserialize
wing328 Aug 2, 2016
c1e8d52
renames ApiSessionManager to ApiClient for better consistency with ot…
Aug 2, 2016
b1caaae
updates generated core-data code
Aug 2, 2016
1feaa9f
fix core-data client test
Aug 2, 2016
d147967
updates generated default petstore code
Aug 2, 2016
2f8c4c3
fix default petstore client tests
Aug 2, 2016
7036590
updates documentation templates for new DefaultConfiguration object
Aug 3, 2016
ae0eb81
updates generated petstore documentation
Aug 3, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ before_install:
- cat /etc/hosts

install:
# Add Godeps dependencies to GOPATH and PATH
- export GOPATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace"
- export PATH="${TRAVIS_BUILD_DIR}/Godeps/_workspace/bin:$PATH"

script:
- mvn verify -Psamples
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Swagger Code Generator

[![Build Status](https://travis-ci.org/swagger-api/swagger-codegen.svg)](https://travis-ci.org/swagger-api/swagger-codegen)
[![Build Status](https://img.shields.io/travis/swagger-api/swagger-codegen.svg?label=Petstore%20Integration%20Test)](https://travis-ci.org/swagger-api/swagger-codegen)
[![Run Status](https://img.shields.io/shippable/5782588a3be4f4faa56c5bea.svg?label=Mustache%20Template%20Test)](https://app.shippable.com/projects/5782588a3be4f4faa56c5bea)
[![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/swagger-codegen-wh2wu)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/io.swagger/swagger-codegen-project)
[![PR Stats](http://issuestats.com/github/swagger-api/swagger-codegen/badge/pr)](http://issuestats.com/github/swagger-api/swagger-codegen) [![Issue Stats](http://issuestats.com/github/swagger-api/swagger-codegen/badge/issue)](http://issuestats.com/github/swagger-api/swagger-codegen)
[![Windows Test](https://ci.appveyor.com/api/projects/status/github/swagger-api/swagger-codegen?branch=master&svg=true&passingText=Windows%20Test%20-%20OK&failingText=Windows%20Test%20-%20Fails)](https://ci.appveyor.com/project/WilliamCheng/swagger-codegen-wh2wu)

:star::star::star: If you would like to contribute, please refer to [guidelines](https://github.com/swagger-api/swagger-codegen/blob/master/CONTRIBUTING.md) and a list of [open tasks](https://github.com/swagger-api/swagger-codegen/issues?q=is%3Aopen+is%3Aissue+label%3A%22Need+community+contribution%22).:star::star::star:

Expand Down Expand Up @@ -753,7 +754,8 @@ Here are some companies/projects using Swagger Codegen in production. To add you
- [CloudBoost](https://www.CloudBoost.io/)
- [Conplement](http://www.conplement.de/)
- [Cupix](http://www.cupix.com)
- [DBBest Technologies](https://www.dbbest.com)
- [DBBest Technologies](https://www.dbbest.com)
- [DecentFoX](http://decentfox.com/)
- [DocuSign](https://www.docusign.com)
- [Ergon](http://www.ergon.ch/)
- [eureka](http://eure.jp/)
Expand Down Expand Up @@ -786,6 +788,7 @@ Here are some companies/projects using Swagger Codegen in production. To add you
- [Revault Sàrl](http://revault.ch)
- [Royal Bank of Canada (RBC)](http://www.rbc.com/canada.html)
- [SCOOP Software GmbH](http://www.scoop-software.de)
- [Skurt](http://www.skurt.com)
- [SmartRecruiters](https://www.smartrecruiters.com/)
- [StyleRecipe](http://stylerecipe.co.jp)
- [Svenska Spel AB](https://www.svenskaspel.se/)
Expand Down Expand Up @@ -876,6 +879,9 @@ Here is a list of template creators:
* PHP Lumen: @abcsum
* PHP Slim: @jfastnacht
* Ruby on Rails 5: @zlx
* Documentation
* HTML Doc 2: @jhitchcock
* Confluence Wiki: @jhitchcock

## How to join the core team

Expand Down
11 changes: 10 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# for CI with appveyor.yml
# Ref: http://www.yegor256.com/2015/01/10/windows-appveyor-maven.html
version: '{build}'
version: '{branch}-{build}'
os: Windows Server 2012
hosts:
petstore.swagger.io: 127.0.0.1
install:
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
Expand All @@ -15,9 +17,16 @@ install:
- cmd: SET PATH=C:\maven\apache-maven-3.2.5\bin;%JAVA_HOME%\bin;%PATH%
- cmd: SET MAVEN_OPTS=-XX:MaxPermSize=2g -Xmx4g
- cmd: SET JAVA_OPTS=-XX:MaxPermSize=2g -Xmx4g
- git clone https://github.com/wing328/swagger-samples
- ps: Start-Process -FilePath 'C:\maven\apache-maven-3.2.5\bin\mvn' -ArgumentList 'jetty:run' -WorkingDirectory "$env:appveyor_build_folder\swagger-samples\java\java-jersey-jaxrs"
build_script:
- nuget restore samples\client\petstore\csharp\SwaggerClient\IO.Swagger.sln
- msbuild samples\client\petstore\csharp\SwaggerClient\IO.Swagger.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- mvn clean install --batch-mode
test_script:
# test c# API client
- nunit-console samples\client\petstore\csharp\SwaggerClient\src\IO.Swagger.Test\bin\Debug\IO.Swagger.Test.dll --result=myresults.xml;format=AppVeyor
# generate all petstore clients
- .\bin\windows\run-all-petstore.cmd
cache:
- C:\maven\
Expand Down
31 changes: 31 additions & 0 deletions bin/cwiki-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l cwiki -o samples/documentation/cwiki"

java $JAVA_OPTS -jar $executable $ags
2 changes: 1 addition & 1 deletion bin/java-petstore-jersey1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -o samples/client/petstore/java/jersey1 -DhideGenerationTimestamp=true --library=jersey1"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/Java -i modules/swagger-codegen/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -l java -o samples/client/petstore/java/jersey1 -DhideGenerationTimestamp=true --library=jersey1"

echo "Removing files and folders under samples/client/petstore/java/jersey1/src/main"
rm -rf samples/client/petstore/java/jersey1/src/main
Expand Down
31 changes: 31 additions & 0 deletions bin/nancyfx-petstore-server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh

SCRIPT="$0"

while [ -h "$SCRIPT" ] ; do
ls=`ls -ld "$SCRIPT"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
SCRIPT="$link"
else
SCRIPT=`dirname "$SCRIPT"`/"$link"
fi
done

if [ ! -d "${APP_DIR}" ]; then
APP_DIR=`dirname "$SCRIPT"`/..
APP_DIR=`cd "${APP_DIR}"; pwd`
fi

executable="./modules/swagger-codegen-cli/target/swagger-codegen-cli.jar"

if [ ! -f "$executable" ]
then
mvn clean package
fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="$@ generate -t modules/swagger-codegen/src/main/resources/nancyfx -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l nancyfx -o samples/server/petstore/nancyfx"

java $JAVA_OPTS -jar $executable $ags
2 changes: 1 addition & 1 deletion bin/windows/nancyfx-petstore-server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ If Not Exist %executable% (
)

REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.json -l nancyfx -o samples\server\petstore\nancyfx\
set ags=generate -i modules\swagger-codegen\src\test\resources\2_0\petstore.yaml -l nancyfx -o samples\server\petstore\nancyfx\

java %JAVA_OPTS% -jar %executable% %ags%
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ private Model getParent(Model model) {
try {
//don't generate models that have an import mapping
if(config.importMapping().containsKey(name)) {
LOGGER.info("Model " + name + " not imported due to import mapping");
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
public AbstractCSharpCodegen() {
super();

// C# does not use import mapping
importMapping.clear();

outputFolder = "generated-code" + File.separator + this.getName();
embeddedTemplateDir = templateDir = this.getName();

Expand Down
Loading