Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Update Fork #2

Merged
merged 155 commits into from
May 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
4623ec8
[PS][Experimental] Better common verb handling (#5783)
wing328 Apr 2, 2020
e14e5fc
[cli][docker] Better expose version/sha information of builds (#5736)
jimschubert Apr 2, 2020
2957dd4
[cli] Add --global-property for -D replacement (#5687)
jimschubert Apr 2, 2020
04160da
[dart-dio] Fixes --model-name-suffix having no effect (#5669)
josh-burton Apr 2, 2020
3f44577
[go-experimental][go][client] Remove unreachable code in go client AP…
Apr 2, 2020
8a82f48
please add openVALIDATION Project to readme (#5534)
thecodemonkey Apr 2, 2020
65eff3b
[Csharp-client] Complex form parameters are not serialized as applica…
Bouillie Apr 2, 2020
ea2fd0f
fix scala-akka java8 serializers (#5742)
chameleon82 Apr 2, 2020
7d35268
[typescript-axios][client] Unnecessary imports occurs when using with…
tanmen Apr 2, 2020
bc12ada
use write verbose in auth, better api doc (#5804)
wing328 Apr 3, 2020
281d154
[PS][Experimental] add withHttpInfo support, fix "null" return (#5811)
wing328 Apr 3, 2020
baeb1dd
[PS][Experimental] Add tests for array of object in response (#5814)
wing328 Apr 3, 2020
9c8fb9d
[codegen] Use once(LOGGER) to reduce amount of identical warning mess…
sebastien-rosset Apr 3, 2020
3d99c58
make name cache configurabl (#5775)
sebastien-rosset Apr 3, 2020
acae76b
[codegen] Cachesize config seconds (#5816)
sebastien-rosset Apr 3, 2020
242c2e8
[Python-experimental] Documentation enhancement for oneOf schema and …
sebastien-rosset Apr 4, 2020
42e87c8
rename hostsetting, validate base url (#5821)
wing328 Apr 4, 2020
00ec8fd
fix array return (#5822)
wing328 Apr 4, 2020
af85fab
Scala akka-http server (#5758)
Bouillie Apr 4, 2020
52018c4
Minor improvements to scala akka server (#5823)
wing328 Apr 5, 2020
8a12a81
Update swagger parser to 2.0.19 (#5413)
wing328 Apr 5, 2020
3b495ba
[jaxrs-cxf-cdi] fix allOf equals and hashCode (#5756)
selliera Apr 5, 2020
166aae6
[BUG] [KOTLIN] Fix default value generation for Kotlin Strings (#5776)
ahcub Apr 5, 2020
e9c1346
tests for models for C-libcurl generator (#5699)
michelealbano Apr 5, 2020
d893ee8
use allVars to cover all properties (#5835)
wing328 Apr 6, 2020
f1325e2
support enum in parameters (#5838)
wing328 Apr 6, 2020
6cbc442
[C++] [Qt5] [Client] fixed cpp-client-qt5 HttpRequestWorker contentCo…
natanlaverde Apr 6, 2020
5dd5720
minor fix to http basic auth (#5839)
wing328 Apr 6, 2020
6cdfb7c
Scala akka http server - normalization of some vendor extensions (#5829)
Bouillie Apr 6, 2020
ff0c730
Add Bouill to the Scala technical committee (#5843)
wing328 Apr 7, 2020
5fd724f
C client generator improvements to support petstore. Solves #5836 (#5…
michelealbano Apr 7, 2020
7efa651
Add openapi.yaml file to Java clients (#5765)
nmuesch Apr 7, 2020
2ff9be6
[codegen] Fix 'super.HashCode' for oneOf and allOf Implementations (r…
jburgess Apr 7, 2020
ceef040
update mysql samples
wing328 Apr 7, 2020
22f3e59
Add default case to handle response code (#5825)
wing328 Apr 7, 2020
6bf0183
fix user id in scala tc
wing328 Apr 7, 2020
73605a0
Merge branch 'master' of https://github.com/openapitools/openapi-gene…
wing328 Apr 7, 2020
55f928a
Fix for Issue #4840 [BUG][JAVA][spring-mvc] Generated Code for Map of…
emileonhardt Apr 7, 2020
41955b1
add parent for allOf only (#5851)
wing328 Apr 8, 2020
469b218
Add pythonSrcRoot option to python servers (aiohttp/flask/blueplanet)…
cognifloyd Apr 8, 2020
31ecf73
stop error globally (#5858)
wing328 Apr 8, 2020
d599527
[PS][Experimental] Add validations to model (#5842)
wing328 Apr 9, 2020
c73f3c5
Updates to allow the setting of the dateTime format string (#5763)
etherealjoy Apr 9, 2020
7342077
[PS] Select Content-Type in the response (#5872)
wing328 Apr 9, 2020
46f3b4a
various enhancement to ps exp generator (#5875)
wing328 Apr 9, 2020
6c153bd
[C#] dependency upgrade (#5870)
wing328 Apr 10, 2020
d221237
[Csharp-client] Complex form parameters are not serialized as applica…
Bouillie Apr 10, 2020
8eefbad
docs: removes Nico from technical committee (#5883)
nicokoenig Apr 10, 2020
5c2d1ea
[PS] better handle special variables (#5885)
wing328 Apr 10, 2020
b477341
update ps doc
wing328 Apr 10, 2020
59c3a31
[PS] add file post-processing to the PowerShell generator (#5864)
wing328 Apr 10, 2020
b7dfd3b
consolidate header selection functions (#5889)
wing328 Apr 10, 2020
e9d35c5
[Java-client] Add maven-compiler-plugin in pom.xml and enable linter …
sebastien-rosset Apr 10, 2020
07cb652
Update enum.mustache (#5793)
selankon Apr 11, 2020
58dc48d
Update modelGeneric.mustache (#5378)
shwetashukla Apr 11, 2020
64c9950
Fix Scala sttp generator packages (#5890)
bkowalik Apr 11, 2020
800293c
[Dart] Fix "basic" auth method and Add Bearer token support (#5743)
gasugesu Apr 12, 2020
6a158de
Add date time format annotation on pojo for model query parameters (#…
zalito12 Apr 12, 2020
1c51d41
[mysql] Add basic SQL queries (#5757)
ybelenko Apr 12, 2020
62c346f
[enhancement] [jaxrs-spec] Add builders to models (#4930)
shybovycha Apr 12, 2020
e82546f
Update generated build files for REST Assured (#5873)
joschi Apr 12, 2020
cc09118
[Java][Feign] Bug fix in @Param annotation (#5250)
Chr1st0ph Apr 13, 2020
d81c244
[Java] Increase java compiler stack size to handle large files (#5901)
sebastien-rosset Apr 13, 2020
54a350f
Added emineo to list of companies on website (#5905)
emileonhardt Apr 13, 2020
d8b46dc
add emineo to the list
wing328 Apr 13, 2020
7dd2d3c
[swift5] fix warning (#5900)
4brunu Apr 13, 2020
aca8089
update bitwise config (#5904)
wing328 Apr 13, 2020
8af6b74
[Java] Discriminator lookup should not be case insensitive by default…
sebastien-rosset Apr 13, 2020
a6f521c
minor fix to users.yml
wing328 Apr 13, 2020
2de0e6f
Add a link to optim blog post (#5922)
wing328 Apr 14, 2020
dc9f79d
[Java] Fix inclusive max validation (#5908)
Erikmolin Apr 14, 2020
4c64870
add bearer auth support to csharp netcore (#5921)
wing328 Apr 14, 2020
c479e51
[Python][aiohttp] create venv as rule (#5913)
nhomble Apr 14, 2020
131bd4f
Fix for Result Model Name collision (#5923)
sebohdev Apr 14, 2020
533d686
[Dart] Remove content type from header when content type is not speci…
gasugesu Apr 14, 2020
747cd08
update dependency for java client (#5926)
wing328 Apr 14, 2020
8a17ae6
Update axios dependency to the new minor version 0.19.0 (#5867)
chandra-gh Apr 14, 2020
33850a1
fixed README/doc of bearer auth support for csharp-netcore (#5931)
FaFre Apr 15, 2020
d57ceb8
fix duplicated semi-colon in c# model (#5934)
wing328 Apr 15, 2020
827904f
[Python-experimental] Use DER encoding for ECDSA signatures, add para…
sebastien-rosset Apr 15, 2020
91cfabd
[Python-experimental] Fix TypeError: unhashable type: 'list' (#5810)
sebastien-rosset Apr 16, 2020
7a02423
[python/asyncio] fix passing proxy parameters to aiohttp (#5943)
tomplus Apr 16, 2020
41664b3
[C][Client]Fix data lost when libcurl write-data callback function is…
ityuhui Apr 16, 2020
efae171
[typescript-axios][client] Allow apiKey type Promise. (#5953)
tanmen Apr 16, 2020
5acbbf8
Add YITU Technology to the user list (#5967)
wing328 Apr 17, 2020
896867b
Use model as body param for generateAliasAsModel (#4569)
bodograumann Apr 17, 2020
0adc20f
[powershell-experimental] ValidatePattern with double-quote (") throw…
Ghufz Apr 17, 2020
cb50ad5
[scala-akka-http-server] Fix a generation problem on operations with …
Bouillie Apr 17, 2020
e47739d
return a null instead of application/json when no content types are s…
FaFre Apr 18, 2020
c5472be
Ensure `model.allParents` always includes `model.parent`. (#5738)
amakhrov Apr 18, 2020
84099ee
[maven] mark Mojo threadSafe=true + fix concurrency issue in Co… (#5898)
famod Apr 19, 2020
a8620b8
add bearer support to csharp client (#5975)
wing328 Apr 19, 2020
171f718
add test to reuse object from the server (#5976)
wing328 Apr 19, 2020
f6572fd
[bug][html2] Fix visibility of body/response schemas (#5643)
damian-zaleski Apr 19, 2020
a15da6f
[gradle] Print value of outputDir correctly in gradle plugin (#5936)
kierans Apr 19, 2020
c6353a7
add bearer auth support to C# 2.0 client (#5978)
wing328 Apr 19, 2020
4818644
[BUG] [TYPESCRIPT-AXIOS] Fixing issue where dist folder is not publis…
MalcolmScoffable Apr 20, 2020
1766279
Fixes issue 5876 (#5977)
spacether Apr 20, 2020
c35f32b
Add tests for parents, allParents (#5984)
wing328 Apr 20, 2020
fe2f092
Expose deprecated flag in model template (#5964)
Palleas Apr 21, 2020
da149e1
[mysql] Add OAuth2 framework tables (#5807)
ybelenko Apr 21, 2020
f891170
fix inline schema without object type (#5992)
wing328 Apr 21, 2020
8661ed3
Added Allianz Technolgy (#5999)
ckatzorke Apr 21, 2020
c9882cb
add allianz logo
wing328 Apr 21, 2020
381ebeb
[typescript-fetch] support http HEAD as well (#5994)
haraldF Apr 21, 2020
12512cf
update cxf version (#6003)
wing328 Apr 22, 2020
40be1c3
[Java][Client] Fix Gradle and SBT builds for REST Assured generator (…
joschi Apr 22, 2020
63b4429
Escape clashing model names (#6004)
haraldF Apr 22, 2020
b431d65
Make "Index" a reserved word (#6000)
haraldF Apr 22, 2020
00ffcea
[typescript-fetch] Fix map API return type (#5995)
haraldF Apr 22, 2020
140f823
fix generate java-inflector crash issue on windows (#6011)
chenqping Apr 23, 2020
c981535
Change access updateParamsForAuth to protected (#5940)
flozano Apr 23, 2020
4ed3421
update resttemplate sample
wing328 Apr 23, 2020
bafed33
Fix OpenAPI link in broken Swift4/5 README templates (#6035)
iliaskarim Apr 24, 2020
3db7f65
Add a link to the blog post in Nordic APIs (#6038)
wing328 Apr 24, 2020
93dd4a5
Add jersey2-experimental to Java client generator (#6024)
wing328 Apr 24, 2020
1e01c38
[python-experimental] Minor doc update, code comments and exception h…
sebastien-rosset Apr 24, 2020
6ad5e5f
[Python experimental] Add __setattr__ function to ensure signing_info…
sebastien-rosset Apr 24, 2020
649daed
Export valid and set status of properties (#6020)
etherealjoy Apr 24, 2020
234053f
Export response code to worker (#6021)
etherealjoy Apr 24, 2020
45bbe49
Add test for allOf without object type (#6042)
wing328 Apr 24, 2020
8e8471c
[CORE] Fixes composed schema discriminator map (#4906)
spacether Apr 24, 2020
58908e6
[codegen] change x-oneOf-name to x-one-of-name. Consistency with nami…
sebastien-rosset Apr 24, 2020
e8f486b
[Python experimental] Readme improvements (#6031)
sebastien-rosset Apr 24, 2020
0e276be
Add input flag for Gradle openApiGenerate task (#5966)
kierans Apr 25, 2020
cef5470
Add Http signature authentication test to fake petstore spec (#6054)
wing328 Apr 25, 2020
db59413
[Python] Fix Python UTF-8 Encoding Issue (#5679)
CrshOverride Apr 26, 2020
3b0bd36
Update Java (feign) client dependency (#6068)
wing328 Apr 27, 2020
5880236
Add HTTP signature authentication support to Java (jersey2-experiment…
wing328 Apr 27, 2020
eccdf1d
add MoonVision user (#6076)
ahirner Apr 27, 2020
3d5b140
Fix URLSessionImplementations file upload (#6043)
jerbob92 Apr 27, 2020
354f195
[typescript-fetch] Support deepObject query params (#6075)
haraldF Apr 28, 2020
6f9d825
[typescript-fetch] Make FormData optional (#6077)
haraldF Apr 28, 2020
f12fb86
[feat] Allow configuration of yaml minimize quotes (#5933)
jimschubert Apr 28, 2020
500fb47
[typescript-fetch] Allow multiline documentation (#6088)
haraldF Apr 28, 2020
6bb4bd8
fixed typescript-axios pattern data integrity by removing escapeText(…
n0idea Apr 28, 2020
a2b613c
Fixes md docs (#6079)
spacether Apr 28, 2020
7424582
[TypeScript-Angular] Add AuthService example to README.md (#6087)
dennisameling Apr 28, 2020
e01c1a9
Readonly properties for Swift 5 (#6048)
Apr 29, 2020
a8cc42d
[validation] Warn on duplicate tags (#6061)
jimschubert Apr 29, 2020
a8885e8
update swift5 samples (#6102)
wing328 Apr 29, 2020
bc097cf
[C#] Fixed valuetype parameters and discriminator deserialization (#5…
gbrown-ce Apr 29, 2020
001d9cb
better docstring for jersey2 client (#6104)
wing328 Apr 29, 2020
8e4452e
[scala-akka-http] fixed getOffsetDateTimeHeader and removed broken te…
chameleon82 Apr 30, 2020
3e2c933
[php-symfony] Fix problem with clients, that put charset in content t…
reznikartem Apr 30, 2020
cc623ba
[cli][build] Relax the git id plugin (#6094)
jimschubert Apr 30, 2020
3bbaedd
Better "Any Type" support (#6091)
wing328 Apr 30, 2020
0032e04
[php-symfony] Fix return type in model setters. (#6085)
reznikartem Apr 30, 2020
b23c52f
[Go][experimental] provide code samples in the API doc (#6115)
wing328 May 1, 2020
c38b529
[dart-dio][client] Handle x-www-form-urlencoded form data (#5597)
adg-mh May 1, 2020
f7ba935
update oas3 petstore go exp sample
wing328 May 1, 2020
6484c03
Test scala akka petstore client in CI (#6118)
wing328 May 1, 2020
c08e80f
Propagate deprecated property through $ref's (#6093)
asmundg May 1, 2020
8d247a7
Merge branch 'parent-master'
MiguelFranken May 1, 2020
1ad77cd
fixed codegen model
MiguelFranken May 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 26 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,33 @@ after_success:
fi;
fi;
## docker: build and push openapi-generator-online to DockerHub
- if [ $DOCKER_HUB_USERNAME ]; then echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin && docker build -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/openapi-generator-online && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_GENERATOR_IMAGE_NAME:latest $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_GENERATOR_IMAGE_NAME && echo "Pushed to $DOCKER_GENERATOR_IMAGE_NAME"; fi; fi
- if [ $DOCKER_HUB_USERNAME ]; then
echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin;
export cli_version=$(\mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[');
export build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ");
docker build --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-online --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_GENERATOR_IMAGE_NAME ./modules/openapi-generator-online;
if [ ! -z "$TRAVIS_TAG" ]; then
docker tag $DOCKER_GENERATOR_IMAGE_NAME:latest $DOCKER_GENERATOR_IMAGE_NAME:$TRAVIS_TAG;
fi;
if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then
docker push $DOCKER_GENERATOR_IMAGE_NAME && echo "Pushed to $DOCKER_GENERATOR_IMAGE_NAME";
fi;
fi;
## docker: build cli image and push to Docker Hub
- if [ $DOCKER_HUB_USERNAME ]; then echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin && cp docker-entrypoint.sh ./modules/openapi-generator-cli && docker build -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli && if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG; fi && if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME && echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME"; fi; fi
- if [ $DOCKER_HUB_USERNAME ]; then
echo "$DOCKER_HUB_PASSWORD" | docker login --username=$DOCKER_HUB_USERNAME --password-stdin;
cp docker-entrypoint.sh ./modules/openapi-generator-cli;
export cli_version=$(\mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\[');
export build_date=$(date -u +"%Y-%m-%dT%H:%M:%SZ");
docker build --label=org.opencontainers.image.created=$build_date --label=org.opencontainers.image.title=openapi-generator-cli --label=org.opencontainers.image.revision=$TRAVIS_COMMIT --label=org.opencontainers.image.version=$cli_version -t $DOCKER_CODEGEN_CLI_IMAGE_NAME ./modules/openapi-generator-cli;
if [ ! -z "$TRAVIS_TAG" ]; then
docker tag $DOCKER_CODEGEN_CLI_IMAGE_NAME:latest $DOCKER_CODEGEN_CLI_IMAGE_NAME:$TRAVIS_TAG;
fi;
if [ ! -z "$TRAVIS_TAG" ] || [ "$TRAVIS_BRANCH" = "master" ]; then
docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME;
echo "Pushed to $DOCKER_CODEGEN_CLI_IMAGE_NAME";
fi;
fi;
## publish latest website, variables below are secure environment variables which are unavailable to PRs from forks.
- if [ "$TRAVIS_BRANCH" = "master" ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
cd website;
Expand Down
31 changes: 12 additions & 19 deletions CI/bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ workflows:
mvn package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
title: Build openapi-generator
- [email protected]:
title: Update Swift4 samples
title: Update Swift samples
inputs:
- content: |
#!/usr/bin/env bash

set -e

sh bin/swift4-all.sh
sh bin/swift5-all.sh
- [email protected]:
title: Run Swift4 tests
inputs:
Expand All @@ -49,15 +50,6 @@ workflows:

./samples/client/petstore/swift4/swift4_test_all.sh
./samples/client/test/swift4/swift4_test_all.sh
- [email protected]:
title: Update Swift5 samples
inputs:
- content: |
#!/usr/bin/env bash

set -e

sh bin/swift5-all.sh
- [email protected]:
title: Run Swift5 tests
inputs:
Expand All @@ -66,14 +58,15 @@ workflows:

set -e

./samples/client/petstore/swift5/swift5_test_all.sh
./samples/client/test/swift5/swift5_test_all.sh
- [email protected]:
title: Run all bin scripts
inputs:
- content: |-
#!/usr/bin/env bash

set -e
# comment out the following as it's causing timeout
# - [email protected]:
# title: Run all bin scripts
# inputs:
# - content: |-
# #!/usr/bin/env bash
#
# set -e
#
# ./bin/run-all-petstore

./bin/run-all-petstore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ OpenAPI Petstore

This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\

OpenAPI spec version: 1.0.0
The version of the OpenAPI document: 1.0.0

-->
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
Expand Down Expand Up @@ -47,16 +47,16 @@ OpenAPI spec version: 1.0.0
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Xml" />
<Reference Include="Newtonsoft.Json">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="JsonSubTypes">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\JsonSubTypes.1.5.2\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('..\packages')">..\packages\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('..\..\packages')">..\..\packages\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll</HintPath>
<HintPath Condition="Exists('..\..\vendor')">..\..\vendor\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll</HintPath>
</Reference>
<Reference Include="RestSharp">
<HintPath Condition="Exists('$(SolutionDir)\packages')">$(SolutionDir)\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll</HintPath>
Expand All @@ -72,7 +72,8 @@ OpenAPI spec version: 1.0.0
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="**\*.cs" Exclude="obj\**" />
<Compile Include="**\*.cs"
Exclude="obj\**"/>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
16 changes: 16 additions & 0 deletions bin/ci/java-rest-assured-jackson.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"!include": "bin/java-petstore-rest-assured-jackson.json",
"generatorName": "java",
"inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml",
"outputDir": "samples/client/petstore/java/rest-assured-jackson",
"templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/rest-assured",
"additionalProperties": {
"hideGenerationTimestamp": true,
"booleanGetterPrefix": "is",
"java8": "true",
"dateLibrary": "java8",
"serializationLibrary": "jackson",
"useBeanValidation": "true",
"performBeanValidation": "true"
}
}
2 changes: 1 addition & 1 deletion bin/csharp-dotnet2-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient --additional-properties hideGenerationTimestamp=true $@"
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g csharp-dotnet2 -t modules/openapi-generator/src/main/resources/csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient --additional-properties hideGenerationTimestamp=true $@"

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

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g html2 -o samples/documentation/html2 --additional-properties hideGenerationTimestamp=true $@"
ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g html2 -o samples/documentation/html2 -t modules/openapi-generator/src/main/resources/htmlDocs2/ --additional-properties hideGenerationTimestamp=true $@"

java $JAVA_OPTS -jar $executable $ags
1 change: 1 addition & 0 deletions bin/java-petstore-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
./bin/java-petstore-okhttp-gson-parcelable.sh
./bin/java-petstore-okhttp-gson.sh
./bin/java-petstore-rest-assured.sh
./bin/java-petstore-rest-assured-jackson.sh
./bin/java-petstore-resteasy.sh
./bin/java-petstore-resttemplate-withxml.sh
./bin/java-petstore-resttemplate.sh
Expand Down
4 changes: 4 additions & 0 deletions bin/java-petstore-jersey2-experimental.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"library": "jersey2-experimental",
"artifactId": "petstore-jersey2-exp"
}
50 changes: 50 additions & 0 deletions bin/java-petstore-jersey2-experimental.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/sh

SCRIPT="$0"
echo "# START SCRIPT: $SCRIPT"

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/openapi-generator-cli/target/openapi-generator-cli.jar"

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

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-jersey2-experimental.json -o samples/client/petstore/java/jersey2-experimental -t modules/openapi-generator/src/main/resources/Java/libraries/jersey2-experimental --additional-properties hideGenerationTimestamp=true $@"

echo "Removing files and folders under samples/client/petstore/java/jersey2-experimental/src/main"
rm -rf samples/client/petstore/java/jersey2-experimental/src/main
find samples/client/petstore/java/jersey2-experimental -maxdepth 1 -type f ! -name "README.md" -exec rm {} +
java $JAVA_OPTS -jar $executable $ags

#mvn com.coveo:fmt-maven-plugin:format -f samples/client/petstore/java/jersey2-experimental/pom.xml

# copy additional manually written unit-tests
#mkdir samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client
#mkdir samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/auth
#mkdir samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model

#cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/StringUtilTest.java
#cp CI/samples.ci/client/petstore/java/test-manual/jersey2/ApiClientTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/ApiClientTest.java
#cp CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/ConfigurationTest.java
#cp CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/ApiKeyAuthTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java
#cp CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/HttpBasicAuthTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java
#cp CI/samples.ci/client/petstore/java/test-manual/jersey2/model/EnumValueTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/model/EnumValueTest.java
#cp CI/samples.ci/client/petstore/java/test-manual/jersey2/JSONTest.java samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/JSONTest.java
4 changes: 4 additions & 0 deletions bin/java-petstore-rest-assured-jackson.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"library": "rest-assured",
"artifactId": "petstore-rest-assured-jackson"
}
36 changes: 36 additions & 0 deletions bin/java-petstore-rest-assured-jackson.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh

SCRIPT="$0"
echo "# START SCRIPT: $SCRIPT"

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/openapi-generator-cli/target/openapi-generator-cli.jar"
target_dir="./samples/client/petstore/java/rest-assured-jackson/"

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

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
args="generate -t modules/openapi-generator/src/main/resources/Java/libraries/rest-assured -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-rest-assured-jackson.json -o ${target_dir} --additional-properties hideGenerationTimestamp=true --additional-properties useBeanValidation=true --additional-properties performBeanValidation=true --additional-properties booleanGetterPrefix=is --additional-properties java8=true --additional-properties dateLibrary=java8 --additional-properties serializationLibrary=jackson $@"

echo "Removing ${target_dir}"
rm -rf "${target_dir}"

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

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t modules/openapi-generator/src/main/resources/Java/libraries/rest-assured -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-rest-assured.json -o samples/client/petstore/java/rest-assured --additional-properties hideGenerationTimestamp=true --additional-properties booleanGetterPrefix=is $@"
ags="generate -t modules/openapi-generator/src/main/resources/Java/libraries/rest-assured -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-rest-assured.json -o samples/client/petstore/java/rest-assured --additional-properties hideGenerationTimestamp=true --additional-properties useBeanValidation=true --additional-properties performBeanValidation=true --additional-properties booleanGetterPrefix=is $@"

echo "Removing files and folders under samples/client/petstore/java/rest-assured/src/main"
rm -rf samples/client/petstore/java/rest-assured/src/main
Expand Down
2 changes: 1 addition & 1 deletion bin/openapi3/powershell-experimental-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate -t modules/openapi-generator/src/main/resources/powershell-experimental -i modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml -g powershell-experimental -o samples/client/petstore/powershell-experimental --additional-properties powershellGalleryUrl=https://www.powershellgallery.com/packages/PSPetstore,packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,packageName=PSPetstore,apiNamePrefix=PS,packageVersion=0.1.2 -c ./bin/powershell-config.json $@"
ags="generate -t modules/openapi-generator/src/main/resources/powershell-experimental -i modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml -g powershell-experimental -o samples/client/petstore/powershell-experimental --additional-properties powershellGalleryUrl=https://www.powershellgallery.com/packages/PSPetstore,packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,packageName=PSPetstore,apiNamePrefix=PS,packageVersion=0.1.2,commonVerbs=Delete=Remove:Patch=Update $@"

java ${JAVA_OPTS} -jar ${executable} ${ags}
2 changes: 1 addition & 1 deletion bin/openapi3/scala-akka-petstore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ fi

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties"
ags="generate --artifact-id "scala-akka-petstore-client" -t modules/openapi-generator/src/main/resources/scala-akka-client -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-akka -o samples/openapi3/client/petstore/scala-akka $@"
ags="generate --artifact-id "scala-akka-petstore-client" -t modules/openapi-generator/src/main/resources/scala-akka-client -i modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml -g scala-akka -o samples/openapi3/client/petstore/scala-akka $@"

java $JAVA_OPTS -jar $executable $ags
44 changes: 44 additions & 0 deletions bin/python-server-aiohttp-srclayout-petstore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/sh

SCRIPT="$0"
echo "# START SCRIPT: $SCRIPT"

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/openapi-generator-cli/target/openapi-generator-cli.jar"

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

generator=python-aiohttp
input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml
out_folder=samples/server/petstore/${generator}-srclayout
resources=modules/openapi-generator/src/main/resources/${generator}

# if you've executed sbt assembly previously it will use that instead.
export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties -Dservice"
ags="generate -t $resources -i $input -g $generator -o $out_folder --additional-properties pythonSrcRoot=src $@"

rm -rf $out_folder/.openapi*
rm -rf $out_folder/openapi_server
rm -rf $out_folder/tests*
rm $out_folder/README.md
rm $out_folder/requirements.txt
rm $out_folder/test-requirements.txt

java $JAVA_OPTS -jar $executable $ags
1 change: 1 addition & 0 deletions bin/python-server-all.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/sh

./bin/python-server-aiohttp-petstore.sh
./bin/python-server-aiohttp-srclayout-petstore.sh
./bin/python-server-flask-petstore.sh
./bin/python-server-flask-petstore-python2.sh
./bin/python-server-blueplanet-petstore.sh
Loading