diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index a6064478b97..6b2da4c58b4 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,7 +4,7 @@ ### PR checklist - [ ] Read the [contribution guidelines](https://github.com/openapitools/openapi-generator/blob/master/CONTRIBUTING.md). -- [ ] If contributing template-only or documentation-only changes which will change sample output, [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) before. -- [ ] Run the shell script(s) under `./bin/` (or Windows batch scripts under`.\bin\windows`) to update Petstore samples related to your fix. This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run `./bin/{LANG}-petstore.sh`, `./bin/openapi3/{LANG}-petstore.sh` if updating the code or mustache templates for a language (`{LANG}`) (e.g. php, ruby, python, etc). +- [ ] If contributing template-only or documentation-only changes which will change sample output, [build the project](https://github.com/OpenAPITools/openapi-generator#14---build-projects) beforehand. +- [ ] Run the shell script `./bin/generate-samples.sh`to update all Petstore samples related to your fix. This is important, as CI jobs will verify _all_ generator outputs of your HEAD commit as it would merge with master. These must match the expectations made by your contribution. You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example `./bin/generate-samples.sh bin/config/java*`. - [ ] File the PR against the [correct branch](https://github.com/OpenAPITools/openapi-generator/wiki/Git-Branches): `master`, `4.3.x`, `5.0.x`. Default: `master`. - [ ] Copy the [technical committee](https://github.com/openapitools/openapi-generator/#62---openapi-generator-technical-committee) to review the pull request if your PR is targeting a particular programming language. diff --git a/.travis.yml b/.travis.yml index 471a4bef9c7..d8493d013f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -101,6 +101,9 @@ before_install: # install Qt5 - sudo apt install -y --no-install-recommends qt5-default - cmake --version + # perl dep + - cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) + - cpanm --quiet --no-interactive Test::Exception Test::More Log::Any LWP::UserAgent URI::Query Module::Runtime DateTime Module::Find Moose::Role JSON || echo "Igorned failure from cpanm" # show host table to confirm petstore.swagger.io is mapped to localhost - cat /etc/hosts # show java version diff --git a/CI/.drone.yml b/CI/.drone.yml index 3cb1983fbb5..55d437c07d6 100644 --- a/CI/.drone.yml +++ b/CI/.drone.yml @@ -38,6 +38,6 @@ steps: # generate test scripts - /bin/bash bin/tests/run-all-test # generate all petstore samples (client, servers, doc) - - /bin/bash bin/run-all-petstore + - /bin/bash bin/generate-samples.sh # generate all petstore samples (openapi3) - - /bin/bash bin/openapi3/run-all-petstore + - /bin/bash bin/generate-samples.sh bin/configs/other/*.yaml diff --git a/CI/bitrise.yml b/CI/bitrise.yml index de1bf901f26..73d2e2b29a3 100644 --- a/CI/bitrise.yml +++ b/CI/bitrise.yml @@ -38,7 +38,7 @@ workflows: set -e - sh bin/swift5-all.sh + sh bin/generate-samples.sh bin/configs/swift5-*.yaml - script@1.1.5: title: Run Swift5 tests inputs: diff --git a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj deleted file mode 100644 index 4893f78082a..00000000000 --- a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - netcoreapp2.0 - - false - - - - - Org.OpenAPITools - - - - - - - - - - - diff --git a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfo.cs b/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfo.cs deleted file mode 100644 index 0c9ebe09457..00000000000 --- a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfo.cs +++ /dev/null @@ -1,23 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Org.OpenAPITools.Test")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Org.OpenAPITools.Test")] -[assembly: System.Reflection.AssemblyTitleAttribute("Org.OpenAPITools.Test")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfoInputs.cache b/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfoInputs.cache deleted file mode 100644 index 217033a3db2..00000000000 --- a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -19e887ae0fddb9fd03c4341951ee9077703a652f diff --git a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj deleted file mode 100644 index 4893f78082a..00000000000 --- a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - netcoreapp2.0 - - false - - - - - Org.OpenAPITools - - - - - - - - - - - diff --git a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfo.cs b/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfo.cs deleted file mode 100644 index 0c9ebe09457..00000000000 --- a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfo.cs +++ /dev/null @@ -1,23 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Org.OpenAPITools.Test")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Org.OpenAPITools.Test")] -[assembly: System.Reflection.AssemblyTitleAttribute("Org.OpenAPITools.Test")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// Generated by the MSBuild WriteCodeFragment class. - diff --git a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfoInputs.cache b/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfoInputs.cache deleted file mode 100644 index 217033a3db2..00000000000 --- a/CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/obj/Debug/netcoreapp2.0/Org.OpenAPITools.Test.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -19e887ae0fddb9fd03c4341951ee9077703a652f diff --git a/CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj b/CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj deleted file mode 100644 index 9b5a34202cb..00000000000 --- a/CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Debug - AnyCPU - {19F1DEBC-DE5E-4517-8062-F000CD499087} - Library - Properties - Org.OpenAPITools.Test - Org.OpenAPITools.Test - v4.5 - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - $(SolutionDir)\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - ..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - ..\..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - ..\..\vendor\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll - - - $(SolutionDir)\packages\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll - ..\packages\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll - ..\..\packages\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll - ..\..\vendor\JsonSubTypes.1.6.0\lib\net45\JsonSubTypes.dll - - - $(SolutionDir)\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll - ..\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll - ..\..\packages\RestSharp.105.1.0\lib\net45\RestSharp.dll - ..\..\vendor\RestSharp.105.1.0\lib\net45\RestSharp.dll - - - $(SolutionDir)\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll - ..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll - ..\..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll - ..\..\vendor\NUnit.3.11.0\lib\net45\nunit.framework.dll - - - - - - - - - - - - {321C8C3F-0156-40C1-AE42-D59761FB9B6C} - Org.OpenAPITools - - - - - - - diff --git a/CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csprojAssemblyReference.cache b/CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csprojAssemblyReference.cache deleted file mode 100644 index 2bd5c20b30f..00000000000 Binary files a/CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csprojAssemblyReference.cache and /dev/null differ diff --git a/CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java b/CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java deleted file mode 100644 index f05c230dc75..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.openapitools.client; - -import org.junit.*; -import static org.junit.Assert.*; - - -public class ConfigurationTest { - @Test - public void testDefaultApiClient() { - ApiClient apiClient = Configuration.getDefaultApiClient(); - assertNotNull(apiClient); - assertEquals("http://petstore.swagger.io:80/v2", apiClient.getBasePath()); - assertFalse(apiClient.isDebugging()); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java b/CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java deleted file mode 100644 index aa7c81759ec..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.openapitools.client; - -import org.junit.*; -import static org.junit.Assert.*; - - -public class StringUtilTest { - @Test - public void testContainsIgnoreCase() { - assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "abc")); - assertTrue(StringUtil.containsIgnoreCase(new String[]{"abc"}, "ABC")); - assertTrue(StringUtil.containsIgnoreCase(new String[]{"ABC"}, "abc")); - assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, "ABC")); - assertTrue(StringUtil.containsIgnoreCase(new String[]{null, "abc"}, null)); - - assertFalse(StringUtil.containsIgnoreCase(new String[]{"abc"}, "def")); - assertFalse(StringUtil.containsIgnoreCase(new String[]{}, "ABC")); - assertFalse(StringUtil.containsIgnoreCase(new String[]{}, null)); - } - - @Test - public void testJoin() { - String[] array = {"aa", "bb", "cc"}; - assertEquals("aa,bb,cc", StringUtil.join(array, ",")); - assertEquals("aa, bb, cc", StringUtil.join(array, ", ")); - assertEquals("aabbcc", StringUtil.join(array, "")); - assertEquals("aa bb cc", StringUtil.join(array, " ")); - assertEquals("aa\nbb\ncc", StringUtil.join(array, "\n")); - - assertEquals("", StringUtil.join(new String[]{}, ",")); - assertEquals("abc", StringUtil.join(new String[]{"abc"}, ",")); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey1/ApiClientTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey1/ApiClientTest.java deleted file mode 100644 index 682690f049d..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey1/ApiClientTest.java +++ /dev/null @@ -1,291 +0,0 @@ -package org.openapitools.client; - -import org.openapitools.client.auth.*; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.*; - -import org.junit.*; -import static org.junit.Assert.*; - - -public class ApiClientTest { - ApiClient apiClient = null; - - @Before - public void setup() { - apiClient = new ApiClient(); - } - - @Test - public void testParseAndFormatDate() { - // default date format - String dateStr = "2015-11-07T03:49:09.356Z"; - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09.356+00:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09.356Z"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T05:49:09.356+02:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T02:49:09.356-01:00"))); - - // custom date format: without milli-seconds, custom time zone - DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.ROOT); - format.setTimeZone(TimeZone.getTimeZone("GMT+10")); - apiClient.setDateFormat(format); - dateStr = "2015-11-07T13:49:09+10:00"; - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09+00:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09Z"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T00:49:09-03:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T13:49:09+10:00"))); - } - - @Test - public void testIsJsonMime() { - assertFalse(apiClient.isJsonMime(null)); - assertFalse(apiClient.isJsonMime("")); - assertFalse(apiClient.isJsonMime("text/plain")); - assertFalse(apiClient.isJsonMime("application/xml")); - assertFalse(apiClient.isJsonMime("application/jsonp")); - assertFalse(apiClient.isJsonMime("example/json")); - assertFalse(apiClient.isJsonMime("example/foo+bar+jsonx")); - assertFalse(apiClient.isJsonMime("example/foo+bar+xjson")); - - assertTrue(apiClient.isJsonMime("application/json")); - assertTrue(apiClient.isJsonMime("application/json; charset=UTF8")); - assertTrue(apiClient.isJsonMime("APPLICATION/JSON")); - - assertTrue(apiClient.isJsonMime("application/problem+json")); - assertTrue(apiClient.isJsonMime("APPLICATION/PROBLEM+JSON")); - assertTrue(apiClient.isJsonMime("application/json\t")); - assertTrue(apiClient.isJsonMime("example/foo+bar+json")); - assertTrue(apiClient.isJsonMime("example/foo+json;x;y")); - assertTrue(apiClient.isJsonMime("example/foo+json\t;")); - assertTrue(apiClient.isJsonMime("Example/fOO+JSON")); - } - - @Test - public void testSelectHeaderAccept() { - String[] accepts = {"application/json", "application/xml"}; - assertEquals("application/json", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"APPLICATION/XML", "APPLICATION/JSON"}; - assertEquals("APPLICATION/JSON", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals("application/json; charset=UTF8", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"text/plain", "application/xml"}; - assertEquals("text/plain,application/xml", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{}; - assertNull(apiClient.selectHeaderAccept(accepts)); - } - - @Test - public void testSelectHeaderContentType() { - String[] contentTypes = {"application/json", "application/xml"}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"APPLICATION/JSON", "APPLICATION/XML"}; - assertEquals("APPLICATION/JSON", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals("application/json; charset=UTF8", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"text/plain", "application/xml"}; - assertEquals("text/plain", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); - } - - @Test - public void testGetAuthentications() { - Map auths = apiClient.getAuthentications(); - - Authentication auth = auths.get("api_key"); - assertNotNull(auth); - assertTrue(auth instanceof ApiKeyAuth); - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) auth; - assertEquals("header", apiKeyAuth.getLocation()); - assertEquals("api_key", apiKeyAuth.getParamName()); - - auth = auths.get("petstore_auth"); - assertTrue(auth instanceof OAuth); - assertSame(auth, apiClient.getAuthentication("petstore_auth")); - - assertNull(auths.get("unknown")); - - try { - auths.put("my_auth", new HttpBasicAuth()); - fail("the authentications returned should not be modifiable"); - } catch (UnsupportedOperationException e) { - } - } - - @Test - public void testSetUsernameAndPassword() { - HttpBasicAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof HttpBasicAuth) { - auth = (HttpBasicAuth) _auth; - break; - } - } - auth.setUsername(null); - auth.setPassword(null); - - apiClient.setUsername("my-username"); - apiClient.setPassword("my-password"); - assertEquals("my-username", auth.getUsername()); - assertEquals("my-password", auth.getPassword()); - - // reset values - auth.setUsername(null); - auth.setPassword(null); - } - - @Test - public void testSetApiKeyAndPrefix() { - ApiKeyAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof ApiKeyAuth) { - auth = (ApiKeyAuth) _auth; - break; - } - } - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - - apiClient.setApiKey("my-api-key"); - apiClient.setApiKeyPrefix("Token"); - assertEquals("my-api-key", auth.getApiKey()); - assertEquals("Token", auth.getApiKeyPrefix()); - - // reset values - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - } - - @Test - public void testParameterToPairWhenNameIsInvalid() throws Exception { - List pairs_a = apiClient.parameterToPair(null, new Integer(1)); - List pairs_b = apiClient.parameterToPair("", new Integer(1)); - - assertTrue(pairs_a.isEmpty()); - assertTrue(pairs_b.isEmpty()); - } - - @Test - public void testParameterToPairWhenValueIsNull() throws Exception { - List pairs = apiClient.parameterToPair("param-a", null); - - assertTrue(pairs.isEmpty()); - } - - @Test - public void testParameterToPairWhenValueIsEmptyString() throws Exception { - // single empty string - List pairs = apiClient.parameterToPair("param-a", " "); - assertEquals(1, pairs.size()); - } - - @Test - public void testParameterToPairWhenValueIsNotCollection() throws Exception { - String name = "param-a"; - Integer value = 1; - - List pairs = apiClient.parameterToPair(name, value); - - assertEquals(1, pairs.size()); - assertEquals(value, Integer.valueOf(pairs.get(0).getValue())); - } - - @Test - public void testParameterToPairWhenValueIsCollection() throws Exception { - List values = new ArrayList(); - values.add("value-a"); - values.add(123); - values.add(new Date()); - - List pairs = apiClient.parameterToPair("param-a", values); - assertEquals(0, pairs.size()); - } - - @Test - public void testParameterToPairsWhenNameIsInvalid() throws Exception { - List objects = new ArrayList(); - objects.add(new Integer(1)); - - List pairs_a = apiClient.parameterToPairs("csv", null, objects); - List pairs_b = apiClient.parameterToPairs("csv", "", objects); - - assertTrue(pairs_a.isEmpty()); - assertTrue(pairs_b.isEmpty()); - } - - @Test - public void testParameterToPairsWhenValueIsNull() throws Exception { - List pairs = apiClient.parameterToPairs("csv", "param-a", null); - - assertTrue(pairs.isEmpty()); - } - - @Test - public void testParameterToPairsWhenValueIsEmptyStrings() throws Exception { - // list of empty strings - List strs = new ArrayList(); - strs.add(" "); - strs.add(" "); - strs.add(" "); - - List concatStrings = apiClient.parameterToPairs("csv", "param-a", strs); - - assertEquals(1, concatStrings.size()); - assertFalse(concatStrings.get(0).getValue().isEmpty()); // should contain some delimiters - } - - @Test - public void testParameterToPairsWhenValueIsCollection() throws Exception { - Map collectionFormatMap = new HashMap(); - collectionFormatMap.put("csv", ","); - collectionFormatMap.put("tsv", "\t"); - collectionFormatMap.put("ssv", " "); - collectionFormatMap.put("pipes", "|"); - collectionFormatMap.put("", ","); // no format, must default to csv - collectionFormatMap.put("unknown", ","); // all other formats, must default to csv - - String name = "param-a"; - - List values = new ArrayList(); - values.add("value-a"); - values.add(123); - values.add(new Date()); - - // check for multi separately - List multiPairs = apiClient.parameterToPairs("multi", name, values); - assertEquals(values.size(), multiPairs.size()); - for (int i = 0; i < values.size(); i++) { - assertEquals(apiClient.escapeString(apiClient.parameterToString(values.get(i))), multiPairs.get(i).getValue()); - } - - // all other formats - for (String collectionFormat : collectionFormatMap.keySet()) { - List pairs = apiClient.parameterToPairs(collectionFormat, name, values); - - assertEquals(1, pairs.size()); - - String delimiter = collectionFormatMap.get(collectionFormat); - if (!delimiter.equals(",")) { - // commas are not escaped because they are reserved characters in URIs - delimiter = apiClient.escapeString(delimiter); - } - String[] pairValueSplit = pairs.get(0).getValue().split(delimiter); - - // must equal input values - assertEquals(values.size(), pairValueSplit.length); - for (int i = 0; i < values.size(); i++) { - assertEquals(apiClient.escapeString(apiClient.parameterToString(values.get(i))), pairValueSplit[i]); - } - } - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/ApiKeyAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/ApiKeyAuthTest.java deleted file mode 100644 index 02f5da4c221..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/ApiKeyAuthTest.java +++ /dev/null @@ -1,71 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.openapitools.client.Pair; -import org.junit.*; -import static org.junit.Assert.*; - - -public class ApiKeyAuthTest { - @Test - public void testApplyToParamsInQuery() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); - auth.setApiKey("my-api-key"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - assertEquals(1, queryParams.size()); - for (Pair queryParam : queryParams) { - assertEquals("my-api-key", queryParam.getValue()); - } - - // no changes to header or cookie parameters - assertEquals(0, headerParams.size()); - assertEquals(0, cookieParams.size()); - } - - @Test - public void testApplyToParamsInHeaderWithPrefix() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - - assertEquals(1, headerParams.size()); - assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN")); - } - - @Test - public void testApplyToParamsInCookieWithPrefix() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or header parameters - assertEquals(0, queryParams.size()); - assertEquals(0, headerParams.size()); - - assertEquals(1, cookieParams.size()); - assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN")); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/HttpBasicAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/HttpBasicAuthTest.java deleted file mode 100644 index 458e73e8a7e..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/HttpBasicAuthTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.openapitools.client.Pair; -import org.junit.*; -import static org.junit.Assert.*; - - -public class HttpBasicAuthTest { - HttpBasicAuth auth = null; - - @Before - public void setup() { - auth = new HttpBasicAuth(); - } - - @Test - public void testApplyToParams() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - auth.setUsername("my-username"); - auth.setPassword("my-password"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(1, headerParams.size()); - // the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix - String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ="; - assertEquals(expected, headerParams.get("Authorization")); - - // null username should be treated as empty string - auth.setUsername(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // the string below is base64-encoded result of ":my-password" with the "Basic " prefix - expected = "Basic Om15LXBhc3N3b3Jk"; - assertEquals(expected, headerParams.get("Authorization")); - - // null password should be treated as empty string - auth.setUsername("my-username"); - auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // the string below is base64-encoded result of "my-username:" with the "Basic " prefix - expected = "Basic bXktdXNlcm5hbWU6"; - assertEquals(expected, headerParams.get("Authorization")); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey1/model/EnumValueTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey1/model/EnumValueTest.java deleted file mode 100644 index 47bfe940d3c..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey1/model/EnumValueTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapitools.client.model; - -import org.junit.Test; - -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.ObjectWriter; -import com.fasterxml.jackson.databind.SerializationFeature; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -public class EnumValueTest { - - @Test - public void testEnumClass() { - assertEquals(EnumClass._ABC.toString(), "_abc"); - assertEquals(EnumClass._EFG.toString(), "-efg"); - assertEquals(EnumClass._XYZ_.toString(), "(xyz)"); - } - - @Test - public void testEnumTest() { - // test enum value - EnumTest enumTest = new EnumTest(); - enumTest.setEnumString(EnumTest.EnumStringEnum.LOWER); - enumTest.setEnumInteger(EnumTest.EnumIntegerEnum.NUMBER_1); - enumTest.setEnumNumber(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1); - - assertEquals(EnumTest.EnumStringEnum.UPPER.toString(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.UPPER.getValue(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.LOWER.toString(), "lower"); - assertEquals(EnumTest.EnumStringEnum.LOWER.getValue(), "lower"); - - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_1.toString(), "1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_1.getValue() == 1); - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.toString(), "-1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.getValue() == -1); - - assertEquals(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.toString(), "1.1"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.getValue() == 1.1); - assertEquals(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.toString(), "-1.2"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.getValue() == -1.2); - - try { - // test serialization (object => json) - ObjectMapper mapper = new ObjectMapper(); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - ObjectWriter ow = mapper.writer(); - String json = ow.writeValueAsString(enumTest); - assertEquals(json, "{\"enum_string\":\"lower\",\"enum_string_required\":null,\"enum_integer\":1,\"enum_number\":1.1,\"outerEnum\":null}"); - - // test deserialization (json => object) - EnumTest fromString = mapper.readValue(json, EnumTest.class); - assertEquals(fromString.getEnumString().toString(), "lower"); - assertEquals(fromString.getEnumInteger().toString(), "1"); - assertEquals(fromString.getEnumNumber().toString(), "1.1"); - - } catch (Exception e) { - fail("Exception thrown during serialization/deserialzation of JSON: " + e.getMessage()); - } - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey2/ApiClientTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey2/ApiClientTest.java deleted file mode 100644 index 1fcc0bca7f4..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey2/ApiClientTest.java +++ /dev/null @@ -1,249 +0,0 @@ -package org.openapitools.client; - -import org.openapitools.client.auth.*; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.*; - -import org.junit.*; -import static org.junit.Assert.*; - - -public class ApiClientTest { - ApiClient apiClient = null; - - @Before - public void setup() { - apiClient = new ApiClient(); - } - - @Test - public void testParseAndFormatDate() { - // default date format - String dateStr = "2015-11-07T03:49:09.356Z"; - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09.356+00:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09.356Z"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T05:49:09.356+02:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T02:49:09.356-01:00"))); - - // custom date format: without milli-seconds, custom time zone - DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.ROOT); - format.setTimeZone(TimeZone.getTimeZone("GMT+10")); - apiClient.setDateFormat(format); - dateStr = "2015-11-07T13:49:09+10:00"; - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09+00:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09Z"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T00:49:09-03:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T13:49:09+10:00"))); - } - - @Test - public void testIsJsonMime() { - assertFalse(apiClient.isJsonMime(null)); - assertFalse(apiClient.isJsonMime("")); - assertFalse(apiClient.isJsonMime("text/plain")); - assertFalse(apiClient.isJsonMime("application/xml")); - assertFalse(apiClient.isJsonMime("application/jsonp")); - assertFalse(apiClient.isJsonMime("example/json")); - assertFalse(apiClient.isJsonMime("example/foo+bar+jsonx")); - assertFalse(apiClient.isJsonMime("example/foo+bar+xjson")); - - assertTrue(apiClient.isJsonMime("application/json")); - assertTrue(apiClient.isJsonMime("application/json; charset=UTF8")); - assertTrue(apiClient.isJsonMime("APPLICATION/JSON")); - - assertTrue(apiClient.isJsonMime("application/problem+json")); - assertTrue(apiClient.isJsonMime("APPLICATION/PROBLEM+JSON")); - assertTrue(apiClient.isJsonMime("application/json\t")); - assertTrue(apiClient.isJsonMime("example/foo+bar+json")); - assertTrue(apiClient.isJsonMime("example/foo+json;x;y")); - assertTrue(apiClient.isJsonMime("example/foo+json\t;")); - assertTrue(apiClient.isJsonMime("Example/fOO+JSON")); - } - - @Test - public void testSelectHeaderAccept() { - String[] accepts = {"application/json", "application/xml"}; - assertEquals("application/json", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"APPLICATION/XML", "APPLICATION/JSON"}; - assertEquals("APPLICATION/JSON", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals("application/json; charset=UTF8", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"text/plain", "application/xml"}; - assertEquals("text/plain,application/xml", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{}; - assertNull(apiClient.selectHeaderAccept(accepts)); - } - - @Test - public void testSelectHeaderContentType() { - String[] contentTypes = {"application/json", "application/xml"}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"APPLICATION/JSON", "APPLICATION/XML"}; - assertEquals("APPLICATION/JSON", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals("application/json; charset=UTF8", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"text/plain", "application/xml"}; - assertEquals("text/plain", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); - } - - @Test - public void testGetAuthentications() { - Map auths = apiClient.getAuthentications(); - - Authentication auth = auths.get("api_key"); - assertNotNull(auth); - assertTrue(auth instanceof ApiKeyAuth); - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) auth; - assertEquals("header", apiKeyAuth.getLocation()); - assertEquals("api_key", apiKeyAuth.getParamName()); - - auth = auths.get("petstore_auth"); - assertTrue(auth instanceof OAuth); - assertSame(auth, apiClient.getAuthentication("petstore_auth")); - - assertNull(auths.get("unknown")); - - try { - auths.put("my_auth", new HttpBasicAuth()); - fail("the authentications returned should not be modifiable"); - } catch (UnsupportedOperationException e) { - } - } - - @Test - public void testSetUsernameAndPassword() { - HttpBasicAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof HttpBasicAuth) { - auth = (HttpBasicAuth) _auth; - break; - } - } - auth.setUsername(null); - auth.setPassword(null); - - apiClient.setUsername("my-username"); - apiClient.setPassword("my-password"); - assertEquals("my-username", auth.getUsername()); - assertEquals("my-password", auth.getPassword()); - - // reset values - auth.setUsername(null); - auth.setPassword(null); - } - - @Test - public void testSetApiKeyAndPrefix() { - ApiKeyAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof ApiKeyAuth) { - auth = (ApiKeyAuth) _auth; - break; - } - } - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - - apiClient.setApiKey("my-api-key"); - apiClient.setApiKeyPrefix("Token"); - assertEquals("my-api-key", auth.getApiKey()); - assertEquals("Token", auth.getApiKeyPrefix()); - - // reset values - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - } - - @Test - public void testParameterToPairsWhenNameIsInvalid() throws Exception { - List pairs_a = apiClient.parameterToPairs("csv", null, new Integer(1)); - List pairs_b = apiClient.parameterToPairs("csv", "", new Integer(1)); - - assertTrue(pairs_a.isEmpty()); - assertTrue(pairs_b.isEmpty()); - } - - @Test - public void testParameterToPairsWhenValueIsNull() throws Exception { - List pairs = apiClient.parameterToPairs("csv", "param-a", null); - - assertTrue(pairs.isEmpty()); - } - - @Test - public void testParameterToPairsWhenValueIsEmptyStrings() throws Exception { - - // single empty string - List pairs = apiClient.parameterToPairs("csv", "param-a", " "); - assertEquals(1, pairs.size()); - - // list of empty strings - List strs = new ArrayList(); - strs.add(" "); - strs.add(" "); - strs.add(" "); - - List concatStrings = apiClient.parameterToPairs("csv", "param-a", strs); - - assertEquals(1, concatStrings.size()); - assertFalse(concatStrings.get(0).getValue().isEmpty()); // should contain some delimiters - } - - @Test - public void testParameterToPairsWhenValueIsNotCollection() throws Exception { - String name = "param-a"; - Integer value = 1; - - List pairs = apiClient.parameterToPairs("csv", name, value); - - assertEquals(1, pairs.size()); - assertEquals(value, Integer.valueOf(pairs.get(0).getValue())); - } - - @Test - public void testParameterToPairsWhenValueIsCollection() throws Exception { - Map collectionFormatMap = new HashMap(); - collectionFormatMap.put("csv", ","); - collectionFormatMap.put("tsv", "\t"); - collectionFormatMap.put("ssv", " "); - collectionFormatMap.put("pipes", "\\|"); - collectionFormatMap.put("", ","); // no format, must default to csv - collectionFormatMap.put("unknown", ","); // all other formats, must default to csv - - String name = "param-a"; - - List values = new ArrayList(); - values.add("value-a"); - values.add(123); - values.add(new Date()); - - // check for multi separately - List multiPairs = apiClient.parameterToPairs("multi", name, values); - assertEquals(values.size(), multiPairs.size()); - - // all other formats - for (String collectionFormat : collectionFormatMap.keySet()) { - List pairs = apiClient.parameterToPairs(collectionFormat, name, values); - - assertEquals(1, pairs.size()); - - String delimiter = collectionFormatMap.get(collectionFormat); - String[] pairValueSplit = pairs.get(0).getValue().split(delimiter); - - // must equal input values - assertEquals(values.size(), pairValueSplit.length); - } - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey2/JSONTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey2/JSONTest.java deleted file mode 100644 index f21b852065c..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey2/JSONTest.java +++ /dev/null @@ -1,58 +0,0 @@ -package org.openapitools.client; - -import org.openapitools.client.model.Order; -import org.junit.Before; -import org.junit.Test; -import org.threeten.bp.OffsetDateTime; -import org.threeten.bp.ZoneId; -import org.threeten.bp.format.DateTimeFormatter; - -import static org.junit.Assert.*; - - -public class JSONTest { - private JSON json = null; - private Order order = null; - - @Before - public void setup() { - json = new ApiClient().getJSON(); - order = new Order(); - } - - @Test - public void testDefaultDate() throws Exception { - final DateTimeFormatter dateFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - final String dateStr = "2015-11-07T14:11:05.267Z"; - order.setShipDate(dateFormat.parse(dateStr, OffsetDateTime.FROM)); - - String str = json.getContext(null).writeValueAsString(order); - Order o = json.getContext(null).readValue(str, Order.class); - assertEquals(dateStr, dateFormat.format(o.getShipDate())); - } - - @Test - public void testCustomDate() throws Exception { - final DateTimeFormatter dateFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME.withZone(ZoneId.of("Etc/GMT+2")); - final String dateStr = "2015-11-07T14:11:05-02:00"; - order.setShipDate(dateFormat.parse(dateStr, OffsetDateTime.FROM)); - - String str = json.getContext(null).writeValueAsString(order); - Order o = json.getContext(null).readValue(str, Order.class); - assertEquals(dateStr, dateFormat.format(o.getShipDate())); - } - - @Test - public void testSqlDateSerialization() throws Exception { - String str = json.getContext(null).writeValueAsString(new java.sql.Date(10)); - assertEquals("\"1970-01-01\"", str); - } - - @Test - public void testSqlDateDeserialization() throws Exception { - final String str = "1970-01-01"; - java.sql.Date date = json.getContext(null).readValue("\"" + str + "\"", java.sql.Date.class); - assertEquals(date.toString(), str); - } - -} \ No newline at end of file diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/ApiKeyAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/ApiKeyAuthTest.java deleted file mode 100644 index 3e335152092..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/ApiKeyAuthTest.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.openapitools.client.ApiException; -import org.openapitools.client.Pair; -import org.junit.*; -import static org.junit.Assert.*; - - -public class ApiKeyAuthTest { - @Test - public void testApplyToParamsInQuery() throws ApiException { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); - auth.setApiKey("my-api-key"); - auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); - - assertEquals(1, queryParams.size()); - for (Pair queryParam : queryParams) { - assertEquals("my-api-key", queryParam.getValue()); - } - - // no changes to header or cookie parameters - assertEquals(0, headerParams.size()); - assertEquals(0, cookieParams.size()); - } - - @Test - public void testApplyToParamsInHeaderWithPrefix() throws ApiException { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); - - // no changes to query parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(1, headerParams.size()); - assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN")); - } - - @Test - public void testApplyToParamsInCookieWithPrefix() throws ApiException { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); - - // no changes to query or header parameters - assertEquals(0, queryParams.size()); - assertEquals(0, headerParams.size()); - assertEquals(1, cookieParams.size()); - assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN")); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/HttpBasicAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/HttpBasicAuthTest.java deleted file mode 100644 index 88b2105e24f..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey2/auth/HttpBasicAuthTest.java +++ /dev/null @@ -1,54 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.openapitools.client.ApiException; -import org.openapitools.client.Pair; -import org.junit.*; -import static org.junit.Assert.*; - - -public class HttpBasicAuthTest { - HttpBasicAuth auth = null; - - @Before - public void setup() { - auth = new HttpBasicAuth(); - } - - @Test - public void testApplyToParams() throws ApiException { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - auth.setUsername("my-username"); - auth.setPassword("my-password"); - auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); - - // no changes to query parameters - assertEquals(0, queryParams.size()); - assertEquals(1, headerParams.size()); - // the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix - String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ="; - assertEquals(expected, headerParams.get("Authorization")); - - // null username should be treated as empty string - auth.setUsername(null); - auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); - // the string below is base64-encoded result of ":my-password" with the "Basic " prefix - expected = "Basic Om15LXBhc3N3b3Jk"; - assertEquals(expected, headerParams.get("Authorization")); - - // null password should be treated as empty string - auth.setUsername("my-username"); - auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams, null, null, null); - // the string below is base64-encoded result of "my-username:" with the "Basic " prefix - expected = "Basic bXktdXNlcm5hbWU6"; - assertEquals(expected, headerParams.get("Authorization")); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/jersey2/model/EnumValueTest.java b/CI/samples.ci/client/petstore/java/test-manual/jersey2/model/EnumValueTest.java deleted file mode 100644 index 47bfe940d3c..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/jersey2/model/EnumValueTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapitools.client.model; - -import org.junit.Test; - -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.ObjectWriter; -import com.fasterxml.jackson.databind.SerializationFeature; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -public class EnumValueTest { - - @Test - public void testEnumClass() { - assertEquals(EnumClass._ABC.toString(), "_abc"); - assertEquals(EnumClass._EFG.toString(), "-efg"); - assertEquals(EnumClass._XYZ_.toString(), "(xyz)"); - } - - @Test - public void testEnumTest() { - // test enum value - EnumTest enumTest = new EnumTest(); - enumTest.setEnumString(EnumTest.EnumStringEnum.LOWER); - enumTest.setEnumInteger(EnumTest.EnumIntegerEnum.NUMBER_1); - enumTest.setEnumNumber(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1); - - assertEquals(EnumTest.EnumStringEnum.UPPER.toString(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.UPPER.getValue(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.LOWER.toString(), "lower"); - assertEquals(EnumTest.EnumStringEnum.LOWER.getValue(), "lower"); - - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_1.toString(), "1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_1.getValue() == 1); - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.toString(), "-1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.getValue() == -1); - - assertEquals(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.toString(), "1.1"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.getValue() == 1.1); - assertEquals(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.toString(), "-1.2"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.getValue() == -1.2); - - try { - // test serialization (object => json) - ObjectMapper mapper = new ObjectMapper(); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - ObjectWriter ow = mapper.writer(); - String json = ow.writeValueAsString(enumTest); - assertEquals(json, "{\"enum_string\":\"lower\",\"enum_string_required\":null,\"enum_integer\":1,\"enum_number\":1.1,\"outerEnum\":null}"); - - // test deserialization (json => object) - EnumTest fromString = mapper.readValue(json, EnumTest.class); - assertEquals(fromString.getEnumString().toString(), "lower"); - assertEquals(fromString.getEnumInteger().toString(), "1"); - assertEquals(fromString.getEnumNumber().toString(), "1.1"); - - } catch (Exception e) { - fail("Exception thrown during serialization/deserialzation of JSON: " + e.getMessage()); - } - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/ApiClientTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/ApiClientTest.java deleted file mode 100644 index 626901593bd..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/ApiClientTest.java +++ /dev/null @@ -1,347 +0,0 @@ -package org.openapitools.client; - -import okhttp3.OkHttpClient; -import org.openapitools.client.auth.*; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.*; -import java.util.TimeZone; - -import org.junit.*; -import static org.junit.Assert.*; -import static org.hamcrest.CoreMatchers.*; - - -public class ApiClientTest { - ApiClient apiClient; - JSON json; - - @Before - public void setup() { - apiClient = new ApiClient(); - json = apiClient.getJSON(); - } - - @Test - public void testIsJsonMime() { - assertFalse(apiClient.isJsonMime(null)); - assertFalse(apiClient.isJsonMime("")); - assertFalse(apiClient.isJsonMime("text/plain")); - assertFalse(apiClient.isJsonMime("application/xml")); - assertFalse(apiClient.isJsonMime("application/jsonp")); - assertFalse(apiClient.isJsonMime("example/json")); - assertFalse(apiClient.isJsonMime("example/foo+bar+jsonx")); - assertFalse(apiClient.isJsonMime("example/foo+bar+xjson")); - - assertTrue(apiClient.isJsonMime("application/json")); - assertTrue(apiClient.isJsonMime("application/json; charset=UTF8")); - assertTrue(apiClient.isJsonMime("APPLICATION/JSON")); - - assertTrue(apiClient.isJsonMime("application/problem+json")); - assertTrue(apiClient.isJsonMime("APPLICATION/PROBLEM+JSON")); - assertTrue(apiClient.isJsonMime("application/json\t")); - assertTrue(apiClient.isJsonMime("example/foo+bar+json")); - assertTrue(apiClient.isJsonMime("example/foo+json;x;y")); - assertTrue(apiClient.isJsonMime("example/foo+json\t;")); - assertTrue(apiClient.isJsonMime("Example/fOO+JSON")); - - assertTrue(apiClient.isJsonMime("application/json-patch+json")); - } - - @Test - public void testSelectHeaderAccept() { - String[] accepts = {"application/json", "application/xml"}; - assertEquals("application/json", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"APPLICATION/XML", "APPLICATION/JSON"}; - assertEquals("APPLICATION/JSON", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals("application/json; charset=UTF8", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"text/plain", "application/xml"}; - assertEquals("text/plain,application/xml", apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{}; - assertNull(apiClient.selectHeaderAccept(accepts)); - } - - @Test - public void testSelectHeaderContentType() { - String[] contentTypes = {"application/json", "application/xml"}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"APPLICATION/JSON", "APPLICATION/XML"}; - assertEquals("APPLICATION/JSON", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals("application/json; charset=UTF8", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"text/plain", "application/xml"}; - assertEquals("text/plain", apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{}; - assertEquals("application/json", apiClient.selectHeaderContentType(contentTypes)); - } - - @Test - public void testGetAuthentications() { - Map auths = apiClient.getAuthentications(); - - Authentication auth = auths.get("api_key"); - assertNotNull(auth); - assertTrue(auth instanceof ApiKeyAuth); - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) auth; - assertEquals("header", apiKeyAuth.getLocation()); - assertEquals("api_key", apiKeyAuth.getParamName()); - - auth = auths.get("petstore_auth"); - assertTrue(auth instanceof OAuth); - assertSame(auth, apiClient.getAuthentication("petstore_auth")); - - assertNull(auths.get("unknown")); - - try { - auths.put("my_auth", new HttpBasicAuth()); - fail("the authentications returned should not be modifiable"); - } catch (UnsupportedOperationException e) { - } - } - - /* - @Test - public void testSetUsernameAndPassword() { - HttpBasicAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof HttpBasicAuth) { - auth = (HttpBasicAuth) _auth; - break; - } - } - auth.setUsername(null); - auth.setPassword(null); - - apiClient.setUsername("my-username"); - apiClient.setPassword("my-password"); - assertEquals("my-username", auth.getUsername()); - assertEquals("my-password", auth.getPassword()); - - // reset values - auth.setUsername(null); - auth.setPassword(null); - } - */ - - @Test - public void testSetApiKeyAndPrefix() { - ApiKeyAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof ApiKeyAuth) { - auth = (ApiKeyAuth) _auth; - break; - } - } - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - - apiClient.setApiKey("my-api-key"); - apiClient.setApiKeyPrefix("Token"); - assertEquals("my-api-key", auth.getApiKey()); - assertEquals("Token", auth.getApiKeyPrefix()); - - // reset values - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - } - - @Test - public void testGetAndSetConnectTimeout() { - // connect timeout defaults to 10 seconds - assertEquals(10000, apiClient.getConnectTimeout()); - assertEquals(10000, apiClient.getHttpClient().connectTimeoutMillis()); - - apiClient.setConnectTimeout(0); - assertEquals(0, apiClient.getConnectTimeout()); - assertEquals(0, apiClient.getHttpClient().connectTimeoutMillis()); - - apiClient.setConnectTimeout(10000); - } - - @Test - public void testGetAndSetReadTimeout() { - // read timeout defaults to 10 seconds - assertEquals(10000, apiClient.getReadTimeout()); - assertEquals(10000, apiClient.getHttpClient().readTimeoutMillis()); - - apiClient.setReadTimeout(0); - assertEquals(0, apiClient.getReadTimeout()); - assertEquals(0, apiClient.getHttpClient().readTimeoutMillis()); - - apiClient.setReadTimeout(10000); - } - - @Test - public void testGetAndSetWriteTimeout() { - // write timeout defaults to 10 seconds - assertEquals(10000, apiClient.getWriteTimeout()); - assertEquals(10000, apiClient.getHttpClient().writeTimeoutMillis()); - - apiClient.setWriteTimeout(0); - assertEquals(0, apiClient.getWriteTimeout()); - assertEquals(0, apiClient.getHttpClient().writeTimeoutMillis()); - - apiClient.setWriteTimeout(10000); - } - - @Test - public void testParameterToPairWhenNameIsInvalid() throws Exception { - List pairs_a = apiClient.parameterToPair(null, new Integer(1)); - List pairs_b = apiClient.parameterToPair("", new Integer(1)); - - assertTrue(pairs_a.isEmpty()); - assertTrue(pairs_b.isEmpty()); - } - - @Test - public void testParameterToPairWhenValueIsNull() throws Exception { - List pairs = apiClient.parameterToPair("param-a", null); - - assertTrue(pairs.isEmpty()); - } - - @Test - public void testParameterToPairWhenValueIsEmptyString() throws Exception { - // single empty string - List pairs = apiClient.parameterToPair("param-a", " "); - assertEquals(1, pairs.size()); - } - - @Test - public void testParameterToPairWhenValueIsNotCollection() throws Exception { - String name = "param-a"; - Integer value = 1; - - List pairs = apiClient.parameterToPair(name, value); - - assertEquals(1, pairs.size()); - assertEquals(value, Integer.valueOf(pairs.get(0).getValue())); - } - - @Test - public void testParameterToPairWhenValueIsCollection() throws Exception { - List values = new ArrayList(); - values.add("value-a"); - values.add(123); - values.add(new Date()); - - List pairs = apiClient.parameterToPair("param-a", values); - assertEquals(0, pairs.size()); - } - - @Test - public void testParameterToPairsWhenNameIsInvalid() throws Exception { - List objects = new ArrayList(); - objects.add(new Integer(1)); - - List pairs_a = apiClient.parameterToPairs("csv", null, objects); - List pairs_b = apiClient.parameterToPairs("csv", "", objects); - - assertTrue(pairs_a.isEmpty()); - assertTrue(pairs_b.isEmpty()); - } - - @Test - public void testParameterToPairsWhenValueIsNull() throws Exception { - List pairs = apiClient.parameterToPairs("csv", "param-a", null); - - assertTrue(pairs.isEmpty()); - } - - @Test - public void testParameterToPairsWhenValueIsEmptyStrings() throws Exception { - // list of empty strings - List strs = new ArrayList(); - strs.add(" "); - strs.add(" "); - strs.add(" "); - - List concatStrings = apiClient.parameterToPairs("csv", "param-a", strs); - - assertEquals(1, concatStrings.size()); - assertFalse(concatStrings.get(0).getValue().isEmpty()); // should contain some delimiters - } - - @Test - public void testParameterToPairsWhenValueIsCollection() throws Exception { - Map collectionFormatMap = new HashMap(); - collectionFormatMap.put("csv", ","); - collectionFormatMap.put("tsv", "\t"); - collectionFormatMap.put("ssv", " "); - collectionFormatMap.put("pipes", "|"); - collectionFormatMap.put("", ","); // no format, must default to csv - collectionFormatMap.put("unknown", ","); // all other formats, must default to csv - - String name = "param-a"; - - List values = new ArrayList(); - values.add("value-a"); - values.add(123); - values.add(new Date()); - - // check for multi separately - List multiPairs = apiClient.parameterToPairs("multi", name, values); - assertEquals(values.size(), multiPairs.size()); - for (int i = 0; i < values.size(); i++) { - assertEquals(apiClient.escapeString(apiClient.parameterToString(values.get(i))), multiPairs.get(i).getValue()); - } - - // all other formats - for (String collectionFormat : collectionFormatMap.keySet()) { - List pairs = apiClient.parameterToPairs(collectionFormat, name, values); - - assertEquals(1, pairs.size()); - - String delimiter = collectionFormatMap.get(collectionFormat); - if (!delimiter.equals(",")) { - // commas are not escaped because they are reserved characters in URIs - delimiter = apiClient.escapeString(delimiter); - } - String[] pairValueSplit = pairs.get(0).getValue().split(delimiter); - - // must equal input values - assertEquals(values.size(), pairValueSplit.length); - for (int i = 0; i < values.size(); i++) { - assertEquals(apiClient.escapeString(apiClient.parameterToString(values.get(i))), pairValueSplit[i]); - } - } - } - - @Test - public void testSanitizeFilename() { - assertEquals("sun", apiClient.sanitizeFilename("sun")); - assertEquals("sun.gif", apiClient.sanitizeFilename("sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename("../sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename("/var/tmp/sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename("./sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename("..\\sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename("\\var\\tmp\\sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename("c:\\var\\tmp\\sun.gif")); - assertEquals("sun.gif", apiClient.sanitizeFilename(".\\sun.gif")); - } - - @Test - public void testNewHttpClient() { - OkHttpClient oldClient = apiClient.getHttpClient(); - apiClient.setHttpClient(oldClient.newBuilder().build()); - assertThat(apiClient.getHttpClient(), is(not(oldClient))); - } - - /** - * Tests the invariant that the HttpClient for the ApiClient must never be null - */ - @Test(expected = NullPointerException.class) - public void testNullHttpClient() { - apiClient.setHttpClient(null); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/JSONTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/JSONTest.java deleted file mode 100644 index 1c825e39256..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/JSONTest.java +++ /dev/null @@ -1,202 +0,0 @@ -package org.openapitools.client; - -import com.google.gson.reflect.TypeToken; - -import org.openapitools.client.model.Order; - -import java.lang.Exception; -import java.lang.reflect.Type; -import java.nio.charset.StandardCharsets; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Calendar; -import java.util.Date; -import java.util.GregorianCalendar; -import java.util.Locale; -import java.util.TimeZone; - -import okio.ByteString; -import org.junit.*; -import org.threeten.bp.LocalDate; -import org.threeten.bp.OffsetDateTime; -import org.threeten.bp.ZoneId; -import org.threeten.bp.ZoneOffset; -import org.threeten.bp.format.DateTimeFormatter; - -import static org.junit.Assert.*; - -public class JSONTest { - private ApiClient apiClient = null; - private JSON json = null; - private Order order = null; - - @Before - public void setup() { - apiClient = new ApiClient(); - json = apiClient.getJSON(); - order = new Order(); - } - - @Test - public void testSqlDateTypeAdapter() { - final String str = "\"2015-11-07\""; - final java.sql.Date date = java.sql.Date.valueOf("2015-11-07"); - - assertEquals(str, json.serialize(date)); - assertEquals(json.deserialize(str, java.sql.Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T03:49:09.356" + getCurrentTimezoneOffset() + "\"", java.sql.Date.class).toString(), date.toString()); - - // custom date format: without day - DateFormat format = new SimpleDateFormat("yyyy-MM", Locale.ROOT); - apiClient.setSqlDateFormat(format); - String dateStr = "\"2015-11\""; - assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09Z\"", java.sql.Date.class))); - assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11\"", java.sql.Date.class))); - } - - @Test - public void testDateTypeAdapter() { - Calendar cal = new GregorianCalendar(2015, 10, 7, 3, 49, 9); - cal.setTimeZone(TimeZone.getTimeZone("UTC")); - - assertEquals(json.deserialize("\"2015-11-07T05:49:09+02\"", Date.class), cal.getTime()); - - cal.set(Calendar.MILLISECOND, 300); - assertEquals(json.deserialize("\"2015-11-07T03:49:09.3Z\"", Date.class), cal.getTime()); - - cal.set(Calendar.MILLISECOND, 356); - Date date = cal.getTime(); - - final String utcDate = "\"2015-11-07T03:49:09.356Z\""; - assertEquals(json.deserialize(utcDate, Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T03:49:09.356+00:00\"", Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T05:49:09.356+02:00\"", Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T02:49:09.356-01:00\"", Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T03:49:09.356Z\"", Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T03:49:09.356+00\"", Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T02:49:09.356-0100\"", Date.class), date); - assertEquals(json.deserialize("\"2015-11-07T03:49:09.356456789Z\"", Date.class), date); - - assertEquals(utcDate, json.serialize(date)); - - // custom datetime format: without milli-seconds, custom time zone - DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.ROOT); - format.setTimeZone(TimeZone.getTimeZone("GMT+10")); - apiClient.setDateFormat(format); - - String dateStr = "\"2015-11-07T13:49:09+10:00\""; - assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09+00:00\"", Date.class))); - assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T03:49:09Z\"", Date.class))); - assertEquals(dateStr, json.serialize(json.deserialize("\"2015-11-07T00:49:09-03:00\"", Date.class))); - - try { - // invalid time zone format - json.deserialize("\"2015-11-07T03:49:09+00\"", Date.class); - fail("json parsing should fail"); - } catch (RuntimeException e) { - // OK - } - try { - // unexpected miliseconds - json.deserialize("\"2015-11-07T03:49:09.000Z\"", Date.class); - fail("json parsing should fail"); - } catch (RuntimeException e) { - // OK - } - - } - - @Test - public void testOffsetDateTimeTypeAdapter() { - final String str = "\"2016-09-09T08:02:03.123-03:00\""; - OffsetDateTime date = OffsetDateTime.of(2016, 9, 9, 8, 2, 3, 123000000, ZoneOffset.of("-3")); - - assertEquals(str, json.serialize(date)); - //Use toString() instead of isEqual to verify that the offset is preserved - assertEquals(json.deserialize(str, OffsetDateTime.class).toString(), date.toString()); - } - - @Test - public void testLocalDateTypeAdapter() { - final String str = "\"2016-09-09\""; - final LocalDate date = LocalDate.of(2016, 9, 9); - - assertEquals(str, json.serialize(date)); - assertEquals(json.deserialize(str, LocalDate.class), date); - } - - - @Test - public void testDefaultDate() throws Exception { - final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - final String dateStr = "2015-11-07T14:11:05.267Z"; - order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM)); - - String str = json.serialize(order); - Type type = new TypeToken() { }.getType(); - Order o = json.deserialize(str, type); - assertEquals(dateStr, datetimeFormat.format(o.getShipDate())); - } - - @Test - public void testCustomDate() throws Exception { - final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME.withZone(ZoneId.of("Etc/GMT+2")); - final String dateStr = "2015-11-07T14:11:05-02:00"; - order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM)); - - String str = json.serialize(order); - Type type = new TypeToken() { }.getType(); - Order o = json.deserialize(str, type); - assertEquals(dateStr, datetimeFormat.format(o.getShipDate())); - } - - @Test - public void testByteArrayTypeAdapterSerialization() { - // Arrange - final String expectedBytesAsString = "Let's pretend this a jpg or something"; - final byte[] expectedBytes = expectedBytesAsString.getBytes(StandardCharsets.UTF_8); - - // Act - String serializedBytesWithQuotes = json.serialize(expectedBytes); - - // Assert - String serializedBytes = serializedBytesWithQuotes.substring(1, serializedBytesWithQuotes.length() - 1); - if (json.getGson().htmlSafe()) { - serializedBytes = serializedBytes.replaceAll("\\\\u003d", "="); - } - ByteString actualAsByteString = ByteString.decodeBase64(serializedBytes); - byte[] actualBytes = actualAsByteString.toByteArray(); - assertEquals(expectedBytesAsString, new String(actualBytes, StandardCharsets.UTF_8)); - } - - @Test - public void testByteArrayTypeAdapterDeserialization() { - // Arrange - final String expectedBytesAsString = "Let's pretend this a jpg or something"; - final byte[] expectedBytes = expectedBytesAsString.getBytes(StandardCharsets.UTF_8); - final ByteString expectedByteString = ByteString.of(expectedBytes); - final String serializedBytes = expectedByteString.base64(); - final String serializedBytesWithQuotes = "\"" + serializedBytes + "\""; - Type type = new TypeToken() { }.getType(); - - // Act - byte[] actualDeserializedBytes = json.deserialize(serializedBytesWithQuotes, type); - - // Assert - assertEquals(expectedBytesAsString, new String(actualDeserializedBytes, StandardCharsets.UTF_8)); - } - - // Obtained 22JAN2018 from stackoverflow answer by PuguaSoft https://stackoverflow.com/questions/11399491/java-timezone-offset - // Direct link https://stackoverflow.com/a/16680815/3166133 - public static String getCurrentTimezoneOffset() { - - TimeZone tz = TimeZone.getDefault(); - Calendar cal = GregorianCalendar.getInstance(tz, Locale.ROOT); - int offsetInMillis = tz.getOffset(cal.getTimeInMillis()); - - String offset = String.format(Locale.ROOT,"%02d:%02d", Math.abs(offsetInMillis / 3600000), Math.abs((offsetInMillis / 60000) % 60)); - offset = (offsetInMillis >= 0 ? "+" : "-") + offset; - - return offset; - } -} \ No newline at end of file diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/api/PetApiTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/api/PetApiTest.java deleted file mode 100644 index 9562854f24c..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/api/PetApiTest.java +++ /dev/null @@ -1,564 +0,0 @@ -/* - * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.api; - -import org.openapitools.client.ApiException; -import org.openapitools.client.model.Pet; -import org.openapitools.client.auth.*; -import org.openapitools.client.model.*; -import org.openapitools.client.*; - -import java.lang.reflect.Type; -import java.util.Arrays; -import java.util.ArrayList; -import java.util.concurrent.ConcurrentLinkedQueue; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.TimeUnit; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.concurrent.ThreadLocalRandom; -import java.io.BufferedWriter; -import java.io.File; -import java.io.FileWriter; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import org.junit.*; - -import static org.junit.Assert.*; - -/** - * API tests for PetApi - */ -public class PetApiTest { - - private PetApi api = new PetApi(); - private static final Logger LOG = LoggerFactory.getLogger(PetApiTest.class); - // In the circle.yml file, /etc/host is configured with an entry to resolve petstore.swagger.io to 127.0.0.1 - private static String basePath = "http://petstore.swagger.io:80/v2"; - - @Before - public void setup() { - // setup authentication - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) api.getApiClient().getAuthentication("api_key"); - apiKeyAuth.setApiKey("special-key"); - api.getApiClient().setBasePath(basePath); - } - - @Test - public void testApiClient() { - // the default api client is used - assertEquals(Configuration.getDefaultApiClient(), api.getApiClient()); - assertNotNull(api.getApiClient()); - assertEquals(basePath, api.getApiClient().getBasePath()); - assertFalse(api.getApiClient().isDebugging()); - - ApiClient oldClient = api.getApiClient(); - - ApiClient newClient = new ApiClient(); - newClient.setVerifyingSsl(true); - newClient.setBasePath("http://example.com"); - newClient.setDebugging(true); - - // set api client via constructor - api = new PetApi(newClient); - assertNotNull(api.getApiClient()); - assertEquals("http://example.com", api.getApiClient().getBasePath()); - assertTrue(api.getApiClient().isDebugging()); - - // set api client via setter method - api.setApiClient(oldClient); - assertNotNull(api.getApiClient()); - assertEquals(basePath, api.getApiClient().getBasePath()); - assertFalse(api.getApiClient().isDebugging()); - } - - @Test - public void testCreateAndGetPet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetWithHttpInfo() throws Exception { - Pet pet = createPet(); - api.addPetWithHttpInfo(pet); - - ApiResponse resp = api.getPetByIdWithHttpInfo(pet.getId()); - assertEquals(200, resp.getStatusCode()); - assertEquals("application/json", resp.getHeaders().get("Content-Type").get(0)); - Pet fetched = resp.getData(); - - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetAsync() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - // to store returned Pet or error message/exception - final Map result = new HashMap(); - - api.getPetByIdAsync(pet.getId(), new ApiCallback() { - @Override - public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - result.put("error", e.getMessage()); - } - - @Override - public void onSuccess(Pet pet, int statusCode, Map> responseHeaders) { - result.put("pet", pet); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - //empty - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - //empty - } - }); - - // wait for the asynchronous call to finish (at most 10 seconds) - final int maxTry = 10; - int tryCount = 1; - Pet fetched = null; - do { - if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); - Thread.sleep(1000); - tryCount += 1; - if (result.get("error") != null) fail((String) result.get("error")); - if (result.get("pet") != null) { - fetched = (Pet) result.get("pet"); - break; - } - } while (result.isEmpty()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetPetAsyncInvalidID() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - // to store returned Pet or error message/exception - final Map result = new HashMap(); - - // test getting a nonexistent pet - result.clear(); - api.getPetByIdAsync(-10000L, new ApiCallback() { - @Override - public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - result.put("exception", e); - } - - @Override - public void onSuccess(Pet pet, int statusCode, Map> responseHeaders) { - result.put("pet", pet); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - //empty - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - //empty - } - }); - - // wait for the asynchronous call to finish (at most 10 seconds) - final int maxTry = 10; - int tryCount = 1; - Pet fetched = null; - ApiException exception = null; - - do { - if (tryCount > maxTry) fail("have not got result of getPetByIdAsync after 10 seconds"); - Thread.sleep(1000); - tryCount += 1; - if (result.get("pet") != null) fail("expected an error"); - if (result.get("exception") != null) { - exception = (ApiException) result.get("exception"); - break; - } - } while (result.isEmpty()); - assertNotNull(exception); - assertEquals(404, exception.getCode()); - assertEquals("Not Found", exception.getMessage()); - assertEquals("application/json", exception.getResponseHeaders().get("Content-Type").get(0)); - api.deletePet(pet.getId(), null); - } - - @Test - public void testCreateAndGetMultiplePetsAsync() throws Exception { - Pet pet1 = createPet(); - Pet pet2 = createPet(); - - final CountDownLatch addLatch = new CountDownLatch(2); - final TestApiCallback addCallback1 = new TestApiCallback(addLatch); - final TestApiCallback addCallback2 = new TestApiCallback(addLatch); - - // Make 2 simultaneous calls - api.addPetAsync(pet1, addCallback1); - api.addPetAsync(pet2, addCallback2); - - // wait for both asynchronous calls to finish (at most 10 seconds) - assertTrue(addLatch.await(10, TimeUnit.SECONDS)); - - assertTrue(addCallback1.isDone()); - assertTrue(addCallback2.isDone()); - - if (!addCallback1.isSuccess()) throw addCallback1.getException(); - if (!addCallback2.isSuccess()) throw addCallback2.getException(); - - assertValidProgress(addCallback1.getUploadProgress()); - assertValidProgress(addCallback2.getUploadProgress()); - - final CountDownLatch getLatch = new CountDownLatch(3); - final TestApiCallback getCallback1 = new TestApiCallback(getLatch); - final TestApiCallback getCallback2 = new TestApiCallback(getLatch); - final TestApiCallback getCallback3 = new TestApiCallback(getLatch); - - api.getPetByIdAsync(pet1.getId(), getCallback1); - api.getPetByIdAsync(pet2.getId(), getCallback2); - // Get nonexistent pet - api.getPetByIdAsync(-10000L, getCallback3); - - // wait for all asynchronous calls to finish (at most 10 seconds) - assertTrue(getLatch.await(10, TimeUnit.SECONDS)); - - assertTrue(getCallback1.isDone()); - assertTrue(getCallback2.isDone()); - assertTrue(getCallback3.isDone()); - - if (!getCallback1.isSuccess()) throw getCallback1.getException(); - if (!getCallback2.isSuccess()) throw getCallback2.getException(); - - assertPetMatches(pet1, getCallback1.getResult()); - assertPetMatches(pet2, getCallback2.getResult()); - - assertValidProgress(getCallback1.getDownloadProgress()); - assertValidProgress(getCallback2.getDownloadProgress()); - - // Last callback should fail with ApiException - assertFalse(getCallback3.isSuccess()); - final ApiException exception = getCallback3.getException(); - assertNotNull(exception); - assertEquals(404, exception.getCode()); - api.deletePet(pet1.getId(), null); - api.deletePet(pet2.getId(), null); - } - - - @Test - public void testUpdatePet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - pet.setName("programmer"); - - api.updatePet(pet); - - Pet fetched = api.getPetById(pet.getId()); - assertPetMatches(pet, fetched); - api.deletePet(pet.getId(), null); - } - - @Test - public void testFindPetsByStatus() throws Exception { - assertEquals(basePath, api.getApiClient().getBasePath()); - Pet pet = createPet(); - api.addPet(pet); - pet.setName("programmer"); - pet.setStatus(Pet.StatusEnum.PENDING); - api.updatePet(pet); - - List pets = api.findPetsByStatus(Arrays.asList("pending")); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - - assertTrue(found); - - api.deletePet(pet.getId(), null); - } - - @Test - @Ignore - public void testFindPetsByTags() throws Exception { - Pet pet = createPet(); - pet.setName("monster"); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - - List tags = new ArrayList(); - Tag tag1 = new Tag(); - tag1.setName("friendly"); - tags.add(tag1); - pet.setTags(tags); - - api.updatePet(pet); - - Set pets = api.findPetsByTags(new HashSet<>(Arrays.asList("friendly"))); - assertNotNull(pets); - - boolean found = false; - for (Pet fetched : pets) { - if (fetched.getId().equals(pet.getId())) { - found = true; - break; - } - } - assertTrue(found); - - api.deletePet(pet.getId(), null); - } - - @Test - public void testUpdatePetWithForm() throws Exception { - Pet pet = createPet(); - pet.setName("frank"); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - - api.updatePetWithForm(fetched.getId(), "furt", null); - Pet updated = api.getPetById(fetched.getId()); - - assertEquals(updated.getName(), "furt"); - api.deletePet(pet.getId(), null); - } - - @Test - public void testDeletePet() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - Pet fetched = api.getPetById(pet.getId()); - api.deletePet(pet.getId(), null); - - try { - fetched = api.getPetById(fetched.getId()); - fail("expected an error"); - } catch (ApiException e) { - LOG.info("Code: {}. Message: {}", e.getCode(), e.getMessage()); - assertEquals(404, e.getCode()); - } - } - - @Test - public void testUploadFile() throws Exception { - Pet pet = createPet(); - api.addPet(pet); - - File file = new File("hello.txt"); - BufferedWriter writer = new BufferedWriter(new FileWriter(file)); - writer.write("Hello world!"); - writer.close(); - - api.uploadFile(pet.getId(), "a test file", new File(file.getAbsolutePath())); - api.deletePet(pet.getId(), null); - } - - @Test - public void testEqualsAndHashCode() { - Pet pet1 = new Pet(); - Pet pet2 = new Pet(); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - - pet2.setName("really-happy"); - pet2.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); - assertFalse(pet1.equals(pet2)); - assertFalse(pet2.equals(pet1)); - assertFalse(pet1.hashCode() == (pet2.hashCode())); - assertTrue(pet2.equals(pet2)); - assertTrue(pet2.hashCode() == pet2.hashCode()); - - pet1.setName("really-happy"); - pet1.setPhotoUrls(new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2"))); - assertTrue(pet1.equals(pet2)); - assertTrue(pet2.equals(pet1)); - assertTrue(pet1.hashCode() == pet2.hashCode()); - assertTrue(pet1.equals(pet1)); - assertTrue(pet1.hashCode() == pet1.hashCode()); - } - - - private Pet createPet() { - Pet pet = new Pet(); - pet.setId(ThreadLocalRandom.current().nextLong(Long.MAX_VALUE)); - pet.setName("gorilla"); - - Category category = new Category(); - category.setName("really-happy"); - - pet.setCategory(category); - pet.setStatus(Pet.StatusEnum.AVAILABLE); - Set photos = new HashSet<>(Arrays.asList("http://foo.bar.com/1", "http://foo.bar.com/2")); - pet.setPhotoUrls(photos); - - return pet; - } - - private String serializeJson(Object o, ApiClient apiClient) { - return apiClient.getJSON().serialize(o); - } - - private T deserializeJson(String json, Type type, ApiClient apiClient) { - return (T) apiClient.getJSON().deserialize(json, type); - } - - private void assertPetMatches(Pet expected, Pet actual) { - assertNotNull(actual); - assertEquals(expected.getId(), actual.getId()); - assertNotNull(actual.getCategory()); - assertEquals(expected.getCategory().getName(), - actual.getCategory().getName()); - } - - /** - * Assert that the given upload/download progress list satisfies the - * following constraints: - *

- * - List is not empty - * - Byte count should be nondecreasing - * - The last element, and only the last element, should have done=true - */ - private void assertValidProgress(List progressList) { - assertFalse(progressList.isEmpty()); - - Progress prev = null; - int index = 0; - for (Progress progress : progressList) { - if (prev != null) { - if (prev.done || prev.bytes > progress.bytes) { - fail("Progress list out of order at index " + index - + ": " + progressList); - } - } - prev = progress; - index += 1; - } - - if (!prev.done) { - fail("Last progress item should have done=true: " + progressList); - } - } - - private static class TestApiCallback implements ApiCallback { - - private final CountDownLatch latch; - private final ConcurrentLinkedQueue uploadProgress = - new ConcurrentLinkedQueue(); - private final ConcurrentLinkedQueue downloadProgress = - new ConcurrentLinkedQueue(); - - private boolean done; - private boolean success; - private ApiException exception; - private T result; - - public TestApiCallback(CountDownLatch latch) { - this.latch = latch; - this.done = false; - } - - @Override - public void onFailure(ApiException e, int statusCode, Map> responseHeaders) { - exception = e; - this.done = true; - this.success = false; - latch.countDown(); - } - - @Override - public void onSuccess(T result, int statusCode, Map> responseHeaders) { - this.result = result; - this.done = true; - this.success = true; - latch.countDown(); - } - - @Override - public void onUploadProgress(long bytesWritten, long contentLength, boolean done) { - uploadProgress.add(new Progress(bytesWritten, contentLength, done)); - } - - @Override - public void onDownloadProgress(long bytesRead, long contentLength, boolean done) { - downloadProgress.add(new Progress(bytesRead, contentLength, done)); - } - - public boolean isDone() { - return done; - } - - public boolean isSuccess() { - return success; - } - - public ApiException getException() { - return exception; - } - - public T getResult() { - return result; - } - - public List getUploadProgress() { - return new ArrayList(uploadProgress); - } - - public List getDownloadProgress() { - return new ArrayList(downloadProgress); - } - } - - private static class Progress { - public final long bytes; - public final long contentLength; - public final boolean done; - - public Progress(long bytes, long contentLength, boolean done) { - this.bytes = bytes; - this.contentLength = contentLength; - this.done = done; - } - - @Override - public String toString() { - return ""; - } - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/ApiKeyAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/ApiKeyAuthTest.java deleted file mode 100644 index da25043b27e..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/ApiKeyAuthTest.java +++ /dev/null @@ -1,119 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.openapitools.client.Pair; -import org.junit.*; -import static org.junit.Assert.*; - - -public class ApiKeyAuthTest { - @Test - public void testApplyToParamsInQuery() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); - auth.setApiKey("my-api-key"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - assertEquals(1, queryParams.size()); - for (Pair queryParam : queryParams) { - assertEquals("my-api-key", queryParam.getValue()); - } - - // no changes to header or cookie parameters - assertEquals(0, headerParams.size()); - assertEquals(0, cookieParams.size()); - } - - @Test - public void testApplyToParamsInQueryWithNullValue() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); - auth.setApiKey(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to parameters - assertEquals(0, queryParams.size()); - assertEquals(0, headerParams.size()); - assertEquals(0, cookieParams.size()); - } - - @Test - public void testApplyToParamsInHeaderWithPrefix() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(1, headerParams.size()); - assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN")); - } - - @Test - public void testApplyToParamsInHeaderWithNullValue() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); - auth.setApiKey(null); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(0, headerParams.size()); - } - - @Test - public void testApplyToParamsInCookieWithPrefix() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or header parameters - assertEquals(0, queryParams.size()); - assertEquals(0, headerParams.size()); - assertEquals(1, cookieParams.size()); - assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN")); - } - - @Test - public void testApplyToParamsInCookieWithNullValue() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); - auth.setApiKey(null); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(0, headerParams.size()); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/HttpBasicAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/HttpBasicAuthTest.java deleted file mode 100644 index e963ea24f7f..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/HttpBasicAuthTest.java +++ /dev/null @@ -1,64 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.openapitools.client.Pair; -import org.junit.*; -import static org.junit.Assert.*; - - -public class HttpBasicAuthTest { - HttpBasicAuth auth = null; - - @Before - public void setup() { - auth = new HttpBasicAuth(); - } - - @Test - public void testApplyToParams() { - List queryParams = new ArrayList(); - Map headerParams = new HashMap(); - Map cookieParams = new HashMap(); - - auth.setUsername("my-username"); - auth.setPassword("my-password"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(1, headerParams.size()); - // the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix - String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ="; - assertEquals(expected, headerParams.get("Authorization")); - - // null username should be treated as empty string - auth.setUsername(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // the string below is base64-encoded result of ":my-password" with the "Basic " prefix - expected = "Basic Om15LXBhc3N3b3Jk"; - assertEquals(expected, headerParams.get("Authorization")); - - // null password should be treated as empty string - auth.setUsername("my-username"); - auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // the string below is base64-encoded result of "my-username:" with the "Basic " prefix - expected = "Basic bXktdXNlcm5hbWU6"; - assertEquals(expected, headerParams.get("Authorization")); - - // null username and password should be ignored - queryParams = new ArrayList(); - headerParams = new HashMap(); - auth.setUsername(null); - auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // no changes to parameters - assertEquals(0, queryParams.size()); - assertEquals(0, headerParams.size()); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/ArrayOfArrayOfNumberOnlyTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/ArrayOfArrayOfNumberOnlyTest.java deleted file mode 100644 index 27121aec515..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/ArrayOfArrayOfNumberOnlyTest.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package org.openapitools.client.model; - -import org.apache.commons.lang3.builder.EqualsBuilder; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.math.BigDecimal; -import java.util.ArrayList; -import java.util.List; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.Test; - -/** - * Model tests for ArrayOfArrayOfNumberOnly - */ -public class ArrayOfArrayOfNumberOnlyTest { - private final ArrayOfArrayOfNumberOnly model = new ArrayOfArrayOfNumberOnly(); - - /** - * Model tests for ArrayOfArrayOfNumberOnly - */ - @Test - public void test() { - // TODO: test ArrayOfArrayOfNumberOnly - } - - /** - * Test the property 'arrayArrayNumber' - */ - @Test - public void arrayArrayNumberTest() { - BigDecimal b1 = new BigDecimal("12.3"); - BigDecimal b2 = new BigDecimal("5.6"); - List arrayArrayNumber = new ArrayList(); - arrayArrayNumber.add(b1); - arrayArrayNumber.add(b2); - model.setArrayArrayNumber(new ArrayList>()); - model.getArrayArrayNumber().add(arrayArrayNumber); - - // create another instance for comparison - BigDecimal b3 = new BigDecimal("12.3"); - BigDecimal b4 = new BigDecimal("5.6"); - ArrayOfArrayOfNumberOnly model2 = new ArrayOfArrayOfNumberOnly(); - List arrayArrayNumber2 = new ArrayList(); - arrayArrayNumber2.add(b1); - arrayArrayNumber2.add(b2); - model2.setArrayArrayNumber(new ArrayList>()); - model2.getArrayArrayNumber().add(arrayArrayNumber2); - - Assert.assertTrue(model2.equals(model)); - } - -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/EnumValueTest.java b/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/EnumValueTest.java deleted file mode 100644 index 73440e547b2..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/EnumValueTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.openapitools.client.model; - -import org.junit.Test; - -import com.google.gson.Gson; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - -public class EnumValueTest { - - @Test - public void testEnumClass() { - assertEquals(EnumClass._ABC.toString(), "_abc"); - assertEquals(EnumClass._EFG.toString(), "-efg"); - assertEquals(EnumClass._XYZ_.toString(), "(xyz)"); - } - - @Test - public void testEnumTest() { - // test enum value - EnumTest enumTest = new EnumTest(); - enumTest.setEnumString(EnumTest.EnumStringEnum.LOWER); - enumTest.setEnumInteger(EnumTest.EnumIntegerEnum.NUMBER_1); - enumTest.setEnumNumber(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1); - - assertEquals(EnumTest.EnumStringEnum.UPPER.toString(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.UPPER.getValue(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.LOWER.toString(), "lower"); - assertEquals(EnumTest.EnumStringEnum.LOWER.getValue(), "lower"); - - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_1.toString(), "1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_1.getValue() == 1); - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.toString(), "-1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.getValue() == -1); - - assertEquals(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.toString(), "1.1"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.getValue() == 1.1); - assertEquals(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.toString(), "-1.2"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.getValue() == -1.2); - - // test serialization - Gson gson = new Gson(); - String json = gson.toJson(enumTest); - assertEquals(json, "{\"enum_string\":\"lower\",\"enum_integer\":1,\"enum_number\":1.1}"); - - // test deserialization - EnumTest fromString = gson.fromJson(json, EnumTest.class); - assertEquals(fromString.getEnumString().toString(), "lower"); - assertEquals(fromString.getEnumString().getValue(), "lower"); - assertEquals(fromString.getEnumInteger().toString(), "1"); - assertTrue(fromString.getEnumInteger().getValue() == 1); - assertEquals(fromString.getEnumNumber().toString(), "1.1"); - assertTrue(fromString.getEnumNumber().getValue() == 1.1); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/ApiClientTest.java b/CI/samples.ci/client/petstore/java/test-manual/resttemplate/ApiClientTest.java deleted file mode 100644 index 62068d754ea..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/ApiClientTest.java +++ /dev/null @@ -1,253 +0,0 @@ -package org.openapitools.client; - -import org.openapitools.client.auth.*; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.*; - -import org.junit.*; -import org.springframework.http.MediaType; -import org.springframework.util.MultiValueMap; - -import static org.junit.Assert.*; - - -public class ApiClientTest { - ApiClient apiClient = null; - - @Before - public void setup() { - apiClient = new ApiClient(); - } - - /** - * - */ - @Test - public void testParseAndFormatDate() { - // default date format - String dateStr = "2015-11-07T03:49:09.356Z"; - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09.356+00:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09.356Z"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T05:49:09.356+02:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T02:49:09.356-01:00"))); - - // custom date format: without milli-seconds, custom time zone - DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX", Locale.ROOT); - format.setTimeZone(TimeZone.getTimeZone("GMT+10")); - apiClient.setDateFormat(format); - dateStr = "2015-11-07T13:49:09+10:00"; - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09+00:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T03:49:09Z"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T00:49:09-03:00"))); - assertEquals(dateStr, apiClient.formatDate(apiClient.parseDate("2015-11-07T13:49:09+10:00"))); - } - - @Test - public void testIsJsonMime() { - assertFalse(apiClient.isJsonMime((String) null)); - assertFalse(apiClient.isJsonMime("")); - assertFalse(apiClient.isJsonMime("text/plain")); - assertFalse(apiClient.isJsonMime("application/xml")); - assertFalse(apiClient.isJsonMime("application/jsonp")); - assertFalse(apiClient.isJsonMime("example/json")); - assertFalse(apiClient.isJsonMime("example/foo+bar+jsonx")); - assertFalse(apiClient.isJsonMime("example/foo+bar+xjson")); - - assertTrue(apiClient.isJsonMime("application/json")); - assertTrue(apiClient.isJsonMime("application/json; charset=UTF8")); - assertTrue(apiClient.isJsonMime("APPLICATION/JSON")); - - assertTrue(apiClient.isJsonMime("application/problem+json")); - assertTrue(apiClient.isJsonMime("APPLICATION/PROBLEM+JSON")); - assertTrue(apiClient.isJsonMime("application/json\t")); - assertTrue(apiClient.isJsonMime("example/foo+bar+json")); - assertTrue(apiClient.isJsonMime("example/foo+json;x;y")); - assertTrue(apiClient.isJsonMime("example/foo+json\t;")); - assertTrue(apiClient.isJsonMime("Example/fOO+JSON")); - } - - @Test - public void testSelectHeaderAccept() { - String[] accepts = {"application/json", "application/xml"}; - assertEquals(Arrays.asList(MediaType.parseMediaType("application/json")), apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"APPLICATION/XML", "APPLICATION/JSON"}; - assertEquals(Arrays.asList(MediaType.parseMediaType("APPLICATION/JSON")), apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals(Arrays.asList(MediaType.parseMediaType("application/json; charset=UTF8")), apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{"text/plain", "application/xml"}; - assertEquals(Arrays.asList(MediaType.parseMediaType("text/plain"),MediaType.parseMediaType("application/xml")), apiClient.selectHeaderAccept(accepts)); - - accepts = new String[]{}; - assertNull(apiClient.selectHeaderAccept(accepts)); - } - - @Test - public void testSelectHeaderContentType() { - String[] contentTypes = {"application/json", "application/xml"}; - assertEquals(MediaType.parseMediaType("application/json"), apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"APPLICATION/JSON", "APPLICATION/XML"}; - assertEquals(MediaType.parseMediaType("APPLICATION/JSON"), apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"application/xml", "application/json; charset=UTF8"}; - assertEquals(MediaType.parseMediaType("application/json; charset=UTF8"), apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{"text/plain", "application/xml"}; - assertEquals(MediaType.parseMediaType("text/plain"), apiClient.selectHeaderContentType(contentTypes)); - - contentTypes = new String[]{}; - assertEquals(MediaType.parseMediaType("application/json"), apiClient.selectHeaderContentType(contentTypes)); - } - - @Test - public void testGetAuthentications() { - Map auths = apiClient.getAuthentications(); - - Authentication auth = auths.get("api_key"); - assertNotNull(auth); - assertTrue(auth instanceof ApiKeyAuth); - ApiKeyAuth apiKeyAuth = (ApiKeyAuth) auth; - assertEquals("header", apiKeyAuth.getLocation()); - assertEquals("api_key", apiKeyAuth.getParamName()); - - auth = auths.get("petstore_auth"); - assertTrue(auth instanceof OAuth); - assertSame(auth, apiClient.getAuthentication("petstore_auth")); - - assertNull(auths.get("unknown")); - - try { - auths.put("my_auth", new HttpBasicAuth()); - fail("the authentications returned should not be modifiable"); - } catch (UnsupportedOperationException e) { - } - } - - @Test - public void testSetUsernameAndPassword() { - HttpBasicAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof HttpBasicAuth) { - auth = (HttpBasicAuth) _auth; - break; - } - } - auth.setUsername(null); - auth.setPassword(null); - - apiClient.setUsername("my-username"); - apiClient.setPassword("my-password"); - assertEquals("my-username", auth.getUsername()); - assertEquals("my-password", auth.getPassword()); - - // reset values - auth.setUsername(null); - auth.setPassword(null); - } - - @Test - public void testSetApiKeyAndPrefix() { - ApiKeyAuth auth = null; - for (Authentication _auth : apiClient.getAuthentications().values()) { - if (_auth instanceof ApiKeyAuth) { - auth = (ApiKeyAuth) _auth; - break; - } - } - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - - apiClient.setApiKey("my-api-key"); - apiClient.setApiKeyPrefix("Token"); - assertEquals("my-api-key", auth.getApiKey()); - assertEquals("Token", auth.getApiKeyPrefix()); - - // reset values - auth.setApiKey(null); - auth.setApiKeyPrefix(null); - } - - @Test - public void testParameterToMultiValueMapWhenNameIsInvalid() throws Exception { - MultiValueMap pairs_a = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.CSV, null, new Integer(1)); - MultiValueMap pairs_b = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.CSV, "", new Integer(1)); - - assertTrue(pairs_a.isEmpty()); - assertTrue(pairs_b.isEmpty()); - } - - @Test - public void testParameterToMultiValueMapWhenValueIsNull() throws Exception { - MultiValueMap pairs = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.CSV, "param-a", null); - - assertTrue(pairs.isEmpty()); - } - - @Test - public void testParameterToMultiValueMapWhenValueIsEmptyStrings() throws Exception { - - // single empty string - MultiValueMap pairs = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.CSV, "param-a", " "); - assertEquals(1, pairs.size()); - - // list of empty strings - List strs = new ArrayList(); - strs.add(" "); - strs.add(" "); - strs.add(" "); - - MultiValueMap concatStrings = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.CSV, "param-a", strs); - - assertEquals(1, concatStrings.get("param-a").size()); - assertFalse(concatStrings.get("param-a").isEmpty()); // should contain some delimiters - } - - @Test - public void testParameterToMultiValueMapWhenValueIsNotCollection() throws Exception { - String name = "param-a"; - Integer value = 1; - - MultiValueMap pairs = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.CSV, name, value); - - assertEquals(1, pairs.get(name).size()); - assertEquals(value, Integer.valueOf(pairs.get(name).get(0))); - } - - @Test - public void testParameterToMultiValueMapWhenValueIsCollection() throws Exception { - Map collectionFormatMap = new HashMap(); - collectionFormatMap.put(ApiClient.CollectionFormat.CSV, ","); - collectionFormatMap.put(ApiClient.CollectionFormat.TSV, "\t"); - collectionFormatMap.put(ApiClient.CollectionFormat.SSV, " "); - collectionFormatMap.put(ApiClient.CollectionFormat.PIPES, "\\|"); - collectionFormatMap.put(null, ","); // no format, must default to csv - - String name = "param-a"; - - List values = new ArrayList(); - values.add("value-a"); - values.add(123); - values.add(new Date()); - - // check for multi separately - MultiValueMap multiValueMap = apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.MULTI, name, values); - assertEquals(values.size(), multiValueMap.get(name).size()); - - // all other formats - for (ApiClient.CollectionFormat collectionFormat : collectionFormatMap.keySet()) { - MultiValueMap pairs = apiClient.parameterToMultiValueMap(collectionFormat, name, values); - - assertEquals(1, pairs.size()); - - String delimiter = collectionFormatMap.get(collectionFormat); - String[] pairValueSplit = pairs.get(name).get(0).split(delimiter); - - assertEquals(values.size(), pairValueSplit.length); - } - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/ApiKeyAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/ApiKeyAuthTest.java deleted file mode 100644 index 2a21136cfe0..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/ApiKeyAuthTest.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.junit.*; -import org.springframework.http.HttpHeaders; -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; - -import static org.junit.Assert.*; - -public class ApiKeyAuthTest { - @Test - public void testApplyToParamsInQuery() { - MultiValueMap queryParams = new LinkedMultiValueMap(); - HttpHeaders headerParams = new HttpHeaders(); - MultiValueMap cookieParams = new LinkedMultiValueMap(); - - ApiKeyAuth auth = new ApiKeyAuth("query", "api_key"); - auth.setApiKey("my-api-key"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - assertEquals(1, queryParams.size()); - assertEquals("my-api-key", queryParams.get("api_key").get(0)); - - // no changes to header or cookie parameters - assertEquals(0, headerParams.size()); - assertEquals(0, cookieParams.size()); - } - - @Test - public void testApplyToParamsInHeaderWithPrefix() { - MultiValueMap queryParams = new LinkedMultiValueMap(); - HttpHeaders headerParams = new HttpHeaders(); - MultiValueMap cookieParams = new LinkedMultiValueMap(); - - ApiKeyAuth auth = new ApiKeyAuth("header", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(1, headerParams.size()); - assertEquals("Token my-api-token", headerParams.get("X-API-TOKEN").get(0)); - } - - @Test - public void testApplyToParamsInCookieWithPrefix() { - MultiValueMap queryParams = new LinkedMultiValueMap(); - HttpHeaders headerParams = new HttpHeaders(); - MultiValueMap cookieParams = new LinkedMultiValueMap(); - - ApiKeyAuth auth = new ApiKeyAuth("cookie", "X-API-TOKEN"); - auth.setApiKey("my-api-token"); - auth.setApiKeyPrefix("Token"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, headerParams.size()); - assertEquals(1, cookieParams.size()); - assertEquals("Token my-api-token", cookieParams.get("X-API-TOKEN").get(0)); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/HttpBasicAuthTest.java b/CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/HttpBasicAuthTest.java deleted file mode 100644 index 79eec957fcb..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/HttpBasicAuthTest.java +++ /dev/null @@ -1,56 +0,0 @@ -package org.openapitools.client.auth; - -import java.util.HashMap; -import java.util.ArrayList; -import java.util.Map; -import java.util.List; - -import org.junit.*; -import org.springframework.http.HttpHeaders; -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; - -import static org.junit.Assert.*; - -public class HttpBasicAuthTest { - HttpBasicAuth auth = null; - - @Before - public void setup() { - auth = new HttpBasicAuth(); - } - - @Test - public void testApplyToParams() { - MultiValueMap queryParams = new LinkedMultiValueMap(); - HttpHeaders headerParams = new HttpHeaders(); - MultiValueMap cookieParams = new LinkedMultiValueMap(); - - auth.setUsername("my-username"); - auth.setPassword("my-password"); - auth.applyToParams(queryParams, headerParams, cookieParams); - - // no changes to query or cookie parameters - assertEquals(0, queryParams.size()); - assertEquals(0, cookieParams.size()); - assertEquals(1, headerParams.size()); - // the string below is base64-encoded result of "my-username:my-password" with the "Basic " prefix - String expected = "Basic bXktdXNlcm5hbWU6bXktcGFzc3dvcmQ="; - assertEquals(expected, headerParams.get("Authorization").get(0)); - - // null username should be treated as empty string - auth.setUsername(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // the string below is base64-encoded result of ":my-password" with the "Basic " prefix - expected = "Basic Om15LXBhc3N3b3Jk"; - assertEquals(expected, headerParams.get("Authorization").get(1)); - - // null password should be treated as empty string - auth.setUsername("my-username"); - auth.setPassword(null); - auth.applyToParams(queryParams, headerParams, cookieParams); - // the string below is base64-encoded result of "my-username:" with the "Basic " prefix - expected = "Basic bXktdXNlcm5hbWU6"; - assertEquals(expected, headerParams.get("Authorization").get(2)); - } -} diff --git a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/model/EnumValueTest.java b/CI/samples.ci/client/petstore/java/test-manual/resttemplate/model/EnumValueTest.java deleted file mode 100644 index 47bfe940d3c..00000000000 --- a/CI/samples.ci/client/petstore/java/test-manual/resttemplate/model/EnumValueTest.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.openapitools.client.model; - -import org.junit.Test; - -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.ObjectWriter; -import com.fasterxml.jackson.databind.SerializationFeature; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -public class EnumValueTest { - - @Test - public void testEnumClass() { - assertEquals(EnumClass._ABC.toString(), "_abc"); - assertEquals(EnumClass._EFG.toString(), "-efg"); - assertEquals(EnumClass._XYZ_.toString(), "(xyz)"); - } - - @Test - public void testEnumTest() { - // test enum value - EnumTest enumTest = new EnumTest(); - enumTest.setEnumString(EnumTest.EnumStringEnum.LOWER); - enumTest.setEnumInteger(EnumTest.EnumIntegerEnum.NUMBER_1); - enumTest.setEnumNumber(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1); - - assertEquals(EnumTest.EnumStringEnum.UPPER.toString(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.UPPER.getValue(), "UPPER"); - assertEquals(EnumTest.EnumStringEnum.LOWER.toString(), "lower"); - assertEquals(EnumTest.EnumStringEnum.LOWER.getValue(), "lower"); - - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_1.toString(), "1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_1.getValue() == 1); - assertEquals(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.toString(), "-1"); - assertTrue(EnumTest.EnumIntegerEnum.NUMBER_MINUS_1.getValue() == -1); - - assertEquals(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.toString(), "1.1"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_1_DOT_1.getValue() == 1.1); - assertEquals(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.toString(), "-1.2"); - assertTrue(EnumTest.EnumNumberEnum.NUMBER_MINUS_1_DOT_2.getValue() == -1.2); - - try { - // test serialization (object => json) - ObjectMapper mapper = new ObjectMapper(); - mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); - ObjectWriter ow = mapper.writer(); - String json = ow.writeValueAsString(enumTest); - assertEquals(json, "{\"enum_string\":\"lower\",\"enum_string_required\":null,\"enum_integer\":1,\"enum_number\":1.1,\"outerEnum\":null}"); - - // test deserialization (json => object) - EnumTest fromString = mapper.readValue(json, EnumTest.class); - assertEquals(fromString.getEnumString().toString(), "lower"); - assertEquals(fromString.getEnumInteger().toString(), "1"); - assertEquals(fromString.getEnumNumber().toString(), "1.1"); - - } catch (Exception e) { - fail("Exception thrown during serialization/deserialzation of JSON: " + e.getMessage()); - } - } -} diff --git a/CI/samples.ci/client/petstore/kotlin-threetenbp/pom.xml b/CI/samples.ci/client/petstore/kotlin-threetenbp/pom.xml deleted file mode 100644 index 7a670388889..00000000000 --- a/CI/samples.ci/client/petstore/kotlin-threetenbp/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - KotlinPetstoreThreetenbpTests - pom - 1.0-SNAPSHOT - kotlin-threetenbp - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - bundle-test - integration-test - - exec - - - gradle - - test - - - - - - - - diff --git a/CI/samples.ci/client/petstore/typescript-fetch/builds/default/pom.xml b/CI/samples.ci/client/petstore/typescript-fetch/builds/default/pom.xml deleted file mode 100644 index b40b83a0c75..00000000000 --- a/CI/samples.ci/client/petstore/typescript-fetch/builds/default/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ - - 4.0.0 - org.openapitools - TypeScriptAngularBuildPestoreClientTests - pom - 1.0-SNAPSHOT - TS Fetch Default Petstore Client - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - - diff --git a/CI/samples.ci/client/petstore/typescript-fetch/builds/es6-target/pom.xml b/CI/samples.ci/client/petstore/typescript-fetch/builds/es6-target/pom.xml deleted file mode 100644 index db6dfdfeb6a..00000000000 --- a/CI/samples.ci/client/petstore/typescript-fetch/builds/es6-target/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - 4.0.0 - org.openapitools - TypeScriptAngularBuildES6PestoreClientTests - pom - 1.0-SNAPSHOT - TS Fetch ES6 Petstore Client - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - integration-test - - exec - - - npm - - install - - - - - npm-test - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/CI/samples.ci/client/petstore/typescript-fetch/builds/multiple-parameters/pom.xml b/CI/samples.ci/client/petstore/typescript-fetch/builds/multiple-parameters/pom.xml deleted file mode 100644 index a6fc39c4f08..00000000000 --- a/CI/samples.ci/client/petstore/typescript-fetch/builds/multiple-parameters/pom.xml +++ /dev/null @@ -1,26 +0,0 @@ - - 4.0.0 - org.openapitools - TypeScriptAngularBuildPestoreClientTests - pom - 1.0-SNAPSHOT - TS Fetch Multiple Parameters Petstore Client - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - - diff --git a/CI/samples.ci/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/pom.xml b/CI/samples.ci/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/pom.xml deleted file mode 100644 index 35c073c7dca..00000000000 --- a/CI/samples.ci/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - 4.0.0 - org.openapitools - TypeScriptFetchBuildPrefixParameterInterfacesPestoreClientTests - pom - 1.0-SNAPSHOT - TS Fetch Petstore Client (with namespacing for parameter interfaces) - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - integration-test - - exec - - - npm - - install - - - - - npm-build - integration-test - - exec - - - npm - - run - build - - - - - npm-test - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/CI/samples.ci/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml b/CI/samples.ci/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml deleted file mode 100644 index 339fe766518..00000000000 --- a/CI/samples.ci/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml +++ /dev/null @@ -1,73 +0,0 @@ - - 4.0.0 - org.openapitools - TypeScriptAngularBuildWithNPMVersionPestoreClientTests - pom - 1.0-SNAPSHOT - TS Fetch Petstore Client (with npm) - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - integration-test - - exec - - - npm - - install - - - - - npm-build - integration-test - - exec - - - npm - - run - build - - - - - npm-test - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml b/CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml deleted file mode 100644 index 92063ea7bcc..00000000000 --- a/CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml +++ /dev/null @@ -1,59 +0,0 @@ - - 4.0.0 - org.openapitools - TypeScriptFetchPestoreClientTests - pom - 1.0-SNAPSHOT - TS Fetch Petstore Test Client - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - npm-install - pre-integration-test - - exec - - - npm - - install - - - - - npm-test - integration-test - - exec - - - npm - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-api-package-override/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-api-package-override/pom.xml deleted file mode 100644 index 640424c4ac6..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-api-package-override/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-api-package-override - pom - 1.0-SNAPSHOT - java-play-framework-api-package-override Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-controller-only/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-controller-only/pom.xml deleted file mode 100644 index ecc1280f2d0..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-controller-only/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-controller-only - pom - 1.0-SNAPSHOT - java-play-framework-controller-only Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-fake-endpoints/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-fake-endpoints/pom.xml deleted file mode 100644 index 46597a4a02d..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-fake-endpoints/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-fake-endpoints - pom - 1.0-SNAPSHOT - java-play-framework-fake-endpoints Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-no-bean-validation/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-no-bean-validation/pom.xml deleted file mode 100644 index 495a44e9bc1..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-no-bean-validation/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-no-bean-validation - pom - 1.0-SNAPSHOT - java-play-framework-no-bean-validation Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-no-exception-handling/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-no-exception-handling/pom.xml deleted file mode 100644 index 1943f316579..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-no-exception-handling/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-no-exception-handling - pom - 1.0-SNAPSHOT - java-play-framework-no-exception-handling Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-no-interface/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-no-interface/pom.xml deleted file mode 100644 index 29b0d52b87c..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-no-interface/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-no-interface - pom - 1.0-SNAPSHOT - java-play-framework-no-interface Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-no-swagger-ui/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-no-swagger-ui/pom.xml deleted file mode 100644 index d088603f853..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-no-swagger-ui/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-no-swagger-ui - pom - 1.0-SNAPSHOT - java-play-framework-no-swagger-ui Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework-no-wrap-calls/pom.xml b/CI/samples.ci/server/petstore/java-play-framework-no-wrap-calls/pom.xml deleted file mode 100644 index 258bba05873..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework-no-wrap-calls/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests-no-wrap-calls - pom - 1.0-SNAPSHOT - java-play-framework-no-wrap-calls Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/java-play-framework/pom.xml b/CI/samples.ci/server/petstore/java-play-framework/pom.xml deleted file mode 100644 index 91bbd25815e..00000000000 --- a/CI/samples.ci/server/petstore/java-play-framework/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - PlayServerTests - pom - 1.0-SNAPSHOT - java-play-framework Project - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.6.0 - - - Play Test - integration-test - - exec - - - sbt - - test - - - - - - - - diff --git a/CI/samples.ci/server/petstore/kotlin-server/ktor/pom.xml b/CI/samples.ci/server/petstore/kotlin-server/ktor/pom.xml deleted file mode 100644 index 3123ad353a5..00000000000 --- a/CI/samples.ci/server/petstore/kotlin-server/ktor/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - org.openapitools - KotlinPetstoreKtorTests - pom - 1.0-SNAPSHOT - kotlin-server-ktor - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory} - - - - - - org.codehaus.mojo - exec-maven-plugin - 1.2.1 - - - bundle-test - integration-test - - exec - - - gradle - - test - - - - - - - - diff --git a/CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csproj.CoreCompileInputs.cache b/CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csproj.CoreCompileInputs.cache deleted file mode 100644 index 4096123585d..00000000000 --- a/CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -c2fcc2ae9693a8e8d02b25e286844aad88188fcb diff --git a/CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csprojResolveAssemblyReference.cache b/CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csprojResolveAssemblyReference.cache deleted file mode 100644 index 76cdea6cfa7..00000000000 Binary files a/CI/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/obj/Debug/Org.OpenAPITools.Test.csprojResolveAssemblyReference.cache and /dev/null differ diff --git a/README.md b/README.md index 331bca34ac0..cddde638281 100644 --- a/README.md +++ b/README.md @@ -283,7 +283,7 @@ To generate code with this image, you'll need to mount a local location as a vol Example: ```sh -docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate \ +docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \ -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml \ -g go \ -o /local/out/go @@ -598,6 +598,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in - [GoDaddy](https://godaddy.com) - [Here](https://developer.here.com/) - [IBM](https://www.ibm.com/) +- [Instana](https://www.instana.com) - [JustStar](https://www.juststarinfo.com) - [k6.io](https://k6.io/) - [Klarna](https://www.klarna.com/) diff --git a/appveyor.yml b/appveyor.yml index c0feaeaa505..dd8ab4c8bc3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -32,7 +32,7 @@ install: - 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-ci" - ps: $PSVersionTable.PSVersion - - ps: Install-Module Pester -Force -Scope CurrentUser -RequiredVersion 4.3.1 + - ps: Install-Module Pester -Force -Scope CurrentUser build_script: - dotnet --info # build C# API client (netcore) @@ -50,10 +50,8 @@ build_script: # install openapi-generator locally - mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error # run the locally installed openapi-generator-gradle-plugin - - gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --info + - gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --stacktrace test_script: - # restore test-related files - - copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj # test c# API client (netcore) - dotnet test samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj - dotnet test samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj @@ -62,11 +60,12 @@ test_script: # test c# API client (with PropertyChanged) - nunit3-console samples\client\petstore\csharp\OpenAPIClientWithPropertyChanged\src\Org.OpenAPITools.Test\bin\Debug\Org.OpenAPITools.Test.dll --result=myresults.xml;format=AppVeyor +### TODO: Execute all generators via powershell or other # generate all petstore clients - - .\bin\windows\run-all-petstore.cmd - + # - .\bin\windows\run-all-petstore.cmd # generate all petstore clients (openapi3) - - .\bin\openapi3\windows\run-all-petstore.cmd + # - .\bin\openapi3\windows\run-all-petstore.cmd + # test ps pestore - ps: | $ErrorActionPreference = "Stop" diff --git a/bin/ada-petstore.sh b/bin/ada-petstore.sh deleted file mode 100755 index 5441bd13ec3..00000000000 --- a/bin/ada-petstore.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -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" -model="modules/openapi-generator/src/test/resources/2_0/petstore.yaml" -ags="generate --template-dir modules/openapi-generator/src/main/resources/Ada -g ada $@" -ags="$ags -i $model -t modules/openapi-generator/src/main/resources/Ada -o samples/client/petstore/ada" -ags="$ags --additional-properties projectName=Petstore --model-package Samples.Petstore" - -java $JAVA_OPTS -jar $executable $ags -rm -rf samples/client/petstore/ada/src/server diff --git a/bin/android-petstore-all.sh b/bin/android-petstore-all.sh deleted file mode 100755 index 08a03263a85..00000000000 --- a/bin/android-petstore-all.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -./bin/android-petstore-httpclient.sh -./bin/android-petstore-volley.sh - diff --git a/bin/android-petstore-httpclient.sh b/bin/android-petstore-httpclient.sh deleted file mode 100755 index d0982cec14f..00000000000 --- a/bin/android-petstore-httpclient.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/android -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g android --additional-properties library=httpclient -o samples/client/petstore/android/httpclient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/android-petstore-volley.json b/bin/android-petstore-volley.json deleted file mode 100644 index 7366f4817c9..00000000000 --- a/bin/android-petstore-volley.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "volley", - "artifactId": "petstore-android-volley" -} diff --git a/bin/android-petstore-volley.sh b/bin/android-petstore-volley.sh deleted file mode 100755 index af7edc7c393..00000000000 --- a/bin/android-petstore-volley.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g android -c bin/android-petstore-volley.json -o samples/client/petstore/android/volley $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/apache2-petstore-config.sh b/bin/apache2-petstore-config.sh deleted file mode 100755 index ee7f1e05cc6..00000000000 --- a/bin/apache2-petstore-config.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g apache2 -t modules/openapi-generator/src/main/resources/apache2/ -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o samples/config/petstore/apache2 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/apex-petstore.sh b/bin/apex-petstore.sh deleted file mode 100755 index c4a2e6e0daa..00000000000 --- a/bin/apex-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/apex -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g apex -o samples/client/petstore/apex $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/asciidoc-documentation-petstore.sh b/bin/asciidoc-documentation-petstore.sh deleted file mode 100755 index 2f72f2eeb02..00000000000 --- a/bin/asciidoc-documentation-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t modules/openapi-generator/src/main/resources/asciidoc-documentation --additional-properties=specDir=modules/openapi-generator/src/main/resources/asciidoc-documentation,snippetDir=. -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g asciidoc -o samples/documentation/asciidoc $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/aspnetcore-petstore-server-3.0.sh b/bin/aspnetcore-petstore-server-3.0.sh deleted file mode 100755 index 1da77bd3e97..00000000000 --- a/bin/aspnetcore-petstore-server-3.0.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g aspnetcore -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/aspnetcore/3.0/ -o samples/server/petstore/aspnetcore-3.0 --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} --additional-properties aspnetCoreVersion=3.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/aspnetcore-petstore-server-3.1.sh b/bin/aspnetcore-petstore-server-3.1.sh deleted file mode 100755 index 15310c75b2c..00000000000 --- a/bin/aspnetcore-petstore-server-3.1.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g aspnetcore -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/aspnetcore/3.0/ -o samples/server/petstore/aspnetcore-3.1 --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} --additional-properties aspnetCoreVersion=3.1 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/aspnetcore-petstore-server.sh b/bin/aspnetcore-petstore-server.sh deleted file mode 100755 index ec6aa29eed3..00000000000 --- a/bin/aspnetcore-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g aspnetcore -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/aspnetcore/2.1/ -o samples/server/petstore/aspnetcore --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/aspnetcore3-petstore-server.sh b/bin/aspnetcore3-petstore-server.sh deleted file mode 100644 index 56c3be609ce..00000000000 --- a/bin/aspnetcore3-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g aspnetcore -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/aspnetcore/3.0/ -o samples/server/petstore/aspnetcore3 --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} --additional-properties aspnetCoreVersion=3.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/avro-petstore.sh b/bin/avro-petstore.sh deleted file mode 100755 index 7b8045fcf88..00000000000 --- a/bin/avro-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/avro-schema -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g avro-schema -o samples/openapi3/schema/petstore/avro-schema $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/bash-petstore.sh b/bin/bash-petstore.sh deleted file mode 100755 index d5c4766731a..00000000000 --- a/bin/bash-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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" -args="generate -t modules/openapi-generator/src/main/resources/bash -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g bash -o samples/client/petstore/bash -c modules/openapi-generator/src/test/resources/2_0/bash-config.json --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $args diff --git a/bin/c-petstore.sh b/bin/c-petstore.sh deleted file mode 100755 index 19a69b8d0ea..00000000000 --- a/bin/c-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/C-libcurl -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g c -o samples/client/petstore/c $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/ci/apex-petstore.json b/bin/ci/apex-petstore.json deleted file mode 100644 index 73773132dfc..00000000000 --- a/bin/ci/apex-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "apex", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/apex", - "templateDir": "modules/openapi-generator/src/main/resources/apex" -} \ No newline at end of file diff --git a/bin/ci/csharp-netcore-petstore-1.json b/bin/ci/csharp-netcore-petstore-1.json deleted file mode 100644 index c2e1797c85b..00000000000 --- a/bin/ci/csharp-netcore-petstore-1.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "csharp-netcore", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/csharp-netcore/OpenAPIClientCore", - "templateDir": "modules/openapi-generator/src/main/resources/csharp-netcore/", - "additionalProperties": { - "packageGuid": "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}", - "useCompareNetObjects": true, - "targetFramework": "netcoreapp2.0" - } -} \ No newline at end of file diff --git a/bin/ci/csharp-netcore-petstore.json b/bin/ci/csharp-netcore-petstore.json deleted file mode 100644 index 506d74d1ab6..00000000000 --- a/bin/ci/csharp-netcore-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "csharp-netcore", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/csharp-netcore/OpenAPIClient", - "templateDir": "modules/openapi-generator/src/main/resources/csharp-netcore/", - "additionalProperties": { - "packageGuid": "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}", - "useCompareNetObjects": true - } -} \ No newline at end of file diff --git a/bin/ci/csharp-petstore.json b/bin/ci/csharp-petstore.json deleted file mode 100644 index fe5a9104e13..00000000000 --- a/bin/ci/csharp-petstore.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "csharp", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/csharp/OpenAPIClient", - "additionalProperties": { - "packageGuid": "{321C8C3F-0156-40C1-AE42-D59761FB9B6C}" - } -} \ No newline at end of file diff --git a/bin/ci/dart-flutter-petstore.json b/bin/ci/dart-flutter-petstore.json deleted file mode 100644 index 81213f1c104..00000000000 --- a/bin/ci/dart-flutter-petstore.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "dart", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart/flutter_petstore/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart", - "additionalProperties": { - "hideGenerationTimestamp": true, - "browserClient": false, - "supportDart2": false - } -} \ No newline at end of file diff --git a/bin/ci/dart-jaguar-petstore-1.json b/bin/ci/dart-jaguar-petstore-1.json deleted file mode 100644 index 2226b49c6ff..00000000000 --- a/bin/ci/dart-jaguar-petstore-1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "dart-jaguar", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart-jaguar/flutter_petstore/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar", - "additionalProperties": { - "hideGenerationTimestamp": true, - "pubName": "openapi" - } -} \ No newline at end of file diff --git a/bin/ci/dart-jaguar-petstore-2.json b/bin/ci/dart-jaguar-petstore-2.json deleted file mode 100644 index 2eed934b1cb..00000000000 --- a/bin/ci/dart-jaguar-petstore-2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "dart-jaguar", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml", - "outputDir": "samples/client/petstore/dart-jaguar/flutter_proto_petstore/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar", - "additionalProperties": { - "serialization": "proto", - "hideGenerationTimestamp": true, - "pubName": "openapi" - } -} \ No newline at end of file diff --git a/bin/ci/dart-jaguar-petstore-3.json b/bin/ci/dart-jaguar-petstore-3.json deleted file mode 100644 index d41ef5d40c6..00000000000 --- a/bin/ci/dart-jaguar-petstore-3.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "dart-jaguar", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml", - "outputDir": "samples/client/petstore/dart-jaguar/openapi_proto", - "templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar", - "additionalProperties": { - "serialization": "proto", - "hideGenerationTimestamp": true, - "pubName": "openapi" - } -} \ No newline at end of file diff --git a/bin/ci/dart-jaguar-petstore.json b/bin/ci/dart-jaguar-petstore.json deleted file mode 100644 index 761296fa286..00000000000 --- a/bin/ci/dart-jaguar-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "dart-jaguar", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart-jaguar/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart-jaguar", - "additionalProperties": { - "hideGenerationTimestamp": true, - "pubName": "openapi" - } -} \ No newline at end of file diff --git a/bin/ci/dart-petstore-flutter.json b/bin/ci/dart-petstore-flutter.json deleted file mode 100644 index 81213f1c104..00000000000 --- a/bin/ci/dart-petstore-flutter.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "dart", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart/flutter_petstore/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart", - "additionalProperties": { - "hideGenerationTimestamp": true, - "browserClient": false, - "supportDart2": false - } -} \ No newline at end of file diff --git a/bin/ci/dart-petstore-openapi-browser-client.json b/bin/ci/dart-petstore-openapi-browser-client.json deleted file mode 100644 index c26293f2f42..00000000000 --- a/bin/ci/dart-petstore-openapi-browser-client.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "dart", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart/openapi-browser-client", - "templateDir": "modules/openapi-generator/src/main/resources/dart", - "additionalProperties": { - "hideGenerationTimestamp": true, - "browserClient": true, - "supportDart2": false - } -} \ No newline at end of file diff --git a/bin/ci/dart-petstore.json b/bin/ci/dart-petstore.json deleted file mode 100644 index 3f3691a82e7..00000000000 --- a/bin/ci/dart-petstore.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "dart", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart", - "additionalProperties": { - "hideGenerationTimestamp": true, - "browserClient": false, - "supportDart2": false - } -} \ No newline at end of file diff --git a/bin/ci/dart2-petstore.json b/bin/ci/dart2-petstore.json deleted file mode 100644 index c12549e213d..00000000000 --- a/bin/ci/dart2-petstore.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "dart", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/dart2/openapi", - "templateDir": "modules/openapi-generator/src/main/resources/dart2", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/elixir-petstore.json b/bin/ci/elixir-petstore.json deleted file mode 100644 index e8ce9b6b116..00000000000 --- a/bin/ci/elixir-petstore.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "elixir", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/elixir/", - "templateDir": "modules/openapi-generator/src/main/resources/elixir", - "additionalProperties": { - "invokerPackage": "OpenapiPetstore" - } -} \ No newline at end of file diff --git a/bin/ci/go-gin-petstore-server.json b/bin/ci/go-gin-petstore-server.json deleted file mode 100644 index 9e55159bbc3..00000000000 --- a/bin/ci/go-gin-petstore-server.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "go-gin-server", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/go-gin-api-server", - "templateDir": "modules/openapi-generator/src/main/resources/go-gin-server", - "additionalProperties": { - "packageName": "petstoreserver", - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/go-petstore-withxml.json b/bin/ci/go-petstore-withxml.json deleted file mode 100644 index 6fdc619534a..00000000000 --- a/bin/ci/go-petstore-withxml.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "go", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/go/go-petstore-withXml", - "templateDir": "modules/openapi-generator/src/main/resources/go", - "additionalProperties": { - "packageName": "petstore", - "withXml": true, - "withGoCodegenComment": true - } -} \ No newline at end of file diff --git a/bin/ci/go-petstore.json b/bin/ci/go-petstore.json deleted file mode 100644 index ed3ae37ab26..00000000000 --- a/bin/ci/go-petstore.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "go", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/go/go-petstore", - "templateDir": "modules/openapi-generator/src/main/resources/go", - "additionalProperties": { - "packageName": "petstore" - } -} \ No newline at end of file diff --git a/bin/ci/groovy-petstore.json b/bin/ci/groovy-petstore.json deleted file mode 100644 index 6ed0f5f8c9c..00000000000 --- a/bin/ci/groovy-petstore.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "groovy", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/groovy", - "templateDir": "modules/openapi-generator/src/main/resources/Groovy/", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/haskell-http-client-petstore.json b/bin/ci/haskell-http-client-petstore.json deleted file mode 100644 index 49b28a41e57..00000000000 --- a/bin/ci/haskell-http-client-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "haskell-http-client", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/haskell-http-client", - "templateDir": "modules/openapi-generator/src/main/resources/haskell-http-client" -} \ No newline at end of file diff --git a/bin/ci/java-feign.json b/bin/ci/java-feign.json deleted file mode 100644 index 3e2d314e4d5..00000000000 --- a/bin/ci/java-feign.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "!include": "bin/java-petstore-feign-9x.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/feign", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/feign", - "additionalProperties": { - "hideGenerationTimestamp": true, - "booleanGetterPrefix": "is", - "additionalModelTypeAnnotations": "@javax.annotation.concurrent.Immutable" - } -} \ No newline at end of file diff --git a/bin/ci/java-feign10x.json b/bin/ci/java-feign10x.json deleted file mode 100644 index 77262b06219..00000000000 --- a/bin/ci/java-feign10x.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/java-petstore-feign-10x.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/feign10x", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/feign", - "additionalProperties": { - "hideGenerationTimestamp": true, - "booleanGetterPrefix": "is" - } -} \ No newline at end of file diff --git a/bin/ci/java-google-api-client.json b/bin/ci/java-google-api-client.json deleted file mode 100644 index 1a447f387fe..00000000000 --- a/bin/ci/java-google-api-client.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-google-api-client.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/google-api-client", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/google-api-client", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-cxf-annotated-base-path.json b/bin/ci/java-jaxrs-cxf-annotated-base-path.json deleted file mode 100644 index 5c914be89cd..00000000000 --- a/bin/ci/java-jaxrs-cxf-annotated-base-path.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "artifactId": "cxf-annotated-basepath", - "generatorName": "jaxrs-cxf", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-cxf-annotated-base-path", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf", - "additionalProperties": { - "hideGenerationTimestamp": true, - "useAnnotatedBasePath": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-cxf-cdi.json b/bin/ci/java-jaxrs-cxf-cdi.json deleted file mode 100644 index 2ce07d22159..00000000000 --- a/bin/ci/java-jaxrs-cxf-cdi.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "jaxrs-cxf-cdi", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-cxf-cdi", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-cxf-non-spring-app.json b/bin/ci/java-jaxrs-cxf-non-spring-app.json deleted file mode 100644 index d7864551b20..00000000000 --- a/bin/ci/java-jaxrs-cxf-non-spring-app.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "artifactId": "cxf-server-non-spring", - "generatorName": "jaxrs-cxf", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-cxf-non-spring-app", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf", - "additionalProperties": { - "hideGenerationTimestamp": true, - "generateNonSpringApplication": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-cxf.json b/bin/ci/java-jaxrs-cxf.json deleted file mode 100644 index 3d80df7a581..00000000000 --- a/bin/ci/java-jaxrs-cxf.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "jaxrs-cxf", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs-cxf", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/cxf", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-datelib-j8.json b/bin/ci/java-jaxrs-datelib-j8.json deleted file mode 100644 index f97c7cfa718..00000000000 --- a/bin/ci/java-jaxrs-datelib-j8.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/jaxrs-datelib-j8.json", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs-datelib-j8/", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-jersey.json b/bin/ci/java-jaxrs-jersey.json deleted file mode 100644 index 5065fb2c385..00000000000 --- a/bin/ci/java-jaxrs-jersey.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "artifactId": "openapiv3-jaxrs-jersey-petstore-server", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs-jersey", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-jersey1-useTags.json b/bin/ci/java-jaxrs-jersey1-useTags.json deleted file mode 100644 index 2b1696d0925..00000000000 --- a/bin/ci/java-jaxrs-jersey1-useTags.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "artifactId": "jaxrs-jersey1-useTags", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "library": "jersey1", - "outputDir": "samples/server/petstore/jaxrs/jersey1-useTags", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082", - "useTags": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-jersey1.json b/bin/ci/java-jaxrs-jersey1.json deleted file mode 100644 index a2dde704e72..00000000000 --- a/bin/ci/java-jaxrs-jersey1.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "artifactId": "jaxrs-jersey1-server", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "library": "jersey1", - "outputDir": "samples/server/petstore/jaxrs/jersey1", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-jersey2-useTags.json b/bin/ci/java-jaxrs-jersey2-useTags.json deleted file mode 100644 index 6c8aa420d31..00000000000 --- a/bin/ci/java-jaxrs-jersey2-useTags.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "artifactId": "jaxrs-jersey2-useTags", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs/jersey2-useTags", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082", - "useTags": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-jersey2.json b/bin/ci/java-jaxrs-jersey2.json deleted file mode 100644 index 7c88d46e05e..00000000000 --- a/bin/ci/java-jaxrs-jersey2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "jaxrs-jersey-petstore-server", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs/jersey2", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-resteasy-eap-java8-server.json b/bin/ci/java-jaxrs-resteasy-eap-java8-server.json deleted file mode 100644 index 2a7af42d82b..00000000000 --- a/bin/ci/java-jaxrs-resteasy-eap-java8-server.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/jaxrs-resteasy-eap-java8-petstore-server.json", - "artifactId": "jaxrs-resteasy-eap-java8-server", - "generatorName": "jaxrs-resteasy-eap", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-resteasy/eap-java8", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-resteasy-eap-joda-server.json b/bin/ci/java-jaxrs-resteasy-eap-joda-server.json deleted file mode 100644 index 242744045b1..00000000000 --- a/bin/ci/java-jaxrs-resteasy-eap-joda-server.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/jaxrs-resteasy-eap-joda-petstore-server.json", - "artifactId": "jaxrs-resteasy-eap-joda-server", - "generatorName": "jaxrs-resteasy-eap", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-resteasy/eap-joda", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-resteasy-eap.json b/bin/ci/java-jaxrs-resteasy-eap.json deleted file mode 100644 index 2ce98a184cc..00000000000 --- a/bin/ci/java-jaxrs-resteasy-eap.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "jaxrs-resteasy-eap", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-resteasy/eap", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-resteasy-joda-server.json b/bin/ci/java-jaxrs-resteasy-joda-server.json deleted file mode 100644 index aa243b2b0d2..00000000000 --- a/bin/ci/java-jaxrs-resteasy-joda-server.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/jaxrs-resteasy-joda-petstore-server.json", - "artifactId": "jaxrs-resteasy-joda-server", - "generatorName": "jaxrs-resteasy", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-resteasy/joda", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-resteasy.json b/bin/ci/java-jaxrs-resteasy.json deleted file mode 100644 index baf1a65e86c..00000000000 --- a/bin/ci/java-jaxrs-resteasy.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "jaxrs-resteasy", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/jaxrs-resteasy/default", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-spec-interface.json b/bin/ci/java-jaxrs-spec-interface.json deleted file mode 100644 index e588bfbacb7..00000000000 --- a/bin/ci/java-jaxrs-spec-interface.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "jaxrs-spec-interface-petstore-server", - "generatorName": "jaxrs-spec", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs-spec-interface", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serializableModel": true, - "interfaceOnly": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jaxrs-spec.json b/bin/ci/java-jaxrs-spec.json deleted file mode 100644 index b4ba832193e..00000000000 --- a/bin/ci/java-jaxrs-spec.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "artifactId": "jaxrs-spec-petstore-server", - "generatorName": "jaxrs-spec", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs-spec", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serializableModel": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jersey1.json b/bin/ci/java-jersey1.json deleted file mode 100644 index 2982da52b32..00000000000 --- a/bin/ci/java-jersey1.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "petstore-java-client-jersey1", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "library": "jersey1", - "outputDir": "samples/client/petstore/java/jersey1", - "templateDir": "modules/openapi-generator/src/main/resources/Java", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-jersey2-java6.json b/bin/ci/java-jersey2-java6.json deleted file mode 100644 index 1420161ffbd..00000000000 --- a/bin/ci/java-jersey2-java6.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "!include": "bin/java-petstore-jersey2.json", - "artifactId": "petstore-jersey2-java6", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/jersey2-java6", - "additionalProperties": { - "hideGenerationTimestamp": true, - "supportJava6": true, - "booleanGetterPrefix": "is" - } -} \ No newline at end of file diff --git a/bin/ci/java-jersey2-java8.json b/bin/ci/java-jersey2-java8.json deleted file mode 100644 index c1843fb8799..00000000000 --- a/bin/ci/java-jersey2-java8.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/java8-petstore-jersey2.json", - "artifactId": "petstore-jersey2-java8", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/jersey2-java8", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serverPort": "8082" - } -} \ No newline at end of file diff --git a/bin/ci/java-jersey2.json b/bin/ci/java-jersey2.json deleted file mode 100644 index e0ad2e3c284..00000000000 --- a/bin/ci/java-jersey2.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/java-petstore-jersey2.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/jersey2", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-msf4j-petstore-server.json b/bin/ci/java-msf4j-petstore-server.json deleted file mode 100644 index 0389c62a24c..00000000000 --- a/bin/ci/java-msf4j-petstore-server.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-msf4j", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/java-msf4j/", - "templateDir": "modules/openapi-generator/src/main/resources/java-msf4j-server", - "additionalProperties": { - "hideGenerationTimestamp": true, - "artifactId": "java-msf4j-server" - } -} \ No newline at end of file diff --git a/bin/ci/java-native.json b/bin/ci/java-native.json deleted file mode 100644 index 99506422cfa..00000000000 --- a/bin/ci/java-native.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-native.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/native", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/native", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-okhttp-gson-parcelableModel.json b/bin/ci/java-okhttp-gson-parcelableModel.json deleted file mode 100644 index 31b5cd136e9..00000000000 --- a/bin/ci/java-okhttp-gson-parcelableModel.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "!include": "bin/java-petstore-okhttp-gson.json", - "artifactId": "petstore-okhttp-gson-parcelableModel", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/okhttp-gson-parcelableModel", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson", - "additionalProperties": { - "hideGenerationTimestamp": true, - "parcelableModel": true - } -} \ No newline at end of file diff --git a/bin/ci/java-okhttp-gson.json b/bin/ci/java-okhttp-gson.json deleted file mode 100644 index 78ca97e598d..00000000000 --- a/bin/ci/java-okhttp-gson.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-okhttp-gson.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/okhttp-gson", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-petstore-feign-10x.json b/bin/ci/java-petstore-feign-10x.json deleted file mode 100644 index 186e64fc9e3..00000000000 --- a/bin/ci/java-petstore-feign-10x.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/feign", - "outputDir": "samples/client/petstore/java/feign10x", - "additionalProperties": { - "hideGenerationTimestamp": true, - "booleanGetterPrefix": "is" - }, - "!include": "bin/java-petstore-feign-10x.json" -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-api-package-override.json b/bin/ci/java-play-framework-api-package-override.json deleted file mode 100644 index 6570af2c8b7..00000000000 --- a/bin/ci/java-play-framework-api-package-override.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-api-package-override", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "apiPackage": "com.puppies.store.apis" - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-async.json b/bin/ci/java-play-framework-async.json deleted file mode 100644 index 0b8a3697078..00000000000 --- a/bin/ci/java-play-framework-async.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-play-framework-petstore-server-async.json", - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-async", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-controller-only.json b/bin/ci/java-play-framework-controller-only.json deleted file mode 100644 index 4cb2c55db20..00000000000 --- a/bin/ci/java-play-framework-controller-only.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-controller-only", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "controllerOnly": true - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-fake-endpoints.json b/bin/ci/java-play-framework-fake-endpoints.json deleted file mode 100644 index abcf09793be..00000000000 --- a/bin/ci/java-play-framework-fake-endpoints.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/java-play-framework-fake-endpoints", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-no-bean-validation.json b/bin/ci/java-play-framework-no-bean-validation.json deleted file mode 100644 index d0065ff6269..00000000000 --- a/bin/ci/java-play-framework-no-bean-validation.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-no-bean-validation", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "useBeanValidation": false - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-no-exception-handling.json b/bin/ci/java-play-framework-no-exception-handling.json deleted file mode 100644 index 5eb86194321..00000000000 --- a/bin/ci/java-play-framework-no-exception-handling.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-no-exception-handling", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "handleExceptions": false - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-no-interface.json b/bin/ci/java-play-framework-no-interface.json deleted file mode 100644 index 50de0e4d7b1..00000000000 --- a/bin/ci/java-play-framework-no-interface.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-no-interface", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "useInterfaces": false - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-no-swagger-ui.json b/bin/ci/java-play-framework-no-swagger-ui.json deleted file mode 100644 index 388744e3a94..00000000000 --- a/bin/ci/java-play-framework-no-swagger-ui.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-no-swagger-ui", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "useSwaggerUI": false - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework-no-wrap-calls.json b/bin/ci/java-play-framework-no-wrap-calls.json deleted file mode 100644 index 36bb6672462..00000000000 --- a/bin/ci/java-play-framework-no-wrap-calls.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework-no-wrap-calls", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true, - "wrapCalls": false - } -} \ No newline at end of file diff --git a/bin/ci/java-play-framework.json b/bin/ci/java-play-framework.json deleted file mode 100644 index a94f7f54e95..00000000000 --- a/bin/ci/java-play-framework.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "java-play-framework", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/java-play-framework", - "templateDir": "modules/openapi-generator/src/main/resources/JavaPlayFramework", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-rest-assured-jackson.json b/bin/ci/java-rest-assured-jackson.json deleted file mode 100644 index 1ff56d80ea8..00000000000 --- a/bin/ci/java-rest-assured-jackson.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "!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" - } -} diff --git a/bin/ci/java-rest-assured.json b/bin/ci/java-rest-assured.json deleted file mode 100644 index 19119b115c7..00000000000 --- a/bin/ci/java-rest-assured.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/java-petstore-rest-assured.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", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/rest-assured", - "additionalProperties": { - "hideGenerationTimestamp": true, - "booleanGetterPrefix": "is" - } -} \ No newline at end of file diff --git a/bin/ci/java-resteasy.json b/bin/ci/java-resteasy.json deleted file mode 100644 index 8a86a9be139..00000000000 --- a/bin/ci/java-resteasy.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/java-petstore-resteasy.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/resteasy", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-resttemplate-withXml.json b/bin/ci/java-resttemplate-withXml.json deleted file mode 100644 index e05ea6c1cc5..00000000000 --- a/bin/ci/java-resttemplate-withXml.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/java-petstore-resttemplate.json", - "artifactId": "petstore-resttemplate-withxml", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/resttemplate-withXml", - "additionalProperties": { - "hideGenerationTimestamp": true, - "withXml": true - } -} \ No newline at end of file diff --git a/bin/ci/java-resttemplate.json b/bin/ci/java-resttemplate.json deleted file mode 100644 index 9411e39e8bd..00000000000 --- a/bin/ci/java-resttemplate.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/java-petstore-resttemplate.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/resttemplate", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit.json b/bin/ci/java-retrofit.json deleted file mode 100644 index 65ded148ba2..00000000000 --- a/bin/ci/java-retrofit.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit.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/retrofit", - "additionalProperties": { - "hideGenerationTimestamp": true, - "dateLibrary": "joda" - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit2-play24.json b/bin/ci/java-retrofit2-play24.json deleted file mode 100644 index 208c9173ae2..00000000000 --- a/bin/ci/java-retrofit2-play24.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit2-play24.json", - "artifactId": "petstore-java-client-retrofit2-play24", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/retrofit2-play24", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit2-play25.json b/bin/ci/java-retrofit2-play25.json deleted file mode 100644 index e28b883137a..00000000000 --- a/bin/ci/java-retrofit2-play25.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit2-play25.json", - "artifactId": "petstore-java-client-retrofit2-play25", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/retrofit2-play25", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit2-play26.json b/bin/ci/java-retrofit2-play26.json deleted file mode 100644 index 0068c156b24..00000000000 --- a/bin/ci/java-retrofit2-play26.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit2-play26.json", - "artifactId": "petstore-java-client-retrofit2-play26", - "generatorName": "java", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/java/retrofit2-play26", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit2.json b/bin/ci/java-retrofit2.json deleted file mode 100644 index 2b3d251241a..00000000000 --- a/bin/ci/java-retrofit2.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit2.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/retrofit2", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/retrofit2", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit2rx.json b/bin/ci/java-retrofit2rx.json deleted file mode 100644 index 3479b1d08b0..00000000000 --- a/bin/ci/java-retrofit2rx.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit2rx.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/retrofit2rx", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/retrofit2", - "additionalProperties": { - "useRxJava": true, - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-retrofit2rx2.json b/bin/ci/java-retrofit2rx2.json deleted file mode 100644 index c3a6d841683..00000000000 --- a/bin/ci/java-retrofit2rx2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/java-petstore-retrofit2rx2.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/retrofit2rx2", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/retrofit2", - "additionalProperties": { - "useRxJava2": true, - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-vertx.json b/bin/ci/java-vertx.json deleted file mode 100644 index 0e6bf3edd75..00000000000 --- a/bin/ci/java-vertx.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/java-petstore-vertx.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/vertx", - "templateDir": "modules/openapi-generator/src/main/resources/Java/libraries/vertx", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/java-webclient.json b/bin/ci/java-webclient.json deleted file mode 100644 index 6c2dfdee883..00000000000 --- a/bin/ci/java-webclient.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/java-petstore-webclient.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/webclient", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/javascript-petstore-1.json b/bin/ci/javascript-petstore-1.json deleted file mode 100644 index 820982bd59e..00000000000 --- a/bin/ci/javascript-petstore-1.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "javascript", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/javascript-promise", - "templateDir": "modules/openapi-generator/src/main/resources/Javascript", - "additionalProperties": { - "usePromises": true, - "useES6": false, - "appName": "PetstoreClient" - } -} \ No newline at end of file diff --git a/bin/ci/javascript-petstore-2.json b/bin/ci/javascript-petstore-2.json deleted file mode 100644 index 5d545ded328..00000000000 --- a/bin/ci/javascript-petstore-2.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "javascript", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/javascript-es6", - "templateDir": "modules/openapi-generator/src/main/resources/Javascript/es6", - "additionalProperties": { - "appName": "PetstoreClient" - } -} \ No newline at end of file diff --git a/bin/ci/javascript-petstore-3.json b/bin/ci/javascript-petstore-3.json deleted file mode 100644 index 662aca53209..00000000000 --- a/bin/ci/javascript-petstore-3.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "javascript", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/javascript-promise-es6", - "templateDir": "modules/openapi-generator/src/main/resources/Javascript/es6", - "additionalProperties": { - "appName": "PetstoreClient", - "usePromises": true, - "useES6": true - } -} \ No newline at end of file diff --git a/bin/ci/javascript-petstore.json b/bin/ci/javascript-petstore.json deleted file mode 100644 index 0e85caf8cf2..00000000000 --- a/bin/ci/javascript-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "javascript", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/javascript", - "templateDir": "modules/openapi-generator/src/main/resources/Javascript", - "additionalProperties": { - "appName": "PetstoreClient", - "useES6": false - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-client-petstore-multiplatform.json b/bin/ci/kotlin-client-petstore-multiplatform.json deleted file mode 100644 index 1459a1dbf76..00000000000 --- a/bin/ci/kotlin-client-petstore-multiplatform.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "kotlin-client-petstore-multiplatform", - "generatorName": "kotlin", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/kotlin-multiplatform", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-client", - "library": "multiplatform", - "additionalProperties": { - "dateLibrary": "java8" - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-client-petstore.json b/bin/ci/kotlin-client-petstore.json deleted file mode 100644 index 55faa24802f..00000000000 --- a/bin/ci/kotlin-client-petstore.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "kotlin-petstore-client", - "generatorName": "kotlin", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/kotlin", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-client", - "additionalProperties": { - "dateLibrary": "java8", - "serializableModel": "true" - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-client-string.json b/bin/ci/kotlin-client-string.json deleted file mode 100644 index cceb366c2ce..00000000000 --- a/bin/ci/kotlin-client-string.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "artifactId": "kotlin-petstore-string", - "generatorName": "kotlin", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/kotlin-string", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-client", - "additionalProperties": { - "dateLibrary": "string", - "serializableModel": "true", - "sortParamsByRequiredFlag": "false", - "sortModelPropertiesByRequiredFlag": "false" - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-client-threetenbp.json b/bin/ci/kotlin-client-threetenbp.json deleted file mode 100644 index 9f12cd38b2a..00000000000 --- a/bin/ci/kotlin-client-threetenbp.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "artifactId": "kotlin-petstore-threetenbp", - "generatorName": "kotlin", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/kotlin-threetenbp", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-client", - "additionalProperties": { - "dateLibrary": "threetenbp" - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-server-petstore.json b/bin/ci/kotlin-server-petstore.json deleted file mode 100644 index dfd64c14258..00000000000 --- a/bin/ci/kotlin-server-petstore.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "kotlin-server", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "library": "ktor", - "outputDir": "samples/server/petstore/kotlin-server/ktor", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-server", - "additionalProperties": { - "hideGenerationTimestamp": true, - "serializableModel": "true" - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-springboot-petstore-server-reactive.json b/bin/ci/kotlin-springboot-petstore-server-reactive.json deleted file mode 100644 index fd2e318f8bb..00000000000 --- a/bin/ci/kotlin-springboot-petstore-server-reactive.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "generatorName": "kotlin-spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/kotlin-springboot-reactive", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-spring", - "additionalProperties": { - "library": "spring-boot", - "beanValidations": true, - "swaggerAnnotations": true, - "serviceImplementation": true, - "reactive": true - } -} \ No newline at end of file diff --git a/bin/ci/kotlin-springboot-petstore-server.json b/bin/ci/kotlin-springboot-petstore-server.json deleted file mode 100644 index 71597b8df26..00000000000 --- a/bin/ci/kotlin-springboot-petstore-server.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "generatorName": "kotlin-spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/kotlin-springboot", - "templateDir": "modules/openapi-generator/src/main/resources/kotlin-spring", - "additionalProperties": { - "library": "spring-boot", - "beanValidations": true, - "swaggerAnnotations": true, - "serviceImplementation": true - } -} \ No newline at end of file diff --git a/bin/ci/mysql-schema-petstore.json b/bin/ci/mysql-schema-petstore.json deleted file mode 100644 index 6937721ece0..00000000000 --- a/bin/ci/mysql-schema-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "mysql-schema", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/schema/petstore/mysql", - "templateDir": "modules/openapi-generator/src/main/resources/mysql-schema" -} \ No newline at end of file diff --git a/bin/ci/openapi3-jaxrs-jersey-petstore.json b/bin/ci/openapi3-jaxrs-jersey-petstore.json deleted file mode 100644 index 5065fb2c385..00000000000 --- a/bin/ci/openapi3-jaxrs-jersey-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "artifactId": "openapiv3-jaxrs-jersey-petstore-server", - "generatorName": "jaxrs-jersey", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/jaxrs-jersey", - "templateDir": "modules/openapi-generator/src/main/resources/JavaJaxRS/", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/openapi3-php-petstore.json b/bin/ci/openapi3-php-petstore.json deleted file mode 100644 index 47e2dba9853..00000000000 --- a/bin/ci/openapi3-php-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/openapi3/client/petstore/php/OpenAPIClient-php", - "templateDir": "modules/openapi-generator/src/main/resources/php" -} \ No newline at end of file diff --git a/bin/ci/openapi3-python-petstore.json b/bin/ci/openapi3-python-petstore.json deleted file mode 100644 index 7945bd9d6d1..00000000000 --- a/bin/ci/openapi3-python-petstore.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "python", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/openapi3/client/petstore/python/", - "templateDir": "modules/openapi-generator/src/main/resources/python", - "additionalProperties": { - "packageName": "petstore_api" - } -} \ No newline at end of file diff --git a/bin/ci/openapi3-ruby-client-faraday-petstore.json b/bin/ci/openapi3-ruby-client-faraday-petstore.json deleted file mode 100644 index be0b61db990..00000000000 --- a/bin/ci/openapi3-ruby-client-faraday-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/openapi3/ruby-petstore-faraday.json", - "generatorName": "ruby", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/openapi3/client/petstore/ruby-faraday", - "templateDir": "modules/openapi-generator/src/main/resources/ruby-client", - "additionalProperties": { - "skipFormModel": true - } -} \ No newline at end of file diff --git a/bin/ci/openapi3-ruby-client-petstore.json b/bin/ci/openapi3-ruby-client-petstore.json deleted file mode 100644 index 91018e54a49..00000000000 --- a/bin/ci/openapi3-ruby-client-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/ruby-petstore.json", - "generatorName": "ruby", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/openapi3/client/petstore/ruby", - "templateDir": "modules/openapi-generator/src/main/resources/ruby-client", - "additionalProperties": { - "skipFormModel": true - } -} \ No newline at end of file diff --git a/bin/ci/perl-petstore-1.json b/bin/ci/perl-petstore-1.json deleted file mode 100644 index 985f6b3bd1e..00000000000 --- a/bin/ci/perl-petstore-1.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "perl", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/perl/deep_module_test", - "outputDir": "samples/client/petstore/perl/deep_module_test", - "additionalProperties": { - "hideGenerationTimestamp": true, - "moduleName": "Something::Deep" - } -} \ No newline at end of file diff --git a/bin/ci/perl-petstore.json b/bin/ci/perl-petstore.json deleted file mode 100644 index d726e633bd1..00000000000 --- a/bin/ci/perl-petstore.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "perl", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/perl", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/php-lumen-petstore-server.json b/bin/ci/php-lumen-petstore-server.json deleted file mode 100644 index 87755152ea4..00000000000 --- a/bin/ci/php-lumen-petstore-server.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php-lumen", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/php-lumen", - "templateDir": "modules/openapi-generator/src/main/resources/php-lumen" -} \ No newline at end of file diff --git a/bin/ci/php-petstore.json b/bin/ci/php-petstore.json deleted file mode 100644 index fd3f1d1c245..00000000000 --- a/bin/ci/php-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/php/OpenAPIClient-php", - "templateDir": "modules/openapi-generator/src/main/resources/php" -} \ No newline at end of file diff --git a/bin/ci/php-silex-petstore-server.json b/bin/ci/php-silex-petstore-server.json deleted file mode 100644 index cffd6a8ceff..00000000000 --- a/bin/ci/php-silex-petstore-server.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php-silex-deprecated", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/php-silex/OpenAPIServer", - "templateDir": "modules/openapi-generator/src/main/resources/php-silex" -} \ No newline at end of file diff --git a/bin/ci/php-slim-server-petstore.json b/bin/ci/php-slim-server-petstore.json deleted file mode 100644 index 4341586b330..00000000000 --- a/bin/ci/php-slim-server-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php-slim-deprecated", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/php-slim", - "templateDir": "modules/openapi-generator/src/main/resources/php-slim-server" -} \ No newline at end of file diff --git a/bin/ci/php-slim4-server-petstore.json b/bin/ci/php-slim4-server-petstore.json deleted file mode 100644 index 48de8dd691d..00000000000 --- a/bin/ci/php-slim4-server-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php-slim4", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/php-slim4", - "templateDir": "modules/openapi-generator/src/main/resources/php-slim4-server" -} \ No newline at end of file diff --git a/bin/ci/php-symfony-petstore.json b/bin/ci/php-symfony-petstore.json deleted file mode 100644 index 8af199acbc5..00000000000 --- a/bin/ci/php-symfony-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php-symfony", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/server/petstore/php-symfony/SymfonyBundle-php", - "templateDir": "modules/openapi-generator/src/main/resources/php-symfony" -} \ No newline at end of file diff --git a/bin/ci/php-ze-ph-petstore-server.json b/bin/ci/php-ze-ph-petstore-server.json deleted file mode 100644 index 2f02c99e22f..00000000000 --- a/bin/ci/php-ze-ph-petstore-server.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "generatorName": "php-ze-ph", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/php-ze-ph", - "templateDir": "modules/openapi-generator/src/main/resources/php-ze-ph" -} \ No newline at end of file diff --git a/bin/ci/python-experimental.json b/bin/ci/python-experimental.json deleted file mode 100644 index d9f6d70db22..00000000000 --- a/bin/ci/python-experimental.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "python-experimental", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/python-client-experimental/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/python-experimental", - "templateDir": "modules/openapi-generator/src/main/resources/python", - "additionalProperties": { - "packageName": "petstore_api" - } -} \ No newline at end of file diff --git a/bin/ci/python-petstore-1.json b/bin/ci/python-petstore-1.json deleted file mode 100644 index 730545175cd..00000000000 --- a/bin/ci/python-petstore-1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "python", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/python", - "templateDir": "modules/openapi-generator/src/main/resources/python", - "additionalProperties": { - "packageName": "petstore_api" - } -} \ No newline at end of file diff --git a/bin/ci/python-petstore-2.json b/bin/ci/python-petstore-2.json deleted file mode 100644 index 1a48b15b608..00000000000 --- a/bin/ci/python-petstore-2.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "python", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "library": "tornado", - "outputDir": "samples/client/petstore/python-tornado", - "templateDir": "modules/openapi-generator/src/main/resources/python", - "additionalProperties": { - "packageName": "petstore_api" - } -} \ No newline at end of file diff --git a/bin/ci/python-petstore.json b/bin/ci/python-petstore.json deleted file mode 100644 index 5af62cb71ee..00000000000 --- a/bin/ci/python-petstore.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "generatorName": "python", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "library": "asyncio", - "outputDir": "samples/client/petstore/python-asyncio", - "templateDir": "modules/openapi-generator/src/main/resources/python", - "additionalProperties": { - "packageName": "petstore_api" - } -} \ No newline at end of file diff --git a/bin/ci/r-petstore.json b/bin/ci/r-petstore.json deleted file mode 100644 index 26889a24f9d..00000000000 --- a/bin/ci/r-petstore.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "r", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/R", - "templateDir": "modules/openapi-generator/src/main/resources/r", - "additionalProperties": { - "packageName": "petstore" - } -} \ No newline at end of file diff --git a/bin/ci/ruby-client-petstore-faraday.json b/bin/ci/ruby-client-petstore-faraday.json deleted file mode 100644 index cc3a4a6993c..00000000000 --- a/bin/ci/ruby-client-petstore-faraday.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "!include": "bin/ruby-petstore-faraday.json", - "generatorName": "ruby", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/ruby-faraday", - "templateDir": "modules/openapi-generator/src/main/resources/ruby-client" -} \ No newline at end of file diff --git a/bin/ci/ruby-client-petstore.json b/bin/ci/ruby-client-petstore.json deleted file mode 100644 index 409f07df114..00000000000 --- a/bin/ci/ruby-client-petstore.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "!include": "bin/ruby-petstore.json", - "generatorName": "ruby", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/client/petstore/ruby", - "templateDir": "modules/openapi-generator/src/main/resources/ruby-client" -} \ No newline at end of file diff --git a/bin/ci/rust-server-petstore-1.json b/bin/ci/rust-server-petstore-1.json deleted file mode 100644 index 9094bb9072d..00000000000 --- a/bin/ci/rust-server-petstore-1.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generateAliasAsModel": true, - "generatorName": "rust-server", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/rust-server/rust-server-test.yaml", - "outputDir": "samples/server/petstore/rust-server/output/rust-server-test", - "templateDir": "modules/openapi-generator/src/main/resources/rust-server", - "additionalProperties": { - "packageName": "rust-server-test", - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/rust-server-petstore-2.json b/bin/ci/rust-server-petstore-2.json deleted file mode 100644 index 1ddfe29dd99..00000000000 --- a/bin/ci/rust-server-petstore-2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generateAliasAsModel": true, - "generatorName": "rust-server", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/rust-server/multipart-v3.yaml", - "outputDir": "samples/server/petstore/rust-server/output/multipart-v3", - "templateDir": "modules/openapi-generator/src/main/resources/rust-server", - "additionalProperties": { - "packageName": "multipart-v3", - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/rust-server-petstore-3.json b/bin/ci/rust-server-petstore-3.json deleted file mode 100644 index 7291e9c73df..00000000000 --- a/bin/ci/rust-server-petstore-3.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generateAliasAsModel": true, - "generatorName": "rust-server", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/rust-server/openapi-v3.yaml", - "outputDir": "samples/server/petstore/rust-server/output/openapi-v3", - "templateDir": "modules/openapi-generator/src/main/resources/rust-server", - "additionalProperties": { - "packageName": "openapi-v3", - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/rust-server-petstore-4.json b/bin/ci/rust-server-petstore-4.json deleted file mode 100644 index 0e85d34e8e3..00000000000 --- a/bin/ci/rust-server-petstore-4.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generateAliasAsModel": true, - "generatorName": "rust-server", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/rust-server/ops-v3.yaml", - "outputDir": "samples/server/petstore/rust-server/output/ops-v3", - "templateDir": "modules/openapi-generator/src/main/resources/rust-server", - "additionalProperties": { - "packageName": "ops-v3", - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/rust-server-petstore.json b/bin/ci/rust-server-petstore.json deleted file mode 100644 index e258a060083..00000000000 --- a/bin/ci/rust-server-petstore.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generateAliasAsModel": true, - "generatorName": "rust-server", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/rust-server/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing", - "templateDir": "modules/openapi-generator/src/main/resources/rust-server", - "additionalProperties": { - "packageName": "petstore-with-fake-endpoints-models-for-testing", - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-cloud-async.json b/bin/ci/spring-cloud-async.json deleted file mode 100644 index 85895219352..00000000000 --- a/bin/ci/spring-cloud-async.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "!include": "bin/spring-cloud-feign-petstore.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/spring-cloud-async", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud", - "additionalProperties": { - "hideGenerationTimestamp": true, - "java8": true, - "async": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-cloud-feign-petstore.json b/bin/ci/spring-cloud-feign-petstore.json deleted file mode 100644 index b402ba8c004..00000000000 --- a/bin/ci/spring-cloud-feign-petstore.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/spring-cloud-feign-petstore.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/spring-cloud", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud", - "additionalProperties": { - "hideGenerationTimestamp": true, - "responseWrapper": "HystrixCommand" - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-10.json b/bin/ci/spring-petstore-10.json deleted file mode 100644 index ba76388c1bb..00000000000 --- a/bin/ci/spring-petstore-10.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/springboot-petstore-server-beanvalidation.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-beanvalidation", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true, - "java8": false - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-11.json b/bin/ci/spring-petstore-11.json deleted file mode 100644 index 6f2efc55293..00000000000 --- a/bin/ci/spring-petstore-11.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/springboot-petstore-server-implicitHeaders.json", - "artifactId": "springboot-implicitHeaders", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-implicitHeaders", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-12.json b/bin/ci/spring-petstore-12.json deleted file mode 100644 index cab75e7ae33..00000000000 --- a/bin/ci/spring-petstore-12.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/springboot-petstore-server-useOptional.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-useoptional", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-13.json b/bin/ci/spring-petstore-13.json deleted file mode 100644 index 375efe85a77..00000000000 --- a/bin/ci/spring-petstore-13.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "!include": "bin/springboot-virtualan-petstore-server.json", - "artifactId": "springboot-virtualan", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-virtualan", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-2.json b/bin/ci/spring-petstore-2.json deleted file mode 100644 index ba551398854..00000000000 --- a/bin/ci/spring-petstore-2.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "spring-stubs", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/spring-stubs", - "additionalProperties": { - "interfaceOnly": true, - "singleContentTypes": true, - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-3.json b/bin/ci/spring-petstore-3.json deleted file mode 100644 index 36ee23c72b7..00000000000 --- a/bin/ci/spring-petstore-3.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "!include": "bin/spring-mvc-petstore-server.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/spring-mvc", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true, - "java8": false, - "serverPort": "8002", - "booleanGetterPrefix": "get" - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-4.json b/bin/ci/spring-petstore-4.json deleted file mode 100644 index 5b9f3b774ad..00000000000 --- a/bin/ci/spring-petstore-4.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "!include": "bin/spring-mvc-petstore-j8-async.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/spring-mvc-j8-async", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true, - "async": true, - "serverPort": "8002" - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-5.json b/bin/ci/spring-petstore-5.json deleted file mode 100644 index 9978d15d09d..00000000000 --- a/bin/ci/spring-petstore-5.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "!include": "bin/spring-mvc-petstore-j8-localdatetime.json", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/spring-mvc-j8-localdatetime", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true, - "booleanGetterPrefix": "get", - "serverPort": "8002" - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-6.json b/bin/ci/spring-petstore-6.json deleted file mode 100644 index 4a5aed031f5..00000000000 --- a/bin/ci/spring-petstore-6.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "artifactId": "springboot-delegate", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-delegate", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "delegatePattern": true, - "hideGenerationTimestamp": true, - "java8": false - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-7.json b/bin/ci/spring-petstore-7.json deleted file mode 100644 index 7863b8d9d7a..00000000000 --- a/bin/ci/spring-petstore-7.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "springboot-delegate-j8", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-delegate-j8", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "delegatePattern": true, - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-8.json b/bin/ci/spring-petstore-8.json deleted file mode 100644 index 840e4fa8c4a..00000000000 --- a/bin/ci/spring-petstore-8.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "artifactId": "springboot", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "hideGenerationTimestamp": true, - "snapshotVersion": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-petstore-9.json b/bin/ci/spring-petstore-9.json deleted file mode 100644 index 1955fd57945..00000000000 --- a/bin/ci/spring-petstore-9.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "artifactId": "springboot-reactive", - "generatorName": "spring", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml", - "outputDir": "samples/server/petstore/springboot-reactive", - "templateDir": "modules/openapi-generator/src/main/resources/JavaSpring", - "additionalProperties": { - "reactive": true, - "delegatePattern": true, - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/spring-stubs.json b/bin/ci/spring-stubs.json deleted file mode 100644 index 583fed6e257..00000000000 --- a/bin/ci/spring-stubs.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "generatorName": "spring", - "artifactId": "spring-stubs", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/spring-stubs", - "additionalProperties": { - "interfaceOnly": true, - "singleContentTypes": true, - "hideGenerationTimestamp": true - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-1.json b/bin/ci/typescript-angular-petstore-1.json deleted file mode 100644 index a82cb8c0487..00000000000 --- a/bin/ci/typescript-angular-petstore-1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/typescript-petstore-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v2/npm", - "additionalProperties": { - "ngVersion": "2" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-10.json b/bin/ci/typescript-angular-petstore-10.json deleted file mode 100644 index 0bbd411378b..00000000000 --- a/bin/ci/typescript-angular-petstore-10.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm", - "additionalProperties": { - "ngVersion": "7.0.0", - "providedInRoot": false - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-11.json b/bin/ci/typescript-angular-petstore-11.json deleted file mode 100644 index 8f62c2a7f0a..00000000000 --- a/bin/ci/typescript-angular-petstore-11.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default", - "additionalProperties": { - "ngVersion": "7.0.0" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-12.json b/bin/ci/typescript-angular-petstore-12.json deleted file mode 100644 index 3a7f6409394..00000000000 --- a/bin/ci/typescript-angular-petstore-12.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/typescript-angular-v7-petstore-provided-in-root-with-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm", - "additionalProperties": { - "ngVersion": "7.0.0" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-13.json b/bin/ci/typescript-angular-petstore-13.json deleted file mode 100644 index 1fa9f8a20d6..00000000000 --- a/bin/ci/typescript-angular-petstore-13.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm", - "additionalProperties": { - "ngVersion": "8.0.0" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-2.json b/bin/ci/typescript-angular-petstore-2.json deleted file mode 100644 index 2e79f71fa8c..00000000000 --- a/bin/ci/typescript-angular-petstore-2.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v2/with-interfaces", - "additionalProperties": { - "ngVersion": "2", - "withInterfaces": true - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-3.json b/bin/ci/typescript-angular-petstore-3.json deleted file mode 100644 index 3b343648d95..00000000000 --- a/bin/ci/typescript-angular-petstore-3.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/typescript-petstore-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v4/npm", - "additionalProperties": { - "ngVersion": "4" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-4.json b/bin/ci/typescript-angular-petstore-4.json deleted file mode 100644 index ffd19d1656e..00000000000 --- a/bin/ci/typescript-angular-petstore-4.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/typescript-petstore-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v4.3/npm", - "additionalProperties": { - "ngVersion": "4.3" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-5.json b/bin/ci/typescript-angular-petstore-5.json deleted file mode 100644 index 44c7e1fe13a..00000000000 --- a/bin/ci/typescript-angular-petstore-5.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default", - "additionalProperties": { - "ngVersion": "6.0.0", - "providedInRoot": false - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-6.json b/bin/ci/typescript-angular-petstore-6.json deleted file mode 100644 index 5965a2e92f4..00000000000 --- a/bin/ci/typescript-angular-petstore-6.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "!include": "bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm", - "additionalProperties": { - "ngVersion": "6.0.0", - "providedInRoot": false - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-7.json b/bin/ci/typescript-angular-petstore-7.json deleted file mode 100644 index 638a3464efc..00000000000 --- a/bin/ci/typescript-angular-petstore-7.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default", - "additionalProperties": { - "ngVersion": "6.0.0" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-8.json b/bin/ci/typescript-angular-petstore-8.json deleted file mode 100644 index 9bf237a3b38..00000000000 --- a/bin/ci/typescript-angular-petstore-8.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "!include": "bin/typescript-angular-v6-petstore-provided-in-root-with-npm.json", - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm", - "additionalProperties": { - "ngVersion": "6.0.0" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore-9.json b/bin/ci/typescript-angular-petstore-9.json deleted file mode 100644 index 0d672e6f09d..00000000000 --- a/bin/ci/typescript-angular-petstore-9.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default", - "additionalProperties": { - "ngVersion": "7.0.0", - "providedInRoot": false - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angular-petstore.json b/bin/ci/typescript-angular-petstore.json deleted file mode 100644 index f086745732f..00000000000 --- a/bin/ci/typescript-angular-petstore.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "typescript-angular", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angular-v2/default", - "additionalProperties": { - "ngVersion": "2" - } -} \ No newline at end of file diff --git a/bin/ci/typescript-angularjs-petstore.json b/bin/ci/typescript-angularjs-petstore.json deleted file mode 100644 index 2f7f6682722..00000000000 --- a/bin/ci/typescript-angularjs-petstore.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-angularjs", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-angularjs" -} \ No newline at end of file diff --git a/bin/ci/typescript-aurelia-petstore.json b/bin/ci/typescript-aurelia-petstore.json deleted file mode 100644 index 24229cbdf71..00000000000 --- a/bin/ci/typescript-aurelia-petstore.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-aurelia", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-aurelia/default" -} \ No newline at end of file diff --git a/bin/ci/typescript-axios-petstore-1.json b/bin/ci/typescript-axios-petstore-1.json deleted file mode 100644 index 5b63412ae85..00000000000 --- a/bin/ci/typescript-axios-petstore-1.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-axios-petstore-with-npm-version.json", - "generatorName": "typescript-axios", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-axios/builds/with-npm-version" -} \ No newline at end of file diff --git a/bin/ci/typescript-axios-petstore-2.json b/bin/ci/typescript-axios-petstore-2.json deleted file mode 100644 index 3f8539dcae9..00000000000 --- a/bin/ci/typescript-axios-petstore-2.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.json", - "generatorName": "typescript-axios", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api" -} \ No newline at end of file diff --git a/bin/ci/typescript-axios-petstore-3.json b/bin/ci/typescript-axios-petstore-3.json deleted file mode 100644 index 0f25f11b31b..00000000000 --- a/bin/ci/typescript-axios-petstore-3.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-axios", - "inputSpec": "modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml", - "outputDir": "samples/client/petstore/typescript-axios/builds/with-complex-headers" -} \ No newline at end of file diff --git a/bin/ci/typescript-axios-petstore-4.json b/bin/ci/typescript-axios-petstore-4.json deleted file mode 100644 index d552953c585..00000000000 --- a/bin/ci/typescript-axios-petstore-4.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "typescript-axios", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-axios/builds/with-interfaces", - "additionalProperties": { - "withInterfaces": true - } -} \ No newline at end of file diff --git a/bin/ci/typescript-axios-petstore-5.json b/bin/ci/typescript-axios-petstore-5.json deleted file mode 100644 index f8d998f1c98..00000000000 --- a/bin/ci/typescript-axios-petstore-5.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-axios", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-axios/builds/default" -} \ No newline at end of file diff --git a/bin/ci/typescript-axios-petstore.json b/bin/ci/typescript-axios-petstore.json deleted file mode 100644 index bb49285bb14..00000000000 --- a/bin/ci/typescript-axios-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-axios-petstore-target-es6.json", - "generatorName": "typescript-axios", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-axios/builds/es6-target" -} \ No newline at end of file diff --git a/bin/ci/typescript-fetch-petstore-1.json b/bin/ci/typescript-fetch-petstore-1.json deleted file mode 100644 index 40abb9ef245..00000000000 --- a/bin/ci/typescript-fetch-petstore-1.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-fetch-petstore-with-npm-version.json", - "generatorName": "typescript-fetch", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-fetch/builds/with-npm-version" -} \ No newline at end of file diff --git a/bin/ci/typescript-fetch-petstore-2.json b/bin/ci/typescript-fetch-petstore-2.json deleted file mode 100644 index bc6e5f807cb..00000000000 --- a/bin/ci/typescript-fetch-petstore-2.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "typescript-fetch", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-fetch/builds/with-interfaces", - "additionalProperties": { - "withInterfaces": true - } -} \ No newline at end of file diff --git a/bin/ci/typescript-fetch-petstore-3.json b/bin/ci/typescript-fetch-petstore-3.json deleted file mode 100644 index 0de17df51b8..00000000000 --- a/bin/ci/typescript-fetch-petstore-3.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-fetch", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-fetch/builds/default" -} \ No newline at end of file diff --git a/bin/ci/typescript-fetch-petstore-4.json b/bin/ci/typescript-fetch-petstore-4.json deleted file mode 100644 index 1f434a03068..00000000000 --- a/bin/ci/typescript-fetch-petstore-4.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-fetch-petstore-multiple-parameters.json", - "generatorName": "typescript-fetch", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-fetch/builds/multiple-parameters" -} \ No newline at end of file diff --git a/bin/ci/typescript-fetch-petstore-5.json b/bin/ci/typescript-fetch-petstore-5.json deleted file mode 100644 index 2905e73da84..00000000000 --- a/bin/ci/typescript-fetch-petstore-5.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-fetch-petstore-prefix-parameter-interfaces.json", - "generatorName": "typescript-fetch", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces" -} \ No newline at end of file diff --git a/bin/ci/typescript-fetch-petstore.json b/bin/ci/typescript-fetch-petstore.json deleted file mode 100644 index 1f5fcf5f4b3..00000000000 --- a/bin/ci/typescript-fetch-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-fetch-petstore-target-es6.json", - "generatorName": "typescript-fetch", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-fetch/builds/es6-target" -} \ No newline at end of file diff --git a/bin/ci/typescript-inversify-petstore.json b/bin/ci/typescript-inversify-petstore.json deleted file mode 100644 index 8a15c316d30..00000000000 --- a/bin/ci/typescript-inversify-petstore.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-inversify", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-inversify" -} \ No newline at end of file diff --git a/bin/ci/typescript-jquery-petstore-1.json b/bin/ci/typescript-jquery-petstore-1.json deleted file mode 100644 index 6c0fac1642a..00000000000 --- a/bin/ci/typescript-jquery-petstore-1.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-jquery-petstore-npm.json", - "generatorName": "typescript-jquery", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-jquery/npm" -} \ No newline at end of file diff --git a/bin/ci/typescript-jquery-petstore.json b/bin/ci/typescript-jquery-petstore.json deleted file mode 100644 index ea83a6088df..00000000000 --- a/bin/ci/typescript-jquery-petstore.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-jquery", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-jquery/default" -} \ No newline at end of file diff --git a/bin/ci/typescript-node-petstore-1.json b/bin/ci/typescript-node-petstore-1.json deleted file mode 100644 index 2610ca3ee17..00000000000 --- a/bin/ci/typescript-node-petstore-1.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-node", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-node/default" -} \ No newline at end of file diff --git a/bin/ci/typescript-node-petstore.json b/bin/ci/typescript-node-petstore.json deleted file mode 100644 index 99911c472be..00000000000 --- a/bin/ci/typescript-node-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-node-petstore-npm.json", - "generatorName": "typescript-node", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-node/npm" -} \ No newline at end of file diff --git a/bin/ci/typescript-rxjs-petstore-1.json b/bin/ci/typescript-rxjs-petstore-1.json deleted file mode 100644 index 1686f9f00cd..00000000000 --- a/bin/ci/typescript-rxjs-petstore-1.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-rxjs-petstore-with-npm-version.json", - "generatorName": "typescript-rxjs", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-rxjs/builds/with-npm-version" -} \ No newline at end of file diff --git a/bin/ci/typescript-rxjs-petstore-2.json b/bin/ci/typescript-rxjs-petstore-2.json deleted file mode 100644 index 00e8f66a494..00000000000 --- a/bin/ci/typescript-rxjs-petstore-2.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "generatorName": "typescript-rxjs", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-rxjs/builds/with-interfaces", - "additionalProperties": { - "withInterfaces": true - } -} \ No newline at end of file diff --git a/bin/ci/typescript-rxjs-petstore-3.json b/bin/ci/typescript-rxjs-petstore-3.json deleted file mode 100644 index 7ee3fc8b247..00000000000 --- a/bin/ci/typescript-rxjs-petstore-3.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "generatorName": "typescript-rxjs", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-rxjs/builds/default" -} \ No newline at end of file diff --git a/bin/ci/typescript-rxjs-petstore.json b/bin/ci/typescript-rxjs-petstore.json deleted file mode 100644 index e5d9f0ec87b..00000000000 --- a/bin/ci/typescript-rxjs-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "!include": "bin/typescript-rxjs-petstore-target-es6.json", - "generatorName": "typescript-rxjs", - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/typescript-rxjs/builds/es6-target" -} \ No newline at end of file diff --git a/bin/clojure-petstore.sh b/bin/clojure-petstore.sh deleted file mode 100755 index 299882e5ae4..00000000000 --- a/bin/clojure-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.json -g clojure -o samples/client/petstore/clojure $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/configs/apex.yaml b/bin/configs/apex.yaml new file mode 100644 index 00000000000..23ec0ef743e --- /dev/null +++ b/bin/configs/apex.yaml @@ -0,0 +1,6 @@ +systemProperties: + skipFormModel: "true" +generatorName: apex +outputDir: samples/client/petstore/apex +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/apex diff --git a/bin/configs/cpp-qt5-qhttpengine-server.yaml b/bin/configs/cpp-qt5-qhttpengine-server.yaml new file mode 100644 index 00000000000..8ead0fe398d --- /dev/null +++ b/bin/configs/cpp-qt5-qhttpengine-server.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-qt5-qhttpengine-server +outputDir: samples/server/petstore/cpp-qt5-qhttpengine-server +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-qt5-qhttpengine-server diff --git a/bin/configs/cpp-restsdk-client.yaml b/bin/configs/cpp-restsdk-client.yaml new file mode 100644 index 00000000000..87bce881bbd --- /dev/null +++ b/bin/configs/cpp-restsdk-client.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-restsdk +outputDir: samples/client/petstore/cpp-restsdk/client +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-rest-sdk-client diff --git a/bin/configs/csharp-OpenAPIClient.yaml b/bin/configs/csharp-OpenAPIClient.yaml new file mode 100644 index 00000000000..64800f8f78c --- /dev/null +++ b/bin/configs/csharp-OpenAPIClient.yaml @@ -0,0 +1,5 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClient +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' diff --git a/bin/configs/csharp-netcore-OpenAPIClient.yaml b/bin/configs/csharp-netcore-OpenAPIClient.yaml new file mode 100644 index 00000000000..0f2daf28a28 --- /dev/null +++ b/bin/configs/csharp-netcore-OpenAPIClient.yaml @@ -0,0 +1,7 @@ +generatorName: csharp-netcore +outputDir: samples/client/petstore/csharp-netcore/OpenAPIClient +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/csharp-netcore +additionalProperties: + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' + useCompareNetObjects: "true" diff --git a/bin/configs/csharp-netcore-OpenAPIClientCore.yaml b/bin/configs/csharp-netcore-OpenAPIClientCore.yaml new file mode 100644 index 00000000000..1d710bbf20c --- /dev/null +++ b/bin/configs/csharp-netcore-OpenAPIClientCore.yaml @@ -0,0 +1,8 @@ +generatorName: csharp-netcore +outputDir: samples/client/petstore/csharp-netcore/OpenAPIClientCore +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/csharp-netcore +additionalProperties: + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' + targetFramework: netcoreapp2.0 + useCompareNetObjects: "true" diff --git a/bin/configs/dart-jaguar-openapi-flutter.yaml b/bin/configs/dart-jaguar-openapi-flutter.yaml new file mode 100644 index 00000000000..caa3df92d32 --- /dev/null +++ b/bin/configs/dart-jaguar-openapi-flutter.yaml @@ -0,0 +1,7 @@ +generatorName: dart-jaguar +outputDir: samples/client/petstore/dart-jaguar/flutter_petstore/openapi +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart-jaguar +additionalProperties: + pubName: openapi + hideGenerationTimestamp: "true" diff --git a/bin/configs/dart-jaguar-openapi-flutter_proto.yaml b/bin/configs/dart-jaguar-openapi-flutter_proto.yaml new file mode 100644 index 00000000000..6b94b64109d --- /dev/null +++ b/bin/configs/dart-jaguar-openapi-flutter_proto.yaml @@ -0,0 +1,8 @@ +generatorName: dart-jaguar +outputDir: samples/client/petstore/dart-jaguar/flutter_proto_petstore/openapi +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml +templateDir: modules/openapi-generator/src/main/resources/dart-jaguar +additionalProperties: + serialization: proto + pubName: openapi + hideGenerationTimestamp: "true" diff --git a/bin/configs/dart-jaguar-openapi.yaml b/bin/configs/dart-jaguar-openapi.yaml new file mode 100644 index 00000000000..effa1bf3761 --- /dev/null +++ b/bin/configs/dart-jaguar-openapi.yaml @@ -0,0 +1,7 @@ +generatorName: dart-jaguar +outputDir: samples/client/petstore/dart-jaguar/openapi +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart-jaguar +additionalProperties: + hideGenerationTimestamp: "true" + pubName: openapi diff --git a/bin/configs/dart-jaguar-openapi_proto.yaml b/bin/configs/dart-jaguar-openapi_proto.yaml new file mode 100644 index 00000000000..1229c190d29 --- /dev/null +++ b/bin/configs/dart-jaguar-openapi_proto.yaml @@ -0,0 +1,8 @@ +generatorName: dart-jaguar +outputDir: samples/client/petstore/dart-jaguar/openapi_proto +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml +templateDir: modules/openapi-generator/src/main/resources/dart-jaguar +additionalProperties: + serialization: proto + pubName: openapi + hideGenerationTimestamp: "true" diff --git a/bin/configs/dart-openapi-browser-client.yaml b/bin/configs/dart-openapi-browser-client.yaml new file mode 100644 index 00000000000..4d3084d6c88 --- /dev/null +++ b/bin/configs/dart-openapi-browser-client.yaml @@ -0,0 +1,8 @@ +generatorName: dart +outputDir: samples/client/petstore/dart/openapi-browser-client +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart +additionalProperties: + supportDart2: "false" + hideGenerationTimestamp: "true" + browserClient: "true" diff --git a/bin/configs/dart-openapi-flutter.yaml b/bin/configs/dart-openapi-flutter.yaml new file mode 100644 index 00000000000..fe130413bb9 --- /dev/null +++ b/bin/configs/dart-openapi-flutter.yaml @@ -0,0 +1,8 @@ +generatorName: dart +outputDir: samples/client/petstore/dart/flutter_petstore/openapi +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart +additionalProperties: + supportDart2: "false" + hideGenerationTimestamp: "true" + browserClient: "false" diff --git a/bin/configs/dart-openapi.yaml b/bin/configs/dart-openapi.yaml new file mode 100644 index 00000000000..67ee5ca688d --- /dev/null +++ b/bin/configs/dart-openapi.yaml @@ -0,0 +1,8 @@ +generatorName: dart +outputDir: samples/client/petstore/dart/openapi +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart +additionalProperties: + supportDart2: "false" + hideGenerationTimestamp: "true" + browserClient: "false" diff --git a/bin/configs/dart-petstore_client_lib.yaml b/bin/configs/dart-petstore_client_lib.yaml new file mode 100644 index 00000000000..861a829ac4f --- /dev/null +++ b/bin/configs/dart-petstore_client_lib.yaml @@ -0,0 +1,6 @@ +generatorName: dart +outputDir: samples/client/petstore/dart2/petstore_client_lib +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart2 +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/elixir.yaml b/bin/configs/elixir.yaml new file mode 100644 index 00000000000..6507adae5fc --- /dev/null +++ b/bin/configs/elixir.yaml @@ -0,0 +1,6 @@ +generatorName: elixir +outputDir: samples/client/petstore/elixir +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/elixir +additionalProperties: + invokerPackage: OpenapiPetstore diff --git a/bin/configs/elm.yaml b/bin/configs/elm.yaml new file mode 100644 index 00000000000..b826d487ddd --- /dev/null +++ b/bin/configs/elm.yaml @@ -0,0 +1,4 @@ +generatorName: elm +outputDir: samples/openapi3/client/elm +inputSpec: modules/openapi-generator/src/test/resources/3_0/elm.yaml +templateDir: modules/openapi-generator/src/main/resources/elm diff --git a/bin/configs/go-experimental-go-petstore-oas2.yaml b/bin/configs/go-experimental-go-petstore-oas2.yaml new file mode 100644 index 00000000000..64c6bfbebc3 --- /dev/null +++ b/bin/configs/go-experimental-go-petstore-oas2.yaml @@ -0,0 +1,6 @@ +generatorName: go-experimental +outputDir: samples/client/petstore/go-experimental/go-petstore +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go-experimental +additionalProperties: + packageName: petstore diff --git a/bin/configs/go-experimental-go-petstore.yaml b/bin/configs/go-experimental-go-petstore.yaml new file mode 100644 index 00000000000..53748e4009d --- /dev/null +++ b/bin/configs/go-experimental-go-petstore.yaml @@ -0,0 +1,7 @@ +generatorName: go-experimental +outputDir: samples/openapi3/client/petstore/go-experimental/go-petstore +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +templateDir: modules/openapi-generator/src/main/resources/go-experimental +additionalProperties: + enumClassPrefix: "true" + packageName: petstore diff --git a/bin/configs/go-gin-server-go-gin-api-server.yaml b/bin/configs/go-gin-server-go-gin-api-server.yaml new file mode 100644 index 00000000000..7d9932bd14f --- /dev/null +++ b/bin/configs/go-gin-server-go-gin-api-server.yaml @@ -0,0 +1,7 @@ +generatorName: go-gin-server +outputDir: samples/server/petstore/go-gin-api-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/go-gin-server +additionalProperties: + hideGenerationTimestamp: "true" + packageName: petstoreserver diff --git a/bin/configs/go-petstore-oas2.yaml b/bin/configs/go-petstore-oas2.yaml new file mode 100644 index 00000000000..848899598a6 --- /dev/null +++ b/bin/configs/go-petstore-oas2.yaml @@ -0,0 +1,6 @@ +generatorName: go +outputDir: samples/client/petstore/go/go-petstore +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go +additionalProperties: + packageName: petstore diff --git a/bin/configs/go-petstore-withXml.yaml b/bin/configs/go-petstore-withXml.yaml new file mode 100644 index 00000000000..f80df1e7681 --- /dev/null +++ b/bin/configs/go-petstore-withXml.yaml @@ -0,0 +1,8 @@ +generatorName: go +outputDir: samples/client/petstore/go/go-petstore-withXml +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go +additionalProperties: + packageName: petstore + withXml: "true" + withGoCodegenComment: "true" diff --git a/bin/configs/go-petstore.yaml b/bin/configs/go-petstore.yaml new file mode 100644 index 00000000000..aefc71b9011 --- /dev/null +++ b/bin/configs/go-petstore.yaml @@ -0,0 +1,7 @@ +generatorName: go +outputDir: samples/openapi3/client/petstore/go/go-petstore +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go +additionalProperties: + enumClassPrefix: "true" + packageName: petstore diff --git a/bin/configs/go-server-go-api-server.yaml b/bin/configs/go-server-go-api-server.yaml new file mode 100644 index 00000000000..6446d212a35 --- /dev/null +++ b/bin/configs/go-server-go-api-server.yaml @@ -0,0 +1,7 @@ +generatorName: go-server +outputDir: samples/server/petstore/go-api-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/go-server +additionalProperties: + hideGenerationTimestamp: "true" + packageName: petstoreserver diff --git a/bin/configs/groovy.yaml b/bin/configs/groovy.yaml new file mode 100644 index 00000000000..df745d168e1 --- /dev/null +++ b/bin/configs/groovy.yaml @@ -0,0 +1,6 @@ +generatorName: groovy +outputDir: samples/client/petstore/groovy +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/Groovy +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/haskell-http-client.yaml b/bin/configs/haskell-http-client.yaml new file mode 100644 index 00000000000..577ad437a92 --- /dev/null +++ b/bin/configs/haskell-http-client.yaml @@ -0,0 +1,4 @@ +generatorName: haskell-http-client +outputDir: samples/client/petstore/haskell-http-client +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/haskell-http-client diff --git a/bin/configs/java-feign10x.yaml b/bin/configs/java-feign10x.yaml new file mode 100644 index 00000000000..4d741daac24 --- /dev/null +++ b/bin/configs/java-feign10x.yaml @@ -0,0 +1,9 @@ +generatorName: java +outputDir: samples/client/petstore/java/feign10x +library: feign +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + booleanGetterPrefix: is + artifactId: petstore-feign-10x + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-google-api-client.yaml b/bin/configs/java-google-api-client.yaml new file mode 100644 index 00000000000..7fed4f4fd38 --- /dev/null +++ b/bin/configs/java-google-api-client.yaml @@ -0,0 +1,8 @@ +generatorName: java +outputDir: samples/client/petstore/java/google-api-client +library: google-api-client +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + artifactId: petstore-google-api-client + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-jersey1.yaml b/bin/configs/java-jersey1.yaml new file mode 100644 index 00000000000..26cf1f0e5c1 --- /dev/null +++ b/bin/configs/java-jersey1.yaml @@ -0,0 +1,8 @@ +generatorName: java +outputDir: samples/client/petstore/java/jersey1 +library: jersey1 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + hideGenerationTimestamp: "true" + artifactId: petstore-java-client-jersey1 diff --git a/bin/configs/java-jersey2-8-oas2.yaml b/bin/configs/java-jersey2-8-oas2.yaml new file mode 100644 index 00000000000..82df73fc00f --- /dev/null +++ b/bin/configs/java-jersey2-8-oas2.yaml @@ -0,0 +1,10 @@ +generatorName: java +outputDir: samples/client/petstore/java/jersey2-java8 +library: jersey2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: petstore-jersey2-java8 + hideGenerationTimestamp: true + serverPort: "8082" + dateLibrary: java8 + useOneOfDiscriminatorLookup: true diff --git a/bin/configs/java-jersey2-8.yaml b/bin/configs/java-jersey2-8.yaml new file mode 100644 index 00000000000..819312d8c74 --- /dev/null +++ b/bin/configs/java-jersey2-8.yaml @@ -0,0 +1,10 @@ +generatorName: java +outputDir: samples/openapi3/client/petstore/java/jersey2-java8 +library: jersey2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/python-experimental/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +additionalProperties: + artifactId: petstore-openapi3-jersey2-java8 + hideGenerationTimestamp: true + serverPort: "8082" + dateLibrary: java8 + useOneOfDiscriminatorLookup: true diff --git a/bin/configs/java-microprofile-rest-client.yaml b/bin/configs/java-microprofile-rest-client.yaml new file mode 100644 index 00000000000..07c1fe806b7 --- /dev/null +++ b/bin/configs/java-microprofile-rest-client.yaml @@ -0,0 +1,6 @@ +generatorName: java +outputDir: samples/client/petstore/java/microprofile-rest-client +library: microprofile +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + artifactId: microprofile-rest-client diff --git a/bin/configs/java-msf4j.yaml b/bin/configs/java-msf4j.yaml new file mode 100644 index 00000000000..71c5d117d83 --- /dev/null +++ b/bin/configs/java-msf4j.yaml @@ -0,0 +1,7 @@ +generatorName: java-msf4j +outputDir: samples/server/petstore/java-msf4j +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/java-msf4j-server +additionalProperties: + hideGenerationTimestamp: "true" + artifactId: java-msf4j-server diff --git a/bin/configs/java-native.yaml b/bin/configs/java-native.yaml new file mode 100644 index 00000000000..14259765250 --- /dev/null +++ b/bin/configs/java-native.yaml @@ -0,0 +1,8 @@ +generatorName: java +outputDir: samples/client/petstore/java/native +library: native +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + artifactId: petstore-native + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-okhttp-gson-parcelableModel.yaml b/bin/configs/java-okhttp-gson-parcelableModel.yaml new file mode 100644 index 00000000000..c9cbb2008b1 --- /dev/null +++ b/bin/configs/java-okhttp-gson-parcelableModel.yaml @@ -0,0 +1,9 @@ +generatorName: java +outputDir: samples/client/petstore/java/okhttp-gson-parcelableModel +library: okhttp-gson +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + parcelableModel: "true" + artifactId: petstore-okhttp-gson-parcelableModel + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-okhttp-gson.yaml b/bin/configs/java-okhttp-gson.yaml new file mode 100644 index 00000000000..c71c509aa28 --- /dev/null +++ b/bin/configs/java-okhttp-gson.yaml @@ -0,0 +1,8 @@ +generatorName: java +outputDir: samples/client/petstore/java/okhttp-gson +library: okhttp-gson +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + artifactId: petstore-okhttp-gson + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-play-framework-api-package-override.yaml b/bin/configs/java-play-framework-api-package-override.yaml new file mode 100644 index 00000000000..93b1d8f1788 --- /dev/null +++ b/bin/configs/java-play-framework-api-package-override.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-api-package-override +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" + apiPackage: com.puppies.store.apis diff --git a/bin/configs/java-play-framework-async.yaml b/bin/configs/java-play-framework-async.yaml new file mode 100644 index 00000000000..0cf9d1bca2e --- /dev/null +++ b/bin/configs/java-play-framework-async.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-async +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + supportAsync: true + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-play-framework-controller-only.yaml b/bin/configs/java-play-framework-controller-only.yaml new file mode 100644 index 00000000000..8c4ceb8afa6 --- /dev/null +++ b/bin/configs/java-play-framework-controller-only.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-controller-only +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + controllerOnly: "true" + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-play-framework-fake-endpoints.yaml b/bin/configs/java-play-framework-fake-endpoints.yaml new file mode 100644 index 00000000000..7ab4bb95563 --- /dev/null +++ b/bin/configs/java-play-framework-fake-endpoints.yaml @@ -0,0 +1,6 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-fake-endpoints +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-play-framework-no-bean-validation.yaml b/bin/configs/java-play-framework-no-bean-validation.yaml new file mode 100644 index 00000000000..22614f20d8d --- /dev/null +++ b/bin/configs/java-play-framework-no-bean-validation.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-no-bean-validation +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" + useBeanValidation: "false" diff --git a/bin/configs/java-play-framework-no-exception-handling.yaml b/bin/configs/java-play-framework-no-exception-handling.yaml new file mode 100644 index 00000000000..f231fbb9607 --- /dev/null +++ b/bin/configs/java-play-framework-no-exception-handling.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-no-exception-handling +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + handleExceptions: "false" + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-play-framework-no-interface.yaml b/bin/configs/java-play-framework-no-interface.yaml new file mode 100644 index 00000000000..51633c13dc5 --- /dev/null +++ b/bin/configs/java-play-framework-no-interface.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-no-interface +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" + useInterfaces: "false" diff --git a/bin/configs/java-play-framework-no-swagger-ui.yaml b/bin/configs/java-play-framework-no-swagger-ui.yaml new file mode 100644 index 00000000000..b2cb39224b6 --- /dev/null +++ b/bin/configs/java-play-framework-no-swagger-ui.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-no-swagger-ui +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" + useSwaggerUI: "false" diff --git a/bin/configs/java-play-framework-no-wrap-calls.yaml b/bin/configs/java-play-framework-no-wrap-calls.yaml new file mode 100644 index 00000000000..d8ab5013bde --- /dev/null +++ b/bin/configs/java-play-framework-no-wrap-calls.yaml @@ -0,0 +1,7 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework-no-wrap-calls +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" + wrapCalls: "false" diff --git a/bin/configs/java-play-framework.yaml b/bin/configs/java-play-framework.yaml new file mode 100644 index 00000000000..ee9b2705273 --- /dev/null +++ b/bin/configs/java-play-framework.yaml @@ -0,0 +1,6 @@ +generatorName: java-play-framework +outputDir: samples/server/petstore/java-play-framework +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaPlayFramework +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-rest-assured-jackson.yaml b/bin/configs/java-rest-assured-jackson.yaml new file mode 100644 index 00000000000..db2014be022 --- /dev/null +++ b/bin/configs/java-rest-assured-jackson.yaml @@ -0,0 +1,14 @@ +generatorName: java +outputDir: ./samples/client/petstore/java/rest-assured-jackson +library: rest-assured +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + serializationLibrary: jackson + dateLibrary: java8 + performBeanValidation: "true" + java8: "true" + useBeanValidation: "true" + booleanGetterPrefix: is + artifactId: petstore-rest-assured-jackson + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-rest-assured.yaml b/bin/configs/java-rest-assured.yaml new file mode 100644 index 00000000000..39426761ef2 --- /dev/null +++ b/bin/configs/java-rest-assured.yaml @@ -0,0 +1,11 @@ +generatorName: java +outputDir: samples/client/petstore/java/rest-assured +library: rest-assured +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + performBeanValidation: "true" + useBeanValidation: "true" + booleanGetterPrefix: is + artifactId: petstore-rest-assured + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-resteasy.yaml b/bin/configs/java-resteasy.yaml new file mode 100644 index 00000000000..26776e8f08d --- /dev/null +++ b/bin/configs/java-resteasy.yaml @@ -0,0 +1,7 @@ +generatorName: java +outputDir: samples/client/petstore/java/resteasy +library: resteasy +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: petstore-resteasy + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-resttemplate-withXml.yaml b/bin/configs/java-resttemplate-withXml.yaml new file mode 100644 index 00000000000..0307a583264 --- /dev/null +++ b/bin/configs/java-resttemplate-withXml.yaml @@ -0,0 +1,8 @@ +generatorName: java +outputDir: samples/client/petstore/java/resttemplate-withXml +library: resttemplate +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + withXml: "true" + artifactId: petstore-resttemplate-withxml + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-resttemplate.yaml b/bin/configs/java-resttemplate.yaml new file mode 100644 index 00000000000..4bbfa2f688c --- /dev/null +++ b/bin/configs/java-resttemplate.yaml @@ -0,0 +1,7 @@ +generatorName: java +outputDir: samples/client/petstore/java/resttemplate +library: resttemplate +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: petstore-resttemplate + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-retrofit2-play24.yaml b/bin/configs/java-retrofit2-play24.yaml new file mode 100644 index 00000000000..aa1bfb5b75b --- /dev/null +++ b/bin/configs/java-retrofit2-play24.yaml @@ -0,0 +1,12 @@ +generatorName: java +outputDir: samples/client/petstore/java/retrofit2-play24 +library: retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + usePlayWS: "true" + enableBuilderSupport: "true" + useBeanValidation: "true" + playVersion: play24 + artifactId: petstore-java-client-retrofit2-play24 + hideGenerationTimestamp: "true" + dateLibrary: java8 diff --git a/bin/configs/java-retrofit2-play25.yaml b/bin/configs/java-retrofit2-play25.yaml new file mode 100644 index 00000000000..49cfe3d0c74 --- /dev/null +++ b/bin/configs/java-retrofit2-play25.yaml @@ -0,0 +1,11 @@ +generatorName: java +outputDir: samples/client/petstore/java/retrofit2-play25 +library: retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + usePlayWS: "true" + enableBuilderSupport: "true" + useBeanValidation: "true" + playVersion: play25 + artifactId: petstore-java-client-retrofit2-play25 + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-retrofit2-play26.yaml b/bin/configs/java-retrofit2-play26.yaml new file mode 100644 index 00000000000..5fe367fb79f --- /dev/null +++ b/bin/configs/java-retrofit2-play26.yaml @@ -0,0 +1,11 @@ +generatorName: java +outputDir: samples/client/petstore/java/retrofit2-play26 +library: retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + usePlayWS: "true" + enableBuilderSupport: "true" + useBeanValidation: "true" + playVersion: play26 + artifactId: petstore-java-client-retrofit2-play26 + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-retrofit2.yaml b/bin/configs/java-retrofit2.yaml new file mode 100644 index 00000000000..2879e3e4493 --- /dev/null +++ b/bin/configs/java-retrofit2.yaml @@ -0,0 +1,8 @@ +generatorName: java +outputDir: samples/client/petstore/java/retrofit2 +library: retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + artifactId: petstore-retrofit2 + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-retrofit2rx.yaml b/bin/configs/java-retrofit2rx.yaml new file mode 100644 index 00000000000..2f84144f78f --- /dev/null +++ b/bin/configs/java-retrofit2rx.yaml @@ -0,0 +1,9 @@ +generatorName: java +outputDir: samples/client/petstore/java/retrofit2rx +library: retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + useRxJava: "true" + artifactId: petstore-retrofit2-rx + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-retrofit2rx2.yaml b/bin/configs/java-retrofit2rx2.yaml new file mode 100644 index 00000000000..dfb55acb481 --- /dev/null +++ b/bin/configs/java-retrofit2rx2.yaml @@ -0,0 +1,9 @@ +generatorName: java +outputDir: samples/client/petstore/java/retrofit2rx2 +library: retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + useRxJava2: "true" + artifactId: petstore-retrofit2-rx2 + hideGenerationTimestamp: "true" diff --git a/bin/configs/java-vertx.yaml b/bin/configs/java-vertx.yaml new file mode 100644 index 00000000000..cf019b5da88 --- /dev/null +++ b/bin/configs/java-vertx.yaml @@ -0,0 +1,9 @@ +generatorName: java +outputDir: samples/client/petstore/java/vertx +library: vertx +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + artifactId: petstore-vertx + hideGenerationTimestamp: "true" + dateLibrary: java8 diff --git a/bin/configs/java-webclient.yaml b/bin/configs/java-webclient.yaml new file mode 100644 index 00000000000..dafc9835f23 --- /dev/null +++ b/bin/configs/java-webclient.yaml @@ -0,0 +1,7 @@ +generatorName: java +outputDir: samples/client/petstore/java/webclient +library: webclient +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: petstore-webclient + hideGenerationTimestamp: "true" diff --git a/bin/configs/javascript-es6.yaml b/bin/configs/javascript-es6.yaml new file mode 100644 index 00000000000..08a49e7935b --- /dev/null +++ b/bin/configs/javascript-es6.yaml @@ -0,0 +1,6 @@ +generatorName: javascript +outputDir: samples/client/petstore/javascript-es6 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Javascript/es6 +additionalProperties: + appName: PetstoreClient diff --git a/bin/configs/javascript-promise-es6.yaml b/bin/configs/javascript-promise-es6.yaml new file mode 100644 index 00000000000..c21b9c1376f --- /dev/null +++ b/bin/configs/javascript-promise-es6.yaml @@ -0,0 +1,7 @@ +generatorName: javascript +outputDir: samples/client/petstore/javascript-promise-es6 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Javascript/es6 +additionalProperties: + usePromises: "true" + appName: PetstoreClient diff --git a/bin/configs/jaxrs-cxf-annotated-base-path.yaml b/bin/configs/jaxrs-cxf-annotated-base-path.yaml new file mode 100644 index 00000000000..ddff8105f24 --- /dev/null +++ b/bin/configs/jaxrs-cxf-annotated-base-path.yaml @@ -0,0 +1,9 @@ +generatorName: jaxrs-cxf +outputDir: samples/server/petstore/jaxrs-cxf-annotated-base-path +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf +additionalProperties: + artifactId: cxf-annotated-basepath + hideGenerationTimestamp: "true" + serverPort: "8082" + useAnnotatedBasePath: "true" diff --git a/bin/configs/jaxrs-cxf-cdi.yaml b/bin/configs/jaxrs-cxf-cdi.yaml new file mode 100644 index 00000000000..59b8fc8c336 --- /dev/null +++ b/bin/configs/jaxrs-cxf-cdi.yaml @@ -0,0 +1,6 @@ +generatorName: jaxrs-cxf-cdi +outputDir: samples/server/petstore/jaxrs-cxf-cdi +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/jaxrs-cxf-non-spring-app.yaml b/bin/configs/jaxrs-cxf-non-spring-app.yaml new file mode 100644 index 00000000000..b1f09c10810 --- /dev/null +++ b/bin/configs/jaxrs-cxf-non-spring-app.yaml @@ -0,0 +1,9 @@ +generatorName: jaxrs-cxf +outputDir: samples/server/petstore/jaxrs-cxf-non-spring-app +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf +additionalProperties: + artifactId: cxf-server-non-spring + hideGenerationTimestamp: "true" + generateNonSpringApplication: "true" + serverPort: "8082" diff --git a/bin/configs/jaxrs-cxf.yaml b/bin/configs/jaxrs-cxf.yaml new file mode 100644 index 00000000000..81988d2576d --- /dev/null +++ b/bin/configs/jaxrs-cxf.yaml @@ -0,0 +1,7 @@ +generatorName: jaxrs-cxf +outputDir: samples/server/petstore/jaxrs-cxf +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf +additionalProperties: + hideGenerationTimestamp: "true" + serverPort: "8082" diff --git a/bin/configs/jaxrs-jersey-jaxrs-datelib-j8.yaml b/bin/configs/jaxrs-jersey-jaxrs-datelib-j8.yaml new file mode 100644 index 00000000000..902a8abae0b --- /dev/null +++ b/bin/configs/jaxrs-jersey-jaxrs-datelib-j8.yaml @@ -0,0 +1,12 @@ +generatorName: jaxrs-jersey +outputDir: samples/server/petstore/jaxrs-datelib-j8 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS +additionalProperties: + serializableModel: true + withXml: true + java8: true + useBeanValidation: true + hideGenerationTimestamp: "true" + serverPort: "8082" + dateLibrary: java8 diff --git a/bin/configs/jaxrs-jersey-jersey1-useTags.yaml b/bin/configs/jaxrs-jersey-jersey1-useTags.yaml new file mode 100644 index 00000000000..98c76c0e451 --- /dev/null +++ b/bin/configs/jaxrs-jersey-jersey1-useTags.yaml @@ -0,0 +1,10 @@ +generatorName: jaxrs-jersey +outputDir: samples/server/petstore/jaxrs/jersey1-useTags +library: jersey1 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS +additionalProperties: + artifactId: jaxrs-jersey1-useTags + hideGenerationTimestamp: "true" + serverPort: "8082" + useTags: "true" diff --git a/bin/configs/jaxrs-jersey-jersey1.yaml b/bin/configs/jaxrs-jersey-jersey1.yaml new file mode 100644 index 00000000000..8df27c59be7 --- /dev/null +++ b/bin/configs/jaxrs-jersey-jersey1.yaml @@ -0,0 +1,9 @@ +generatorName: jaxrs-jersey +outputDir: samples/server/petstore/jaxrs/jersey1 +library: jersey1 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS +additionalProperties: + artifactId: jaxrs-jersey1-server + hideGenerationTimestamp: "true" + serverPort: "8082" diff --git a/bin/configs/jaxrs-jersey-jersey2-useTags.yaml b/bin/configs/jaxrs-jersey-jersey2-useTags.yaml new file mode 100644 index 00000000000..8a2d89b02f2 --- /dev/null +++ b/bin/configs/jaxrs-jersey-jersey2-useTags.yaml @@ -0,0 +1,9 @@ +generatorName: jaxrs-jersey +outputDir: samples/server/petstore/jaxrs/jersey2-useTags +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS +additionalProperties: + artifactId: jaxrs-jersey2-useTags + hideGenerationTimestamp: "true" + serverPort: "8082" + useTags: "true" diff --git a/bin/configs/jaxrs-jersey-jersey2.yaml b/bin/configs/jaxrs-jersey-jersey2.yaml new file mode 100644 index 00000000000..8345db9f397 --- /dev/null +++ b/bin/configs/jaxrs-jersey-jersey2.yaml @@ -0,0 +1,8 @@ +generatorName: jaxrs-jersey +outputDir: samples/server/petstore/jaxrs/jersey2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS +additionalProperties: + artifactId: jaxrs-jersey-petstore-server + hideGenerationTimestamp: "true" + serverPort: "8082" diff --git a/bin/configs/jaxrs-jersey.yaml b/bin/configs/jaxrs-jersey.yaml new file mode 100644 index 00000000000..81328a6de1b --- /dev/null +++ b/bin/configs/jaxrs-jersey.yaml @@ -0,0 +1,8 @@ +generatorName: jaxrs-jersey +outputDir: samples/server/petstore/jaxrs-jersey +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS +additionalProperties: + artifactId: openapiv3-jaxrs-jersey-petstore-server + hideGenerationTimestamp: "true" + serverPort: "8080" diff --git a/bin/configs/jaxrs-resteasy-default.yaml b/bin/configs/jaxrs-resteasy-default.yaml new file mode 100644 index 00000000000..3fd9e38fb2b --- /dev/null +++ b/bin/configs/jaxrs-resteasy-default.yaml @@ -0,0 +1,6 @@ +generatorName: jaxrs-resteasy +outputDir: samples/server/petstore/jaxrs-resteasy/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/jaxrs-resteasy-eap-eap-java8.yaml b/bin/configs/jaxrs-resteasy-eap-eap-java8.yaml new file mode 100644 index 00000000000..3315b6e1a02 --- /dev/null +++ b/bin/configs/jaxrs-resteasy-eap-eap-java8.yaml @@ -0,0 +1,8 @@ +generatorName: jaxrs-resteasy-eap +outputDir: samples/server/petstore/jaxrs-resteasy/eap-java8 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap +additionalProperties: + artifactId: jaxrs-resteasy-eap-java8-server + hideGenerationTimestamp: "true" + dateLibrary: java8 diff --git a/bin/configs/jaxrs-resteasy-eap-eap-joda.yaml b/bin/configs/jaxrs-resteasy-eap-eap-joda.yaml new file mode 100644 index 00000000000..a985b866cd3 --- /dev/null +++ b/bin/configs/jaxrs-resteasy-eap-eap-joda.yaml @@ -0,0 +1,8 @@ +generatorName: jaxrs-resteasy-eap +outputDir: samples/server/petstore/jaxrs-resteasy/eap-joda +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap +additionalProperties: + artifactId: jaxrs-resteasy-eap-joda-server + hideGenerationTimestamp: "true" + dateLibrary: joda diff --git a/bin/configs/jaxrs-resteasy-eap-eap.yaml b/bin/configs/jaxrs-resteasy-eap-eap.yaml new file mode 100644 index 00000000000..5f776839cab --- /dev/null +++ b/bin/configs/jaxrs-resteasy-eap-eap.yaml @@ -0,0 +1,6 @@ +generatorName: jaxrs-resteasy-eap +outputDir: samples/server/petstore/jaxrs-resteasy/eap +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/jaxrs-resteasy-joda.yaml b/bin/configs/jaxrs-resteasy-joda.yaml new file mode 100644 index 00000000000..13fb6b8b671 --- /dev/null +++ b/bin/configs/jaxrs-resteasy-joda.yaml @@ -0,0 +1,8 @@ +generatorName: jaxrs-resteasy +outputDir: samples/server/petstore/jaxrs-resteasy/joda +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy +additionalProperties: + artifactId: jaxrs-resteasy-joda-server + hideGenerationTimestamp: "true" + dateLibrary: joda diff --git a/bin/configs/jaxrs-spec-interface.yaml b/bin/configs/jaxrs-spec-interface.yaml new file mode 100644 index 00000000000..2c0b68c410b --- /dev/null +++ b/bin/configs/jaxrs-spec-interface.yaml @@ -0,0 +1,8 @@ +generatorName: jaxrs-spec +outputDir: samples/server/petstore/jaxrs-spec-interface +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: jaxrs-spec-interface-petstore-server + interfaceOnly: "true" + serializableModel: "true" + hideGenerationTimestamp: "true" diff --git a/bin/configs/jaxrs-spec.yaml b/bin/configs/jaxrs-spec.yaml new file mode 100644 index 00000000000..df44fac3717 --- /dev/null +++ b/bin/configs/jaxrs-spec.yaml @@ -0,0 +1,7 @@ +generatorName: jaxrs-spec +outputDir: samples/server/petstore/jaxrs-spec +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: jaxrs-spec-petstore-server + serializableModel: "true" + hideGenerationTimestamp: "true" diff --git a/bin/configs/kotlin-gson.yaml b/bin/configs/kotlin-gson.yaml new file mode 100644 index 00000000000..e4e55689509 --- /dev/null +++ b/bin/configs/kotlin-gson.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-gson +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: gson + artifactId: kotlin-petstore-gson diff --git a/bin/configs/kotlin-jackson.yaml b/bin/configs/kotlin-jackson.yaml new file mode 100644 index 00000000000..2d37a29f38a --- /dev/null +++ b/bin/configs/kotlin-jackson.yaml @@ -0,0 +1,8 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-jackson +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: jackson + artifactId: kotlin-petstore-jackson + enumPropertyNaming: UPPERCASE diff --git a/bin/configs/kotlin-json-request-string.yaml b/bin/configs/kotlin-json-request-string.yaml new file mode 100644 index 00000000000..8f1dade28c9 --- /dev/null +++ b/bin/configs/kotlin-json-request-string.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-json-request-string +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + requestDateConverter: toString + artifactId: kotlin-petstore-json-request-string diff --git a/bin/configs/kotlin-jvm-okhttp3-okhttp3.yaml b/bin/configs/kotlin-jvm-okhttp3-okhttp3.yaml new file mode 100644 index 00000000000..f8be34a2f0a --- /dev/null +++ b/bin/configs/kotlin-jvm-okhttp3-okhttp3.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-okhttp3 +library: jvm-okhttp3 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-okhttp3 diff --git a/bin/configs/kotlin-jvm-okhttp4-coroutines.yaml b/bin/configs/kotlin-jvm-okhttp4-coroutines.yaml new file mode 100644 index 00000000000..0718c164d56 --- /dev/null +++ b/bin/configs/kotlin-jvm-okhttp4-coroutines.yaml @@ -0,0 +1,11 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-jvm-okhttp4-coroutines +library: jvm-okhttp4 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: gson + useCoroutines: "true" + artifactId: kotlin-petstore-okhttp4-coroutines-client + serializableModel: "true" + dateLibrary: java8 diff --git a/bin/configs/kotlin-jvm-retrofit2-retrofit2.yaml b/bin/configs/kotlin-jvm-retrofit2-retrofit2.yaml new file mode 100644 index 00000000000..0729bf8ecd8 --- /dev/null +++ b/bin/configs/kotlin-jvm-retrofit2-retrofit2.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-retrofit2 +library: jvm-retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-retrofit2 diff --git a/bin/configs/kotlin-moshi-codegen.yaml b/bin/configs/kotlin-moshi-codegen.yaml new file mode 100644 index 00000000000..00536bbf1cf --- /dev/null +++ b/bin/configs/kotlin-moshi-codegen.yaml @@ -0,0 +1,8 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-moshi-codegen +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: moshi + artifactId: kotlin-petstore-moshi-codegen + moshiCodeGen: "true" diff --git a/bin/configs/kotlin-multiplatform.yaml b/bin/configs/kotlin-multiplatform.yaml new file mode 100644 index 00000000000..ba50f38f678 --- /dev/null +++ b/bin/configs/kotlin-multiplatform.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-multiplatform +library: multiplatform +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-client-petstore-multiplatform diff --git a/bin/configs/kotlin-nonpublic.yaml b/bin/configs/kotlin-nonpublic.yaml new file mode 100644 index 00000000000..fbc64ceb00d --- /dev/null +++ b/bin/configs/kotlin-nonpublic.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-nonpublic +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + nonPublicApi: "true" + artifactId: kotlin-petstore-nonpublic diff --git a/bin/configs/kotlin-nullable.yaml b/bin/configs/kotlin-nullable.yaml new file mode 100644 index 00000000000..27fe5c6b0d8 --- /dev/null +++ b/bin/configs/kotlin-nullable.yaml @@ -0,0 +1,8 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-nullable +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-nullable + serializableModel: "true" + nullableReturnType: "true" diff --git a/bin/configs/kotlin-server-ktor.yaml b/bin/configs/kotlin-server-ktor.yaml new file mode 100644 index 00000000000..ad5bce1047e --- /dev/null +++ b/bin/configs/kotlin-server-ktor.yaml @@ -0,0 +1,8 @@ +generatorName: kotlin-server +outputDir: samples/server/petstore/kotlin-server/ktor +library: ktor +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-server +additionalProperties: + hideGenerationTimestamp: "true" + serializableModel: "true" diff --git a/bin/configs/kotlin-spring-boot-reactive.yaml b/bin/configs/kotlin-spring-boot-reactive.yaml new file mode 100644 index 00000000000..4730069192b --- /dev/null +++ b/bin/configs/kotlin-spring-boot-reactive.yaml @@ -0,0 +1,10 @@ +generatorName: kotlin-spring +outputDir: samples/server/petstore/kotlin-springboot-reactive +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-spring +additionalProperties: + serviceImplementation: "true" + library: spring-boot + reactive: "true" + swaggerAnnotations: "true" + beanValidations: "true" diff --git a/bin/configs/kotlin-spring-boot.yaml b/bin/configs/kotlin-spring-boot.yaml new file mode 100644 index 00000000000..df44a4dfb56 --- /dev/null +++ b/bin/configs/kotlin-spring-boot.yaml @@ -0,0 +1,10 @@ +generatorName: kotlin-spring +outputDir: samples/server/petstore/kotlin-springboot +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-spring +additionalProperties: + serviceImplementation: "true" + library: spring-boot + serializableModel: "true" + swaggerAnnotations: "true" + beanValidations: "true" diff --git a/bin/configs/kotlin-string.yaml b/bin/configs/kotlin-string.yaml new file mode 100644 index 00000000000..e6cd63e4b40 --- /dev/null +++ b/bin/configs/kotlin-string.yaml @@ -0,0 +1,10 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-string +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-string + serializableModel: "true" + sortModelPropertiesByRequiredFlag: "false" + sortParamsByRequiredFlag: "false" + dateLibrary: string diff --git a/bin/configs/kotlin-threetenbp.yaml b/bin/configs/kotlin-threetenbp.yaml new file mode 100644 index 00000000000..02c900e8e03 --- /dev/null +++ b/bin/configs/kotlin-threetenbp.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-threetenbp +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-threetenbp + dateLibrary: threetenbp diff --git a/bin/configs/kotlin.yaml b/bin/configs/kotlin.yaml new file mode 100644 index 00000000000..136fff6480d --- /dev/null +++ b/bin/configs/kotlin.yaml @@ -0,0 +1,8 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-client + serializableModel: "true" + dateLibrary: java8 diff --git a/bin/configs/lua.yaml b/bin/configs/lua.yaml new file mode 100644 index 00000000000..280cf32e741 --- /dev/null +++ b/bin/configs/lua.yaml @@ -0,0 +1,6 @@ +generatorName: lua +outputDir: samples/client/petstore/lua +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/lua +additionalProperties: + packageName: petstore diff --git a/bin/configs/mysql-schema-mysql.yaml b/bin/configs/mysql-schema-mysql.yaml new file mode 100644 index 00000000000..4a4811ae106 --- /dev/null +++ b/bin/configs/mysql-schema-mysql.yaml @@ -0,0 +1,4 @@ +generatorName: mysql-schema +outputDir: samples/schema/petstore/mysql +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/mysql-schema diff --git a/bin/configs/nim.yaml b/bin/configs/nim.yaml new file mode 100644 index 00000000000..136a92764c3 --- /dev/null +++ b/bin/configs/nim.yaml @@ -0,0 +1,6 @@ +generatorName: nim +outputDir: samples/client/petstore/nim +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/nim-client +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/ada.yaml b/bin/configs/other/ada.yaml new file mode 100644 index 00000000000..c67b9b7d3f0 --- /dev/null +++ b/bin/configs/other/ada.yaml @@ -0,0 +1,7 @@ +generatorName: ada +outputDir: samples/client/petstore/ada +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/Ada +additionalProperties: + modelPackage: Samples.Petstore + projectName: Petstore diff --git a/bin/configs/other/android-httpclient.yaml b/bin/configs/other/android-httpclient.yaml new file mode 100644 index 00000000000..1d5e23e2272 --- /dev/null +++ b/bin/configs/other/android-httpclient.yaml @@ -0,0 +1,6 @@ +generatorName: android +outputDir: samples/client/petstore/android/httpclient +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/android +additionalProperties: + library: httpclient diff --git a/bin/configs/other/android-volley.yaml b/bin/configs/other/android-volley.yaml new file mode 100644 index 00000000000..63a3c42a46f --- /dev/null +++ b/bin/configs/other/android-volley.yaml @@ -0,0 +1,6 @@ +generatorName: android +outputDir: samples/client/petstore/android/volley +library: volley +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + artifactId: petstore-android-volley diff --git a/bin/configs/other/apache2.yaml b/bin/configs/other/apache2.yaml new file mode 100644 index 00000000000..a5b28c44e51 --- /dev/null +++ b/bin/configs/other/apache2.yaml @@ -0,0 +1,4 @@ +generatorName: apache2 +outputDir: samples/config/petstore/apache2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/apache2 diff --git a/bin/configs/other/asciidoc.yaml b/bin/configs/other/asciidoc.yaml new file mode 100644 index 00000000000..4d93790d87b --- /dev/null +++ b/bin/configs/other/asciidoc.yaml @@ -0,0 +1,7 @@ +generatorName: asciidoc +outputDir: samples/documentation/asciidoc +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/asciidoc-documentation +additionalProperties: + specDir: modules/openapi-generator/src/main/resources/asciidoc-documentation + snippetDir: "." diff --git a/bin/configs/other/aspnetcore-3.0.yaml b/bin/configs/other/aspnetcore-3.0.yaml new file mode 100644 index 00000000000..762013c1696 --- /dev/null +++ b/bin/configs/other/aspnetcore-3.0.yaml @@ -0,0 +1,7 @@ +generatorName: aspnetcore +outputDir: samples/server/petstore/aspnetcore-3.0 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0 +additionalProperties: + packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}' + aspnetCoreVersion: "3.0" diff --git a/bin/configs/other/aspnetcore-3.1.yaml b/bin/configs/other/aspnetcore-3.1.yaml new file mode 100644 index 00000000000..0986677882a --- /dev/null +++ b/bin/configs/other/aspnetcore-3.1.yaml @@ -0,0 +1,7 @@ +generatorName: aspnetcore +outputDir: samples/server/petstore/aspnetcore-3.1 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/aspnetcore/3.0 +additionalProperties: + packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}' + aspnetCoreVersion: "3.1" diff --git a/bin/configs/other/aspnetcore.yaml b/bin/configs/other/aspnetcore.yaml new file mode 100644 index 00000000000..71f2659e7b6 --- /dev/null +++ b/bin/configs/other/aspnetcore.yaml @@ -0,0 +1,6 @@ +generatorName: aspnetcore +outputDir: samples/server/petstore/aspnetcore +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/aspnetcore/2.1 +additionalProperties: + packageGuid: '{3C799344-F285-4669-8FD5-7ED9B795D5C5}' diff --git a/bin/configs/other/avro-schema.yaml b/bin/configs/other/avro-schema.yaml new file mode 100644 index 00000000000..bf44846dc07 --- /dev/null +++ b/bin/configs/other/avro-schema.yaml @@ -0,0 +1,4 @@ +generatorName: avro-schema +outputDir: samples/openapi3/schema/petstore/avro-schema +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/avro-schema diff --git a/bin/configs/other/bash.yaml b/bin/configs/other/bash.yaml new file mode 100644 index 00000000000..4ad33693827 --- /dev/null +++ b/bin/configs/other/bash.yaml @@ -0,0 +1,14 @@ +generatorName: bash +outputDir: samples/client/petstore/bash +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/bash +additionalProperties: + generateZshCompletion: true + hostEnvironmentVariable: PETSTORE_HOST + curlOptions: -sS --tlsv1.2 + apiKeyAuthEnvironmentVariable: PETSTORE_API_KEY + processMarkdown: true + basicAuthEnvironmentVariable: PETSTORE_BASIC_AUTH + scriptName: petstore-cli + generateBashCompletion: true + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/c.yaml b/bin/configs/other/c.yaml new file mode 100644 index 00000000000..f622e7919a6 --- /dev/null +++ b/bin/configs/other/c.yaml @@ -0,0 +1,4 @@ +generatorName: c +outputDir: samples/client/petstore/c +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/C-libcurl diff --git a/bin/configs/other/clojure.yaml b/bin/configs/other/clojure.yaml new file mode 100644 index 00000000000..a34be0c3037 --- /dev/null +++ b/bin/configs/other/clojure.yaml @@ -0,0 +1,3 @@ +generatorName: clojure +outputDir: samples/client/petstore/clojure +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.json diff --git a/bin/configs/other/cpp-pistache-server-cpp-pistache.yaml b/bin/configs/other/cpp-pistache-server-cpp-pistache.yaml new file mode 100644 index 00000000000..4a0326357ef --- /dev/null +++ b/bin/configs/other/cpp-pistache-server-cpp-pistache.yaml @@ -0,0 +1,7 @@ +generatorName: cpp-pistache-server +outputDir: samples/server/petstore/cpp-pistache +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-pistache-server +additionalProperties: + useStructModel: "false" + addExternalLibs: "true" diff --git a/bin/configs/other/cpp-qt5-client.yaml b/bin/configs/other/cpp-qt5-client.yaml new file mode 100644 index 00000000000..dc36141b436 --- /dev/null +++ b/bin/configs/other/cpp-qt5-client.yaml @@ -0,0 +1,7 @@ +generatorName: cpp-qt5-client +outputDir: samples/client/petstore/cpp-qt5 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-qt5-client +additionalProperties: + cppNamespace: test_namespace + modelNamePrefix: PFX diff --git a/bin/configs/other/cpp-restbed-server-cpp-restbed.yaml b/bin/configs/other/cpp-restbed-server-cpp-restbed.yaml new file mode 100644 index 00000000000..3f07a71ff07 --- /dev/null +++ b/bin/configs/other/cpp-restbed-server-cpp-restbed.yaml @@ -0,0 +1,3 @@ +generatorName: cpp-restbed-server +outputDir: samples/server/petstore/cpp-restbed +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/other/cpp-tizen.yaml b/bin/configs/other/cpp-tizen.yaml new file mode 100644 index 00000000000..5efd42127c1 --- /dev/null +++ b/bin/configs/other/cpp-tizen.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-tizen +outputDir: samples/client/petstore/cpp-tizen +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-tizen-client diff --git a/bin/configs/other/cpp-ue4.yaml b/bin/configs/other/cpp-ue4.yaml new file mode 100644 index 00000000000..98df851e2d2 --- /dev/null +++ b/bin/configs/other/cpp-ue4.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-ue4 +outputDir: samples/client/petstore/cpp-ue4 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-ue4 diff --git a/bin/configs/other/csharp-OpenAPIClientNet35.yaml b/bin/configs/other/csharp-OpenAPIClientNet35.yaml new file mode 100644 index 00000000000..3851feda103 --- /dev/null +++ b/bin/configs/other/csharp-OpenAPIClientNet35.yaml @@ -0,0 +1,6 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientNet35 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + targetFramework: v3.5 + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' diff --git a/bin/configs/other/csharp-OpenAPIClientNet40.yaml b/bin/configs/other/csharp-OpenAPIClientNet40.yaml new file mode 100644 index 00000000000..57f5cd15245 --- /dev/null +++ b/bin/configs/other/csharp-OpenAPIClientNet40.yaml @@ -0,0 +1,6 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientNet40 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + targetFramework: v4.0 + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' diff --git a/bin/configs/other/csharp-OpenAPIClientNetCoreProject.yaml b/bin/configs/other/csharp-OpenAPIClientNetCoreProject.yaml new file mode 100644 index 00000000000..8c41863eb0e --- /dev/null +++ b/bin/configs/other/csharp-OpenAPIClientNetCoreProject.yaml @@ -0,0 +1,7 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientNetCoreProject +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + targetFramework: netstandard1.3 + packageGuid: '{67035b31-f8e5-41a4-9673-954035084f7d}' + netCoreProjectFile: "true" diff --git a/bin/configs/other/csharp-OpenAPIClientNetStandard.yaml b/bin/configs/other/csharp-OpenAPIClientNetStandard.yaml new file mode 100644 index 00000000000..d2398251e28 --- /dev/null +++ b/bin/configs/other/csharp-OpenAPIClientNetStandard.yaml @@ -0,0 +1,6 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientNetStandard +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + targetFramework: netstandard1.3 + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' diff --git a/bin/configs/other/csharp-OpenAPIClientWithPropertyChanged.yaml b/bin/configs/other/csharp-OpenAPIClientWithPropertyChanged.yaml new file mode 100644 index 00000000000..1ff167e0536 --- /dev/null +++ b/bin/configs/other/csharp-OpenAPIClientWithPropertyChanged.yaml @@ -0,0 +1,7 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + packageGuid: '{5CD900DE-8266-412F-A758-28E1F9C623D5}' + generatePropertyChanged: "true" + optionalEmitDefaultValues: "true" diff --git a/bin/configs/other/csharp-dotnet2-OpenAPIClient.yaml b/bin/configs/other/csharp-dotnet2-OpenAPIClient.yaml new file mode 100644 index 00000000000..76c07c772d6 --- /dev/null +++ b/bin/configs/other/csharp-dotnet2-OpenAPIClient.yaml @@ -0,0 +1,6 @@ +generatorName: csharp-dotnet2 +outputDir: samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/csharp-dotnet2 +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/csharp-nancyfx-nancyfx-async.yaml b/bin/configs/other/csharp-nancyfx-nancyfx-async.yaml new file mode 100644 index 00000000000..ae5e4671753 --- /dev/null +++ b/bin/configs/other/csharp-nancyfx-nancyfx-async.yaml @@ -0,0 +1,7 @@ +generatorName: csharp-nancyfx +outputDir: samples/server/petstore/nancyfx-async +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/csharp-nancyfx +additionalProperties: + asyncServer: "true" + packageGuid: '{768B8DC6-54EE-4D40-9B20-7857E1D742A4}' diff --git a/bin/configs/other/csharp-nancyfx-nancyfx.yaml b/bin/configs/other/csharp-nancyfx-nancyfx.yaml new file mode 100644 index 00000000000..5fd6cdffafe --- /dev/null +++ b/bin/configs/other/csharp-nancyfx-nancyfx.yaml @@ -0,0 +1,7 @@ +generatorName: csharp-nancyfx +outputDir: samples/server/petstore/nancyfx +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/csharp-nancyfx +additionalProperties: + asyncServer: "false" + packageGuid: '{768B8DC6-54EE-4D40-9B20-7857E1D742A4}' diff --git a/bin/configs/other/cwiki.yaml b/bin/configs/other/cwiki.yaml new file mode 100644 index 00000000000..bc17eb304fe --- /dev/null +++ b/bin/configs/other/cwiki.yaml @@ -0,0 +1,4 @@ +generatorName: cwiki +outputDir: samples/documentation/cwiki +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/confluenceWikiDocs diff --git a/bin/configs/other/dart-dio.yaml b/bin/configs/other/dart-dio.yaml new file mode 100644 index 00000000000..7013cbd4fae --- /dev/null +++ b/bin/configs/other/dart-dio.yaml @@ -0,0 +1,6 @@ +generatorName: dart-dio +outputDir: samples/client/petstore/dart-dio +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/dart-dio +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/dynamic-html.yaml b/bin/configs/other/dynamic-html.yaml new file mode 100644 index 00000000000..70904c511e1 --- /dev/null +++ b/bin/configs/other/dynamic-html.yaml @@ -0,0 +1,3 @@ +generatorName: dynamic-html +outputDir: samples/documentation/dynamic-html +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/eiffel.yaml b/bin/configs/other/eiffel.yaml new file mode 100644 index 00000000000..07a62662242 --- /dev/null +++ b/bin/configs/other/eiffel.yaml @@ -0,0 +1,3 @@ +generatorName: eiffel +outputDir: samples/client/petstore/eiffel +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml diff --git a/bin/configs/other/erlang-client.yaml b/bin/configs/other/erlang-client.yaml new file mode 100644 index 00000000000..27f1bdefe89 --- /dev/null +++ b/bin/configs/other/erlang-client.yaml @@ -0,0 +1,6 @@ +generatorName: erlang-client +outputDir: samples/client/petstore/erlang-client +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/erlang-client +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/erlang-proper.yaml b/bin/configs/other/erlang-proper.yaml new file mode 100644 index 00000000000..efde38060cd --- /dev/null +++ b/bin/configs/other/erlang-proper.yaml @@ -0,0 +1,6 @@ +generatorName: erlang-proper +outputDir: samples/client/petstore/erlang-proper +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/erlang-proper +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/erlang-server.yaml b/bin/configs/other/erlang-server.yaml new file mode 100644 index 00000000000..043ec4ffa73 --- /dev/null +++ b/bin/configs/other/erlang-server.yaml @@ -0,0 +1,4 @@ +generatorName: erlang-server +outputDir: samples/server/petstore/erlang-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/erlang-server diff --git a/bin/configs/other/flash.yaml b/bin/configs/other/flash.yaml new file mode 100644 index 00000000000..167b8ee89f3 --- /dev/null +++ b/bin/configs/other/flash.yaml @@ -0,0 +1,7 @@ +generatorName: flash +outputDir: samples/client/petstore/flash +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/flash +additionalProperties: + invokerPackage: org.openapitools + packageName: org.openapitools diff --git a/bin/configs/other/fsharp-functions.yaml b/bin/configs/other/fsharp-functions.yaml new file mode 100644 index 00000000000..d88cc165284 --- /dev/null +++ b/bin/configs/other/fsharp-functions.yaml @@ -0,0 +1,3 @@ +generatorName: fsharp-functions +outputDir: samples/server/petstore/fsharp-functions +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/other/fsharp-giraffe-server-fsharp-giraffe.yaml b/bin/configs/other/fsharp-giraffe-server-fsharp-giraffe.yaml new file mode 100644 index 00000000000..88882603304 --- /dev/null +++ b/bin/configs/other/fsharp-giraffe-server-fsharp-giraffe.yaml @@ -0,0 +1,4 @@ +generatorName: fsharp-giraffe-server +outputDir: samples/server/petstore/fsharp-giraffe +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/fsharp-giraffe-server diff --git a/bin/configs/other/graphql-nodejs-express-server.yaml b/bin/configs/other/graphql-nodejs-express-server.yaml new file mode 100644 index 00000000000..a26f6ad4448 --- /dev/null +++ b/bin/configs/other/graphql-nodejs-express-server.yaml @@ -0,0 +1,6 @@ +generatorName: graphql-nodejs-express-server +outputDir: samples/server/petstore/graphql-nodejs-express-server +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/graphql-nodejs-express-server +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/graphql-schema.yaml b/bin/configs/other/graphql-schema.yaml new file mode 100644 index 00000000000..2b019d74f63 --- /dev/null +++ b/bin/configs/other/graphql-schema.yaml @@ -0,0 +1,6 @@ +generatorName: graphql-schema +outputDir: samples/config/petstore/graphql-schema +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/graphql-schema +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/haskell-servant.yaml b/bin/configs/other/haskell-servant.yaml new file mode 100644 index 00000000000..1419e549097 --- /dev/null +++ b/bin/configs/other/haskell-servant.yaml @@ -0,0 +1,4 @@ +generatorName: haskell +outputDir: samples/server/petstore/haskell-servant +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/haskell-servant diff --git a/bin/configs/other/html.md.yaml b/bin/configs/other/html.md.yaml new file mode 100644 index 00000000000..31bb5790c9d --- /dev/null +++ b/bin/configs/other/html.md.yaml @@ -0,0 +1,3 @@ +generatorName: html +outputDir: samples/documentation/html.md +inputSpec: modules/openapi-generator/src/test/resources/2_0/markdown.yaml diff --git a/bin/configs/other/html.yaml b/bin/configs/other/html.yaml new file mode 100644 index 00000000000..ea24dcbd4b9 --- /dev/null +++ b/bin/configs/other/html.yaml @@ -0,0 +1,4 @@ +generatorName: html +outputDir: samples/documentation/html +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/htmlDocs diff --git a/bin/configs/other/html2.yaml b/bin/configs/other/html2.yaml new file mode 100644 index 00000000000..09022fd5fbc --- /dev/null +++ b/bin/configs/other/html2.yaml @@ -0,0 +1,6 @@ +generatorName: html2 +outputDir: samples/documentation/html2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/htmlDocs2 +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/java-inflector.yaml b/bin/configs/other/java-inflector.yaml new file mode 100644 index 00000000000..d7a88695aca --- /dev/null +++ b/bin/configs/other/java-inflector.yaml @@ -0,0 +1,6 @@ +generatorName: java-inflector +outputDir: samples/server/petstore/java-inflector +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaInflector +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/java-native-async.yaml b/bin/configs/other/java-native-async.yaml new file mode 100644 index 00000000000..eb95d524a29 --- /dev/null +++ b/bin/configs/other/java-native-async.yaml @@ -0,0 +1,9 @@ +generatorName: java +outputDir: samples/client/petstore/java/native-async +library: native +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/Java +additionalProperties: + artifactId: petstore-native + hideGenerationTimestamp: "true" + asyncNative: "true" diff --git a/bin/configs/other/java-pkmst.yaml b/bin/configs/other/java-pkmst.yaml new file mode 100644 index 00000000000..4d428c3679c --- /dev/null +++ b/bin/configs/other/java-pkmst.yaml @@ -0,0 +1,6 @@ +generatorName: java-pkmst +outputDir: samples/server/petstore/java-pkmst +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/java-pkmst +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/java-undertow-server-java-undertow.yaml b/bin/configs/other/java-undertow-server-java-undertow.yaml new file mode 100644 index 00000000000..2cbb1160f17 --- /dev/null +++ b/bin/configs/other/java-undertow-server-java-undertow.yaml @@ -0,0 +1,6 @@ +generatorName: java-undertow-server +outputDir: samples/server/petstore/java-undertow +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/java-undertow-server +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/java-vertx-async.yaml b/bin/configs/other/java-vertx-async.yaml new file mode 100644 index 00000000000..e9eee5e8f64 --- /dev/null +++ b/bin/configs/other/java-vertx-async.yaml @@ -0,0 +1,6 @@ +generatorName: java-vertx +outputDir: samples/server/petstore/java-vertx/async +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + hideGenerationTimestamp: "true" + vertxSwaggerRouterVersion: 1.4.0 diff --git a/bin/configs/other/java-vertx-rx.yaml b/bin/configs/other/java-vertx-rx.yaml new file mode 100644 index 00000000000..af064e6cbaf --- /dev/null +++ b/bin/configs/other/java-vertx-rx.yaml @@ -0,0 +1,8 @@ +generatorName: java-vertx +outputDir: samples/server/petstore/java-vertx/rx +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + artifactId: java-vertx-rx-server + hideGenerationTimestamp: "true" + vertxSwaggerRouterVersion: 1.4.0 + rxInterface: "true" diff --git a/bin/configs/other/java-vertx-web-rx.yaml b/bin/configs/other/java-vertx-web-rx.yaml new file mode 100644 index 00000000000..609aade555f --- /dev/null +++ b/bin/configs/other/java-vertx-web-rx.yaml @@ -0,0 +1,7 @@ +generatorName: java-vertx-web +outputDir: samples/server/petstore/java-vertx-web/rx +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaVertXWebServer +additionalProperties: + hideGenerationTimestamp: "true" + artifactId: java-vertx-web-rx-server diff --git a/bin/configs/other/javascript-apollo.yaml b/bin/configs/other/javascript-apollo.yaml new file mode 100644 index 00000000000..c462a622208 --- /dev/null +++ b/bin/configs/other/javascript-apollo.yaml @@ -0,0 +1,6 @@ +generatorName: javascript-apollo +outputDir: samples/client/petstore/javascript-apollo +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/Javascript-Apollo +additionalProperties: + appName: PetstoreClient diff --git a/bin/configs/other/javascript-closure-angular.yaml b/bin/configs/other/javascript-closure-angular.yaml new file mode 100644 index 00000000000..391b76b3e0b --- /dev/null +++ b/bin/configs/other/javascript-closure-angular.yaml @@ -0,0 +1,3 @@ +generatorName: javascript-closure-angular +outputDir: samples/client/petstore/javascript-closure-angular +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/other/javascript-flowtyped.yaml b/bin/configs/other/javascript-flowtyped.yaml new file mode 100644 index 00000000000..514f7fe1dfe --- /dev/null +++ b/bin/configs/other/javascript-flowtyped.yaml @@ -0,0 +1,6 @@ +generatorName: javascript-flowtyped +outputDir: samples/client/petstore/javascript-flowtyped +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/Javascript-Flowtyped +additionalProperties: + appName: PetstoreClient diff --git a/bin/configs/other/jaxrs-cxf-client.yaml b/bin/configs/other/jaxrs-cxf-client.yaml new file mode 100644 index 00000000000..26faac332b8 --- /dev/null +++ b/bin/configs/other/jaxrs-cxf-client.yaml @@ -0,0 +1,6 @@ +generatorName: jaxrs-cxf-client +outputDir: samples/client/petstore/jaxrs-cxf-client +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf +additionalProperties: + artifactId: jaxrs-cxf-petstore-client diff --git a/bin/configs/other/jaxrs-cxf-extended-jaxrs-cxf-test-data.yaml b/bin/configs/other/jaxrs-cxf-extended-jaxrs-cxf-test-data.yaml new file mode 100644 index 00000000000..c66a09deeeb --- /dev/null +++ b/bin/configs/other/jaxrs-cxf-extended-jaxrs-cxf-test-data.yaml @@ -0,0 +1,14 @@ +generatorName: jaxrs-cxf-extended +outputDir: samples/server/petstore/jaxrs-cxf-test-data +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext +generateAliasAsModel: true +additionalProperties: + java8: "true" + generateOperationBody: "true" + useAnnotatedBasePath: "true" + generateSpringBootApplication: "true" + artifactId: cxf-test-data + generateSpringApplication: "true" + hideGenerationTimestamp: "true" + loadTestDataFromFile: "true" diff --git a/bin/configs/other/jaxrs-spec-interface-response.yaml b/bin/configs/other/jaxrs-spec-interface-response.yaml new file mode 100644 index 00000000000..c3227e7e82e --- /dev/null +++ b/bin/configs/other/jaxrs-spec-interface-response.yaml @@ -0,0 +1,9 @@ +generatorName: jaxrs-spec +outputDir: samples/server/petstore/jaxrs-spec-interface-response +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + artifactId: jaxrs-spec-interface-response-petstore-server + interfaceOnly: "true" + serializableModel: "true" + hideGenerationTimestamp: "true" + returnResponse: "true" diff --git a/bin/configs/other/jmeter.yaml b/bin/configs/other/jmeter.yaml new file mode 100644 index 00000000000..fb9e359ffb5 --- /dev/null +++ b/bin/configs/other/jmeter.yaml @@ -0,0 +1,3 @@ +generatorName: jmeter +outputDir: samples/client/petstore/jmeter +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/other/k6.yaml b/bin/configs/other/k6.yaml new file mode 100644 index 00000000000..f1a6c1d5b23 --- /dev/null +++ b/bin/configs/other/k6.yaml @@ -0,0 +1,3 @@ +generatorName: k6 +outputDir: samples/client/petstore/k6 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/other/kotlin-spring-boot-modelMutable.yaml b/bin/configs/other/kotlin-spring-boot-modelMutable.yaml new file mode 100644 index 00000000000..ca3623d059e --- /dev/null +++ b/bin/configs/other/kotlin-spring-boot-modelMutable.yaml @@ -0,0 +1,11 @@ +generatorName: kotlin-spring +outputDir: samples/server/petstore/kotlin-springboot-modelMutable +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-spring +additionalProperties: + library: spring-boot + serializableModel: "true" + swaggerAnnotations: "true" + serviceImplementation: "true" + beanValidations: "true" + modelMutable: "true" diff --git a/bin/configs/other/kotlin-uppercase-enum.yaml b/bin/configs/other/kotlin-uppercase-enum.yaml new file mode 100644 index 00000000000..b3501dd8af9 --- /dev/null +++ b/bin/configs/other/kotlin-uppercase-enum.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/client/petstore/kotlin-uppercase-enum +inputSpec: modules/openapi-generator/src/test/resources/3_0/issue-4062.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-uppercase-enum + enumPropertyNaming: UPPERCASE diff --git a/bin/configs/other/kotlin-vertx-vertx.yaml b/bin/configs/other/kotlin-vertx-vertx.yaml new file mode 100644 index 00000000000..83660b6c78f --- /dev/null +++ b/bin/configs/other/kotlin-vertx-vertx.yaml @@ -0,0 +1,5 @@ +generatorName: kotlin-vertx +outputDir: samples/server/petstore/kotlin/vertx +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + modelMutable: "false" diff --git a/bin/configs/other/markdown.yaml b/bin/configs/other/markdown.yaml new file mode 100644 index 00000000000..9b490267160 --- /dev/null +++ b/bin/configs/other/markdown.yaml @@ -0,0 +1,4 @@ +generatorName: markdown +outputDir: samples/documentation/markdown +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/markdown-documentation diff --git a/bin/configs/other/nodejs-express-server.yaml b/bin/configs/other/nodejs-express-server.yaml new file mode 100644 index 00000000000..96c577ffacb --- /dev/null +++ b/bin/configs/other/nodejs-express-server.yaml @@ -0,0 +1,4 @@ +generatorName: nodejs-express-server +outputDir: samples/server/petstore/nodejs-express-server +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/nodejs-express-server diff --git a/bin/configs/other/objc-core-data.yaml b/bin/configs/other/objc-core-data.yaml new file mode 100644 index 00000000000..08560dd34db --- /dev/null +++ b/bin/configs/other/objc-core-data.yaml @@ -0,0 +1,8 @@ +generatorName: objc +outputDir: samples/client/petstore/objc/core-data +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.json +templateDir: modules/openapi-generator/src/main/resources/objc +additionalProperties: + classPrefix: SWG + podName: SwaggerClient + coreData: "true" diff --git a/bin/configs/other/objc-default.yaml b/bin/configs/other/objc-default.yaml new file mode 100644 index 00000000000..c2a1e34fd83 --- /dev/null +++ b/bin/configs/other/objc-default.yaml @@ -0,0 +1,7 @@ +generatorName: objc +outputDir: samples/client/petstore/objc/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.json +templateDir: modules/openapi-generator/src/main/resources/objc +additionalProperties: + classPrefix: SWG + podName: SwaggerClient diff --git a/bin/configs/other/ocaml.yaml b/bin/configs/other/ocaml.yaml new file mode 100644 index 00000000000..1933d84fb7d --- /dev/null +++ b/bin/configs/other/ocaml.yaml @@ -0,0 +1,6 @@ +generatorName: ocaml +outputDir: samples/client/petstore/ocaml +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/ocaml +additionalProperties: + packageName: petstore_client diff --git a/bin/configs/other/openapi3/android-httpclient.yaml b/bin/configs/other/openapi3/android-httpclient.yaml new file mode 100644 index 00000000000..32e253e0b8d --- /dev/null +++ b/bin/configs/other/openapi3/android-httpclient.yaml @@ -0,0 +1,6 @@ +generatorName: android +outputDir: samples/client/petstore/android/httpclient +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/android +additionalProperties: + library: httpclient diff --git a/bin/configs/other/openapi3/android-volley.yaml b/bin/configs/other/openapi3/android-volley.yaml new file mode 100644 index 00000000000..4903967ef33 --- /dev/null +++ b/bin/configs/other/openapi3/android-volley.yaml @@ -0,0 +1,6 @@ +generatorName: android +outputDir: samples/client/petstore/android/volley +library: volley +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + artifactId: petstore-android-volley diff --git a/bin/configs/other/openapi3/avro-schema.yaml b/bin/configs/other/openapi3/avro-schema.yaml new file mode 100644 index 00000000000..bf44846dc07 --- /dev/null +++ b/bin/configs/other/openapi3/avro-schema.yaml @@ -0,0 +1,4 @@ +generatorName: avro-schema +outputDir: samples/openapi3/schema/petstore/avro-schema +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/avro-schema diff --git a/bin/configs/other/openapi3/bash.yaml b/bin/configs/other/openapi3/bash.yaml new file mode 100644 index 00000000000..04de158b3fc --- /dev/null +++ b/bin/configs/other/openapi3/bash.yaml @@ -0,0 +1,14 @@ +generatorName: bash +outputDir: samples/client/petstore/bash +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/bash +additionalProperties: + generateZshCompletion: true + hostEnvironmentVariable: PETSTORE_HOST + curlOptions: -sS --tlsv1.2 + apiKeyAuthEnvironmentVariable: PETSTORE_API_KEY + processMarkdown: true + basicAuthEnvironmentVariable: PETSTORE_BASIC_AUTH + scriptName: petstore-cli + generateBashCompletion: true + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/openapi3/clojure.yaml b/bin/configs/other/openapi3/clojure.yaml new file mode 100644 index 00000000000..718503526fc --- /dev/null +++ b/bin/configs/other/openapi3/clojure.yaml @@ -0,0 +1,3 @@ +generatorName: clojure +outputDir: samples/client/petstore/clojure +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.json diff --git a/bin/configs/other/openapi3/cpp-pistache-server-cpp-pistache.yaml b/bin/configs/other/openapi3/cpp-pistache-server-cpp-pistache.yaml new file mode 100644 index 00000000000..4faabff095d --- /dev/null +++ b/bin/configs/other/openapi3/cpp-pistache-server-cpp-pistache.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-pistache-server +outputDir: samples/server/petstore/cpp-pistache +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-pistache-server diff --git a/bin/configs/other/openapi3/cpp-qt5-client-cpp-qt5.yaml b/bin/configs/other/openapi3/cpp-qt5-client-cpp-qt5.yaml new file mode 100644 index 00000000000..904d99a7510 --- /dev/null +++ b/bin/configs/other/openapi3/cpp-qt5-client-cpp-qt5.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-qt5-client +outputDir: samples/client/petstore/cpp-qt5 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-qt5-client diff --git a/bin/configs/other/openapi3/cpp-qt5-qhttpengine-server.yaml b/bin/configs/other/openapi3/cpp-qt5-qhttpengine-server.yaml new file mode 100644 index 00000000000..285c0d9d5dd --- /dev/null +++ b/bin/configs/other/openapi3/cpp-qt5-qhttpengine-server.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-qt5-qhttpengine-server +outputDir: samples/client/petstore/cpp-qt5-qhttpengine-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-qt5-qhttpengine-server diff --git a/bin/configs/other/openapi3/cpp-restbed-server-cpp-restbed.yaml b/bin/configs/other/openapi3/cpp-restbed-server-cpp-restbed.yaml new file mode 100644 index 00000000000..8e653b8a640 --- /dev/null +++ b/bin/configs/other/openapi3/cpp-restbed-server-cpp-restbed.yaml @@ -0,0 +1,3 @@ +generatorName: cpp-restbed-server +outputDir: samples/server/petstore/cpp-restbed +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/cpp-tizen.yaml b/bin/configs/other/openapi3/cpp-tizen.yaml new file mode 100644 index 00000000000..4f8d0e2a8c5 --- /dev/null +++ b/bin/configs/other/openapi3/cpp-tizen.yaml @@ -0,0 +1,4 @@ +generatorName: cpp-tizen +outputDir: samples/client/petstore/cpp-tizen +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/cpp-tizen-client diff --git a/bin/configs/other/openapi3/csharp-OpenAPIClient.yaml b/bin/configs/other/openapi3/csharp-OpenAPIClient.yaml new file mode 100644 index 00000000000..84c5cc5af41 --- /dev/null +++ b/bin/configs/other/openapi3/csharp-OpenAPIClient.yaml @@ -0,0 +1,5 @@ +generatorName: csharp +outputDir: samples/openapi3/client/petstore/csharp/OpenAPIClient +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' diff --git a/bin/configs/other/openapi3/csharp-OpenAPIClientNetStandard.yaml b/bin/configs/other/openapi3/csharp-OpenAPIClientNetStandard.yaml new file mode 100644 index 00000000000..64635629d27 --- /dev/null +++ b/bin/configs/other/openapi3/csharp-OpenAPIClientNetStandard.yaml @@ -0,0 +1,6 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientNetStandard +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + targetFramework: netstandard1.3 + packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}' diff --git a/bin/configs/other/openapi3/csharp-OpenAPIClientWithPropertyChanged.yaml b/bin/configs/other/openapi3/csharp-OpenAPIClientWithPropertyChanged.yaml new file mode 100644 index 00000000000..22b05d0dbbe --- /dev/null +++ b/bin/configs/other/openapi3/csharp-OpenAPIClientWithPropertyChanged.yaml @@ -0,0 +1,7 @@ +generatorName: csharp +outputDir: samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + packageGuid: '{5CD900DE-8266-412F-A758-28E1F9C623D5}' + generatePropertyChanged: "true" + optionalEmitDefaultValues: "true" diff --git a/bin/configs/other/openapi3/csharp-dotnet2-OpenAPIClient.yaml b/bin/configs/other/openapi3/csharp-dotnet2-OpenAPIClient.yaml new file mode 100644 index 00000000000..fa474d2f56f --- /dev/null +++ b/bin/configs/other/openapi3/csharp-dotnet2-OpenAPIClient.yaml @@ -0,0 +1,5 @@ +generatorName: csharp-dotnet2 +outputDir: samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/openapi3/elixir.yaml b/bin/configs/other/openapi3/elixir.yaml new file mode 100644 index 00000000000..79dd519cb1b --- /dev/null +++ b/bin/configs/other/openapi3/elixir.yaml @@ -0,0 +1,4 @@ +generatorName: elixir +outputDir: samples/client/petstore/elixir +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/elixir diff --git a/bin/configs/other/openapi3/flash.yaml b/bin/configs/other/openapi3/flash.yaml new file mode 100644 index 00000000000..52ed771332d --- /dev/null +++ b/bin/configs/other/openapi3/flash.yaml @@ -0,0 +1,7 @@ +generatorName: flash +outputDir: samples/client/petstore/flash +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/flash +additionalProperties: + invokerPackage: org.openapitools + packageName: org.openapitools diff --git a/bin/configs/other/openapi3/go-gin-server-go-gin-api-server.yaml b/bin/configs/other/openapi3/go-gin-server-go-gin-api-server.yaml new file mode 100644 index 00000000000..81932e5d67a --- /dev/null +++ b/bin/configs/other/openapi3/go-gin-server-go-gin-api-server.yaml @@ -0,0 +1,7 @@ +generatorName: go-gin-server +outputDir: samples/openapi3/server/petstore/go-gin-api-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go-gin-server +additionalProperties: + hideGenerationTimestamp: "true" + packageName: petstoreserver diff --git a/bin/configs/other/openapi3/go-petstore.yaml b/bin/configs/other/openapi3/go-petstore.yaml new file mode 100644 index 00000000000..aefc71b9011 --- /dev/null +++ b/bin/configs/other/openapi3/go-petstore.yaml @@ -0,0 +1,7 @@ +generatorName: go +outputDir: samples/openapi3/client/petstore/go/go-petstore +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go +additionalProperties: + enumClassPrefix: "true" + packageName: petstore diff --git a/bin/configs/other/openapi3/go-server-go-api-server.yaml b/bin/configs/other/openapi3/go-server-go-api-server.yaml new file mode 100644 index 00000000000..c5c85b26daa --- /dev/null +++ b/bin/configs/other/openapi3/go-server-go-api-server.yaml @@ -0,0 +1,7 @@ +generatorName: go-server +outputDir: samples/openapi3/server/petstore/go-api-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/go-server +additionalProperties: + hideGenerationTimestamp: "true" + packageName: petstoreserver diff --git a/bin/configs/other/openapi3/graphql-nodejs-express-server.yaml b/bin/configs/other/openapi3/graphql-nodejs-express-server.yaml new file mode 100644 index 00000000000..52f9f68d239 --- /dev/null +++ b/bin/configs/other/openapi3/graphql-nodejs-express-server.yaml @@ -0,0 +1,6 @@ +generatorName: graphql-nodejs-express-server +outputDir: samples/server/petstore/graphql-nodejs-express-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/graphql-nodejs-express-server +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/openapi3/haskell-http-client.yaml b/bin/configs/other/openapi3/haskell-http-client.yaml new file mode 100644 index 00000000000..7e16cbc5731 --- /dev/null +++ b/bin/configs/other/openapi3/haskell-http-client.yaml @@ -0,0 +1,4 @@ +generatorName: haskell-http-client +outputDir: samples/client/petstore/haskell-http-client +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/haskell-http-client diff --git a/bin/configs/other/openapi3/haskell-servant.yaml b/bin/configs/other/openapi3/haskell-servant.yaml new file mode 100644 index 00000000000..579db01c7f2 --- /dev/null +++ b/bin/configs/other/openapi3/haskell-servant.yaml @@ -0,0 +1,4 @@ +generatorName: haskell +outputDir: samples/server/petstore/haskell-servant +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/haskell-servant diff --git a/bin/configs/other/openapi3/javascript-closure-angular.yaml b/bin/configs/other/openapi3/javascript-closure-angular.yaml new file mode 100644 index 00000000000..5654e7ba5cd --- /dev/null +++ b/bin/configs/other/openapi3/javascript-closure-angular.yaml @@ -0,0 +1,3 @@ +generatorName: javascript-closure-angular +outputDir: samples/client/petstore/javascript-closure-angular +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/jaxrs-cxf-client.yaml b/bin/configs/other/openapi3/jaxrs-cxf-client.yaml new file mode 100644 index 00000000000..08cb8cd0a60 --- /dev/null +++ b/bin/configs/other/openapi3/jaxrs-cxf-client.yaml @@ -0,0 +1,6 @@ +generatorName: jaxrs-cxf-client +outputDir: samples/client/petstore/jaxrs-cxf-client +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaJaxRS/cxf +additionalProperties: + artifactId: jaxrs-cxf-petstore-client diff --git a/bin/configs/other/openapi3/kotlin-jvm-retrofit2-coroutines.yaml b/bin/configs/other/openapi3/kotlin-jvm-retrofit2-coroutines.yaml new file mode 100644 index 00000000000..b401e273723 --- /dev/null +++ b/bin/configs/other/openapi3/kotlin-jvm-retrofit2-coroutines.yaml @@ -0,0 +1,11 @@ +generatorName: kotlin +outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines +library: jvm-retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: gson + useCoroutines: "true" + artifactId: kotlin-petstore-coroutines-client + serializableModel: "true" + dateLibrary: java8 diff --git a/bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx.yaml b/bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx.yaml new file mode 100644 index 00000000000..882aa38c7c5 --- /dev/null +++ b/bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx.yaml @@ -0,0 +1,11 @@ +generatorName: kotlin +outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx +library: jvm-retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: gson + useRxJava: "true" + artifactId: kotlin-petstore-rx-client + serializableModel: "true" + dateLibrary: java8 diff --git a/bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx2.yaml b/bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx2.yaml new file mode 100644 index 00000000000..2332ff3be1f --- /dev/null +++ b/bin/configs/other/openapi3/kotlin-jvm-retrofit2-rx2.yaml @@ -0,0 +1,11 @@ +generatorName: kotlin +outputDir: samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2 +library: jvm-retrofit2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + serializationLibrary: gson + useRxJava2: "true" + artifactId: kotlin-petstore-rx2-client + serializableModel: "true" + dateLibrary: java8 diff --git a/bin/configs/other/openapi3/kotlin-multiplatform.yaml b/bin/configs/other/openapi3/kotlin-multiplatform.yaml new file mode 100644 index 00000000000..befdb3e3dd6 --- /dev/null +++ b/bin/configs/other/openapi3/kotlin-multiplatform.yaml @@ -0,0 +1,7 @@ +generatorName: kotlin +outputDir: samples/openapi3/client/petstore/kotlin-multiplatform +library: multiplatform +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-client-petstore-multiplatform diff --git a/bin/configs/other/openapi3/kotlin-spring-boot-reactive.yaml b/bin/configs/other/openapi3/kotlin-spring-boot-reactive.yaml new file mode 100644 index 00000000000..d0a726c9983 --- /dev/null +++ b/bin/configs/other/openapi3/kotlin-spring-boot-reactive.yaml @@ -0,0 +1,10 @@ +generatorName: kotlin-spring +outputDir: samples/openapi3/server/petstore/kotlin-springboot-reactive +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-spring +additionalProperties: + serviceImplementation: "true" + library: spring-boot + reactive: "true" + swaggerAnnotations: "true" + beanValidations: "true" diff --git a/bin/configs/other/openapi3/kotlin-spring-boot.yaml b/bin/configs/other/openapi3/kotlin-spring-boot.yaml new file mode 100644 index 00000000000..a61d999a530 --- /dev/null +++ b/bin/configs/other/openapi3/kotlin-spring-boot.yaml @@ -0,0 +1,10 @@ +generatorName: kotlin-spring +outputDir: samples/openapi3/server/petstore/kotlin-springboot +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-spring +additionalProperties: + serviceImplementation: "true" + library: spring-boot + serializableModel: "true" + swaggerAnnotations: "true" + beanValidations: "true" diff --git a/bin/configs/other/openapi3/kotlin.yaml b/bin/configs/other/openapi3/kotlin.yaml new file mode 100644 index 00000000000..526a8ef865a --- /dev/null +++ b/bin/configs/other/openapi3/kotlin.yaml @@ -0,0 +1,8 @@ +generatorName: kotlin +outputDir: samples/openapi3/client/petstore/kotlin +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/kotlin-client +additionalProperties: + artifactId: kotlin-petstore-client + serializableModel: "true" + dateLibrary: java8 diff --git a/bin/configs/other/openapi3/objc-core-data.yaml b/bin/configs/other/openapi3/objc-core-data.yaml new file mode 100644 index 00000000000..7d3e047bc2d --- /dev/null +++ b/bin/configs/other/openapi3/objc-core-data.yaml @@ -0,0 +1,7 @@ +generatorName: objc +outputDir: samples/client/petstore/objc/core-data +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.json +templateDir: modules/openapi-generator/src/main/resources/objc +additionalProperties: + coreData: "true" + appName: PetstoreClient diff --git a/bin/configs/other/openapi3/objc-default.yaml b/bin/configs/other/openapi3/objc-default.yaml new file mode 100644 index 00000000000..fbdef1a0a22 --- /dev/null +++ b/bin/configs/other/openapi3/objc-default.yaml @@ -0,0 +1,6 @@ +generatorName: objc +outputDir: samples/client/petstore/objc/default +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.json +templateDir: modules/openapi-generator/src/main/resources/objc +additionalProperties: + appName: PetstoreClient diff --git a/bin/configs/other/openapi3/php-laravel.yaml b/bin/configs/other/openapi3/php-laravel.yaml new file mode 100644 index 00000000000..3a405cc6736 --- /dev/null +++ b/bin/configs/other/openapi3/php-laravel.yaml @@ -0,0 +1,4 @@ +generatorName: php-laravel +outputDir: samples/server/petstore/php-laravel +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/php-laravel diff --git a/bin/configs/other/openapi3/php-slim-deprecated-php-slim.yaml b/bin/configs/other/openapi3/php-slim-deprecated-php-slim.yaml new file mode 100644 index 00000000000..09147cbb671 --- /dev/null +++ b/bin/configs/other/openapi3/php-slim-deprecated-php-slim.yaml @@ -0,0 +1,4 @@ +generatorName: php-slim-deprecated +outputDir: samples/server/petstore/php-slim +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/php-slim-server diff --git a/bin/configs/other/openapi3/php-slim4.yaml b/bin/configs/other/openapi3/php-slim4.yaml new file mode 100644 index 00000000000..a15c313a772 --- /dev/null +++ b/bin/configs/other/openapi3/php-slim4.yaml @@ -0,0 +1,4 @@ +generatorName: php-slim4 +outputDir: samples/server/petstore/php-slim4 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/php-slim4-server diff --git a/bin/configs/other/openapi3/php-symfony-SymfonyBundle-php.yaml b/bin/configs/other/openapi3/php-symfony-SymfonyBundle-php.yaml new file mode 100644 index 00000000000..ffb7015b650 --- /dev/null +++ b/bin/configs/other/openapi3/php-symfony-SymfonyBundle-php.yaml @@ -0,0 +1,4 @@ +generatorName: php-symfony +outputDir: samples/openapi3/server/petstore/php-symfony/SymfonyBundle-php +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/php-symfony diff --git a/bin/configs/other/openapi3/python-flask-python2.yaml b/bin/configs/other/openapi3/python-flask-python2.yaml new file mode 100644 index 00000000000..407389d9121 --- /dev/null +++ b/bin/configs/other/openapi3/python-flask-python2.yaml @@ -0,0 +1,6 @@ +generatorName: python-flask +outputDir: samples/openapi3/server/petstore/python-flask-python2 +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml +templateDir: modules/openapi-generator/src/main/resources/python-flask +additionalProperties: + supportPython2: true diff --git a/bin/configs/other/openapi3/python-flask.yaml b/bin/configs/other/openapi3/python-flask.yaml new file mode 100644 index 00000000000..aaca56bc6ee --- /dev/null +++ b/bin/configs/other/openapi3/python-flask.yaml @@ -0,0 +1,4 @@ +generatorName: python-flask +outputDir: samples/openapi3/server/petstore/python-flask +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml +templateDir: modules/openapi-generator/src/main/resources/python-flask diff --git a/bin/configs/other/openapi3/r-R.yaml b/bin/configs/other/openapi3/r-R.yaml new file mode 100644 index 00000000000..61be8bc8f11 --- /dev/null +++ b/bin/configs/other/openapi3/r-R.yaml @@ -0,0 +1,6 @@ +generatorName: r +outputDir: samples/client/petstore/R +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/r +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/openapi3/rust.yaml b/bin/configs/other/openapi3/rust.yaml new file mode 100644 index 00000000000..bb987820088 --- /dev/null +++ b/bin/configs/other/openapi3/rust.yaml @@ -0,0 +1,6 @@ +generatorName: rust +outputDir: samples/client/petstore/rust +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + packageName: petstore_client diff --git a/bin/configs/other/openapi3/scala-finch.yaml b/bin/configs/other/openapi3/scala-finch.yaml new file mode 100644 index 00000000000..3a9e69e674f --- /dev/null +++ b/bin/configs/other/openapi3/scala-finch.yaml @@ -0,0 +1,4 @@ +generatorName: scala-finch +outputDir: samples/server/petstore/scala-finch +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-finch diff --git a/bin/configs/other/openapi3/typescript-angular-default.yaml b/bin/configs/other/openapi3/typescript-angular-default.yaml new file mode 100644 index 00000000000..b9c8bb045b9 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-angular-default.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v2/default +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + ngVersion: "2" diff --git a/bin/configs/other/openapi3/typescript-angular-npm.yaml b/bin/configs/other/openapi3/typescript-angular-npm.yaml new file mode 100644 index 00000000000..537555aab7e --- /dev/null +++ b/bin/configs/other/openapi3/typescript-angular-npm.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v4.3/npm +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + npmVersion: 0.0.1 + ngVersion: "4.3" + npmName: '@openapitools/angular2-typescript-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/other/openapi3/typescript-angular-with-interfaces.yaml b/bin/configs/other/openapi3/typescript-angular-with-interfaces.yaml new file mode 100644 index 00000000000..a0f7e7de655 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-angular-with-interfaces.yaml @@ -0,0 +1,6 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v2/with-interfaces +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + withInterfaces: "true" + ngVersion: "2" diff --git a/bin/configs/other/openapi3/typescript-angularjs.yaml b/bin/configs/other/openapi3/typescript-angularjs.yaml new file mode 100644 index 00000000000..c379fa2ac6f --- /dev/null +++ b/bin/configs/other/openapi3/typescript-angularjs.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-angularjs +outputDir: samples/client/petstore/typescript-angularjs +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/typescript-aurelia-default.yaml b/bin/configs/other/openapi3/typescript-aurelia-default.yaml new file mode 100644 index 00000000000..9a8fd34ad16 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-aurelia-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-aurelia +outputDir: samples/client/petstore/typescript-aurelia/default +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/typescript-fetch-default.yaml b/bin/configs/other/openapi3/typescript-fetch-default.yaml new file mode 100644 index 00000000000..d7d60dee382 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-fetch-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/default +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/typescript-fetch-es6-target.yaml b/bin/configs/other/openapi3/typescript-fetch-es6-target.yaml new file mode 100644 index 00000000000..b62b1c17ffa --- /dev/null +++ b/bin/configs/other/openapi3/typescript-fetch-es6-target.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/es6-target +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + supportsES6: true + npmName: '@openapitools/typescript-fetch-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/other/openapi3/typescript-fetch-with-interfaces.yaml b/bin/configs/other/openapi3/typescript-fetch-with-interfaces.yaml new file mode 100644 index 00000000000..9db3697aba3 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-fetch-with-interfaces.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/with-interfaces +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + withInterfaces: "true" diff --git a/bin/configs/other/openapi3/typescript-fetch-with-npm-version.yaml b/bin/configs/other/openapi3/typescript-fetch-with-npm-version.yaml new file mode 100644 index 00000000000..337538857da --- /dev/null +++ b/bin/configs/other/openapi3/typescript-fetch-with-npm-version.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/with-npm-version +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-fetch-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/other/openapi3/typescript-inversify.yaml b/bin/configs/other/openapi3/typescript-inversify.yaml new file mode 100644 index 00000000000..a7b55a50456 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-inversify.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-inversify +outputDir: samples/client/petstore/typescript-inversify +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/typescript-jquery-default.yaml b/bin/configs/other/openapi3/typescript-jquery-default.yaml new file mode 100644 index 00000000000..54c50bae2aa --- /dev/null +++ b/bin/configs/other/openapi3/typescript-jquery-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-jquery +outputDir: samples/client/petstore/typescript-jquery/default +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/typescript-jquery-npm.yaml b/bin/configs/other/openapi3/typescript-jquery-npm.yaml new file mode 100644 index 00000000000..fe44d227ec0 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-jquery-npm.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-jquery +outputDir: samples/client/petstore/typescript-jquery/npm +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + npmVersion: 0.0.1 + npmName: '@openapitools/jquery-typescript-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/other/openapi3/typescript-node-default.yaml b/bin/configs/other/openapi3/typescript-node-default.yaml new file mode 100644 index 00000000000..5b43b294fad --- /dev/null +++ b/bin/configs/other/openapi3/typescript-node-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-node +outputDir: samples/client/petstore/typescript-node/default +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/openapi3/typescript-node-npm.yaml b/bin/configs/other/openapi3/typescript-node-npm.yaml new file mode 100644 index 00000000000..15fdb553618 --- /dev/null +++ b/bin/configs/other/openapi3/typescript-node-npm.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-node +outputDir: samples/client/petstore/typescript-node/npm +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +additionalProperties: + npmVersion: 0.0.1 + npmName: '@openapitools/angular2-typescript-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/other/php-laravel.yaml b/bin/configs/other/php-laravel.yaml new file mode 100644 index 00000000000..1bc76c95f43 --- /dev/null +++ b/bin/configs/other/php-laravel.yaml @@ -0,0 +1,4 @@ +generatorName: php-laravel +outputDir: samples/server/petstore/php-laravel +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php-laravel diff --git a/bin/configs/other/php-slim4.yaml b/bin/configs/other/php-slim4.yaml new file mode 100644 index 00000000000..86e4124ad87 --- /dev/null +++ b/bin/configs/other/php-slim4.yaml @@ -0,0 +1,4 @@ +generatorName: php-slim4 +outputDir: samples/server/petstore/php-slim4 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php-slim4-server diff --git a/bin/configs/other/plantuml.yaml b/bin/configs/other/plantuml.yaml new file mode 100644 index 00000000000..397fad4f643 --- /dev/null +++ b/bin/configs/other/plantuml.yaml @@ -0,0 +1,4 @@ +generatorName: plantuml +outputDir: samples/documentation/petstore/plantuml +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/plantuml diff --git a/bin/configs/other/powershell.yaml b/bin/configs/other/powershell.yaml new file mode 100644 index 00000000000..2ef633c994f --- /dev/null +++ b/bin/configs/other/powershell.yaml @@ -0,0 +1,11 @@ +generatorName: powershell +outputDir: samples/client/petstore/powershell +inputSpec: modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/powershell +additionalProperties: + packageGuid: a27b908d-2a20-467f-bc32-af6f3a654ac5 + commonVerbs: Delete=Remove:Patch=Update + packageVersion: 0.1.2 + packageName: PSPetstore + powershellGalleryUrl: https://www.powershellgallery.com/packages/PSPetstore + apiNamePrefix: PS diff --git a/bin/configs/other/protobuf-schema.yaml b/bin/configs/other/protobuf-schema.yaml new file mode 100644 index 00000000000..2b368f5d500 --- /dev/null +++ b/bin/configs/other/protobuf-schema.yaml @@ -0,0 +1,6 @@ +generatorName: protobuf-schema +outputDir: samples/config/petstore/protobuf-schema +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/protobuf-schema +additionalProperties: + packageName: petstore diff --git a/bin/configs/other/ruby-on-rails.yaml b/bin/configs/other/ruby-on-rails.yaml new file mode 100644 index 00000000000..931c44baa00 --- /dev/null +++ b/bin/configs/other/ruby-on-rails.yaml @@ -0,0 +1,4 @@ +generatorName: ruby-on-rails +outputDir: samples/server/petstore/ruby-on-rails +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/ruby-on-rails-server diff --git a/bin/configs/other/ruby-sinatra.yaml b/bin/configs/other/ruby-sinatra.yaml new file mode 100644 index 00000000000..f612a023c30 --- /dev/null +++ b/bin/configs/other/ruby-sinatra.yaml @@ -0,0 +1,4 @@ +generatorName: ruby-sinatra +outputDir: samples/server/petstore/ruby-sinatra +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/ruby-sinatra-server diff --git a/bin/configs/other/rust-hyper-fileResponseTest.yaml b/bin/configs/other/rust-hyper-fileResponseTest.yaml new file mode 100644 index 00000000000..fc26c786be8 --- /dev/null +++ b/bin/configs/other/rust-hyper-fileResponseTest.yaml @@ -0,0 +1,9 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/hyper/fileResponseTest +library: hyper +inputSpec: modules/openapi-generator/src/test/resources/2_0/fileResponseTest.json +templateDir: modules/openapi-generator/src/main/resources/rust +generateAliasAsModel: true +additionalProperties: + supportAsync: "false" + packageName: fileResponseTest-hyper diff --git a/bin/configs/other/rust-hyper-petstore.yaml b/bin/configs/other/rust-hyper-petstore.yaml new file mode 100644 index 00000000000..979b2f1fba9 --- /dev/null +++ b/bin/configs/other/rust-hyper-petstore.yaml @@ -0,0 +1,8 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/hyper/petstore +library: hyper +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + supportAsync: "false" + packageName: petstore-hyper diff --git a/bin/configs/other/rust-hyper-test.yaml b/bin/configs/other/rust-hyper-test.yaml new file mode 100644 index 00000000000..371d69150dd --- /dev/null +++ b/bin/configs/other/rust-hyper-test.yaml @@ -0,0 +1,8 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/hyper/rust-test +library: hyper +inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/rust-test.yaml +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + supportAsync: "false" + packageName: rust-test-hyper diff --git a/bin/configs/other/rust-reqwest-fileResponseTest.yaml b/bin/configs/other/rust-reqwest-fileResponseTest.yaml new file mode 100644 index 00000000000..15aadb72170 --- /dev/null +++ b/bin/configs/other/rust-reqwest-fileResponseTest.yaml @@ -0,0 +1,8 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/reqwest/fileResponseTest +library: reqwest +inputSpec: modules/openapi-generator/src/test/resources/2_0/fileResponseTest.json +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + supportAsync: "false" + packageName: fileResponseTest-reqwest diff --git a/bin/configs/other/rust-reqwest-petstore-async.yaml b/bin/configs/other/rust-reqwest-petstore-async.yaml new file mode 100644 index 00000000000..0fb53b47d28 --- /dev/null +++ b/bin/configs/other/rust-reqwest-petstore-async.yaml @@ -0,0 +1,8 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/reqwest/petstore-async +library: reqwest +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + supportAsync: "true" + packageName: petstore-reqwest-async diff --git a/bin/configs/other/rust-reqwest-petstore.yaml b/bin/configs/other/rust-reqwest-petstore.yaml new file mode 100644 index 00000000000..1bc1d4c8667 --- /dev/null +++ b/bin/configs/other/rust-reqwest-petstore.yaml @@ -0,0 +1,8 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/reqwest/petstore +library: reqwest +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + supportAsync: "false" + packageName: petstore-reqwest diff --git a/bin/configs/other/rust-reqwest-test.yaml b/bin/configs/other/rust-reqwest-test.yaml new file mode 100644 index 00000000000..74dbb40a812 --- /dev/null +++ b/bin/configs/other/rust-reqwest-test.yaml @@ -0,0 +1,8 @@ +generatorName: rust +outputDir: samples/client/petstore/rust/reqwest/rust-test +library: reqwest +inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/rust-test.yaml +templateDir: modules/openapi-generator/src/main/resources/rust +additionalProperties: + supportAsync: "false" + packageName: rust-test-reqwest diff --git a/bin/configs/other/scala-akka-http-server.yaml b/bin/configs/other/scala-akka-http-server.yaml new file mode 100644 index 00000000000..f4c82c9b340 --- /dev/null +++ b/bin/configs/other/scala-akka-http-server.yaml @@ -0,0 +1,3 @@ +generatorName: scala-akka-http-server +outputDir: samples/server/petstore/scala-akka-http-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml diff --git a/bin/configs/other/scala-finch.yaml b/bin/configs/other/scala-finch.yaml new file mode 100644 index 00000000000..4ec9a16b9f5 --- /dev/null +++ b/bin/configs/other/scala-finch.yaml @@ -0,0 +1,6 @@ +systemProperties: + skipFormModel: "true" +generatorName: scala-finch +outputDir: samples/server/petstore/scala-finch +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-finch diff --git a/bin/configs/other/scala-gatling.yaml b/bin/configs/other/scala-gatling.yaml new file mode 100644 index 00000000000..19858a71e1c --- /dev/null +++ b/bin/configs/other/scala-gatling.yaml @@ -0,0 +1,4 @@ +generatorName: scala-gatling +outputDir: samples/client/petstore/scala-gatling +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-gatling diff --git a/bin/configs/other/scala-httpclient-deprecated-scala-httpclient.yaml b/bin/configs/other/scala-httpclient-deprecated-scala-httpclient.yaml new file mode 100644 index 00000000000..45bfe59e5e1 --- /dev/null +++ b/bin/configs/other/scala-httpclient-deprecated-scala-httpclient.yaml @@ -0,0 +1,4 @@ +generatorName: scala-httpclient-deprecated +outputDir: samples/client/petstore/scala-httpclient +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-httpclient diff --git a/bin/configs/other/scala-lagom-server.yaml b/bin/configs/other/scala-lagom-server.yaml new file mode 100644 index 00000000000..8aabf4b0fd0 --- /dev/null +++ b/bin/configs/other/scala-lagom-server.yaml @@ -0,0 +1,6 @@ +systemProperties: + skipFormModel: "true" +generatorName: scala-lagom-server +outputDir: samples/server/petstore/scala-lagom-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-lagom-server diff --git a/bin/configs/other/scala-play-server.yaml b/bin/configs/other/scala-play-server.yaml new file mode 100644 index 00000000000..8d8d7ba70f6 --- /dev/null +++ b/bin/configs/other/scala-play-server.yaml @@ -0,0 +1,6 @@ +generatorName: scala-play-server +outputDir: samples/server/petstore/scala-play-server +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-play-server +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/other/scalatra.yaml b/bin/configs/other/scalatra.yaml new file mode 100644 index 00000000000..6445e10cd84 --- /dev/null +++ b/bin/configs/other/scalatra.yaml @@ -0,0 +1,4 @@ +generatorName: scalatra +outputDir: samples/server/petstore/scalatra +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scalatra diff --git a/bin/configs/other/scalaz.yaml b/bin/configs/other/scalaz.yaml new file mode 100644 index 00000000000..3cb4834d03b --- /dev/null +++ b/bin/configs/other/scalaz.yaml @@ -0,0 +1,6 @@ +systemProperties: + skipFormModel: "true" +generatorName: scalaz +outputDir: samples/client/petstore/scalaz +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scalaz diff --git a/bin/configs/other/swift5-alamofireLibrary.yaml b/bin/configs/other/swift5-alamofireLibrary.yaml new file mode 100644 index 00000000000..4c248326d53 --- /dev/null +++ b/bin/configs/other/swift5-alamofireLibrary.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/alamofireLibrary +library: alamofire +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-combineLibrary.yaml b/bin/configs/other/swift5-combineLibrary.yaml new file mode 100644 index 00000000000..9456638acf9 --- /dev/null +++ b/bin/configs/other/swift5-combineLibrary.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/combineLibrary +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + responseAs: Combine + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-default.yaml b/bin/configs/other/swift5-default.yaml new file mode 100644 index 00000000000..ede36e7331c --- /dev/null +++ b/bin/configs/other/swift5-default.yaml @@ -0,0 +1,10 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-deprecated.yaml b/bin/configs/other/swift5-deprecated.yaml new file mode 100644 index 00000000000..0b020673134 --- /dev/null +++ b/bin/configs/other/swift5-deprecated.yaml @@ -0,0 +1,10 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/deprecated +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-nonPublicApi.yaml b/bin/configs/other/swift5-nonPublicApi.yaml new file mode 100644 index 00000000000..1aec2c3bb16 --- /dev/null +++ b/bin/configs/other/swift5-nonPublicApi.yaml @@ -0,0 +1,12 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/nonPublicApi +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + sortParamsByRequiredFlag: false + nonPublicApi: true + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-objcCompatible.yaml b/bin/configs/other/swift5-objcCompatible.yaml new file mode 100644 index 00000000000..deb33907cc4 --- /dev/null +++ b/bin/configs/other/swift5-objcCompatible.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/objcCompatible +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + objcCompatible: true + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-promisekitLibrary.yaml b/bin/configs/other/swift5-promisekitLibrary.yaml new file mode 100644 index 00000000000..5cdeb02ad29 --- /dev/null +++ b/bin/configs/other/swift5-promisekitLibrary.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/promisekitLibrary +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + responseAs: PromiseKit + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-readonlyProperties.yaml b/bin/configs/other/swift5-readonlyProperties.yaml new file mode 100644 index 00000000000..0bb8b9d6f57 --- /dev/null +++ b/bin/configs/other/swift5-readonlyProperties.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/readonlyProperties +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + readonlyProperties: true + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-resultLibrary.yaml b/bin/configs/other/swift5-resultLibrary.yaml new file mode 100644 index 00000000000..0f0e4373e2c --- /dev/null +++ b/bin/configs/other/swift5-resultLibrary.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/resultLibrary +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + responseAs: Result + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-rxswiftLibrary.yaml b/bin/configs/other/swift5-rxswiftLibrary.yaml new file mode 100644 index 00000000000..f564ac3340c --- /dev/null +++ b/bin/configs/other/swift5-rxswiftLibrary.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/rxswiftLibrary +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + responseAs: RxSwift + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/swift5-urlsessionLibrary.yaml b/bin/configs/other/swift5-urlsessionLibrary.yaml new file mode 100644 index 00000000000..2fe5ecca0c7 --- /dev/null +++ b/bin/configs/other/swift5-urlsessionLibrary.yaml @@ -0,0 +1,11 @@ +generatorName: swift5 +outputDir: samples/client/petstore/swift5/urlsessionLibrary +library: urlsession +inputSpec: modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/swift5 +generateAliasAsModel: true +additionalProperties: + podAuthors: "" + podSummary: PetstoreClient + projectName: PetstoreClient + podHomepage: https://github.com/openapitools/openapi-generator diff --git a/bin/configs/other/typescript-redux-query-default.yaml b/bin/configs/other/typescript-redux-query-default.yaml new file mode 100644 index 00000000000..2cfab47ae96 --- /dev/null +++ b/bin/configs/other/typescript-redux-query-default.yaml @@ -0,0 +1,4 @@ +generatorName: typescript-redux-query +outputDir: samples/client/petstore/typescript-redux-query/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/typescript-redux-query diff --git a/bin/configs/perl-deep_module_test.yaml b/bin/configs/perl-deep_module_test.yaml new file mode 100644 index 00000000000..7934a205a08 --- /dev/null +++ b/bin/configs/perl-deep_module_test.yaml @@ -0,0 +1,6 @@ +generatorName: perl +outputDir: samples/client/petstore/perl/deep_module_test +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +additionalProperties: + moduleName: Something::Deep + hideGenerationTimestamp: "true" diff --git a/bin/configs/perl.yaml b/bin/configs/perl.yaml new file mode 100644 index 00000000000..17575b85be0 --- /dev/null +++ b/bin/configs/perl.yaml @@ -0,0 +1,6 @@ +generatorName: perl +outputDir: samples/client/petstore/perl +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/perl +additionalProperties: + hideGenerationTimestamp: "true" diff --git a/bin/configs/php-OpenAPIClient-oas2.yaml b/bin/configs/php-OpenAPIClient-oas2.yaml new file mode 100644 index 00000000000..d8cf9859d8f --- /dev/null +++ b/bin/configs/php-OpenAPIClient-oas2.yaml @@ -0,0 +1,4 @@ +generatorName: php +outputDir: samples/client/petstore/php/OpenAPIClient-php +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php diff --git a/bin/configs/php-OpenAPIClient.yaml b/bin/configs/php-OpenAPIClient.yaml new file mode 100644 index 00000000000..a930b52a0c9 --- /dev/null +++ b/bin/configs/php-OpenAPIClient.yaml @@ -0,0 +1,4 @@ +generatorName: php +outputDir: samples/openapi3/client/petstore/php/OpenAPIClient-php +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php diff --git a/bin/configs/php-lumen.yaml b/bin/configs/php-lumen.yaml new file mode 100644 index 00000000000..b8c82bc52d0 --- /dev/null +++ b/bin/configs/php-lumen.yaml @@ -0,0 +1,4 @@ +generatorName: php-lumen +outputDir: samples/server/petstore/php-lumen +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php-lumen diff --git a/bin/configs/php-silex-deprecated-OpenAPIServer.yaml b/bin/configs/php-silex-deprecated-OpenAPIServer.yaml new file mode 100644 index 00000000000..58e4b4fa111 --- /dev/null +++ b/bin/configs/php-silex-deprecated-OpenAPIServer.yaml @@ -0,0 +1,4 @@ +generatorName: php-silex-deprecated +outputDir: samples/server/petstore/php-silex/OpenAPIServer +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/php-silex diff --git a/bin/configs/php-slim-deprecated-php-slim.yaml b/bin/configs/php-slim-deprecated-php-slim.yaml new file mode 100644 index 00000000000..62342a190f8 --- /dev/null +++ b/bin/configs/php-slim-deprecated-php-slim.yaml @@ -0,0 +1,4 @@ +generatorName: php-slim-deprecated +outputDir: samples/server/petstore/php-slim +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php-slim-server diff --git a/bin/configs/php-symfony-SymfonyBundle-php.yaml b/bin/configs/php-symfony-SymfonyBundle-php.yaml new file mode 100644 index 00000000000..c77a71f14b7 --- /dev/null +++ b/bin/configs/php-symfony-SymfonyBundle-php.yaml @@ -0,0 +1,4 @@ +generatorName: php-symfony +outputDir: samples/server/petstore/php-symfony/SymfonyBundle-php +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/php-symfony diff --git a/bin/configs/php-ze-ph.yaml b/bin/configs/php-ze-ph.yaml new file mode 100644 index 00000000000..b3416dc196b --- /dev/null +++ b/bin/configs/php-ze-ph.yaml @@ -0,0 +1,4 @@ +generatorName: php-ze-ph +outputDir: samples/server/petstore/php-ze-ph +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/php-ze-ph diff --git a/bin/configs/python-aiohttp-srclayout.yaml b/bin/configs/python-aiohttp-srclayout.yaml new file mode 100644 index 00000000000..d376bbf63b8 --- /dev/null +++ b/bin/configs/python-aiohttp-srclayout.yaml @@ -0,0 +1,6 @@ +generatorName: python-aiohttp +outputDir: samples/server/petstore/python-aiohttp-srclayout +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/python-aiohttp +additionalProperties: + pythonSrcRoot: src diff --git a/bin/configs/python-aiohttp.yaml b/bin/configs/python-aiohttp.yaml new file mode 100644 index 00000000000..2a10c592ae3 --- /dev/null +++ b/bin/configs/python-aiohttp.yaml @@ -0,0 +1,4 @@ +generatorName: python-aiohttp +outputDir: samples/server/petstore/python-aiohttp +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/python-aiohttp diff --git a/bin/configs/python-asyncio.yaml b/bin/configs/python-asyncio.yaml new file mode 100644 index 00000000000..0a6adf4a2cb --- /dev/null +++ b/bin/configs/python-asyncio.yaml @@ -0,0 +1,7 @@ +generatorName: python +outputDir: samples/client/petstore/python-asyncio +library: asyncio +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python +additionalProperties: + packageName: petstore_api diff --git a/bin/configs/python-blueplanet.yaml b/bin/configs/python-blueplanet.yaml new file mode 100644 index 00000000000..eb38af7fefd --- /dev/null +++ b/bin/configs/python-blueplanet.yaml @@ -0,0 +1,4 @@ +generatorName: python-blueplanet +outputDir: samples/server/petstore/python-blueplanet +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/python-blueplanet diff --git a/bin/configs/python-experimental-oas2.yaml b/bin/configs/python-experimental-oas2.yaml new file mode 100644 index 00000000000..7328930e597 --- /dev/null +++ b/bin/configs/python-experimental-oas2.yaml @@ -0,0 +1,7 @@ +generatorName: python-experimental +outputDir: samples/client/petstore/python-experimental +inputSpec: modules/openapi-generator/src/test/resources/2_0/python-client-experimental/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python +additionalProperties: + disallowAdditionalPropertiesIfNotPresent: "true" + packageName: petstore_api diff --git a/bin/configs/python-experimental.yaml b/bin/configs/python-experimental.yaml new file mode 100644 index 00000000000..58aeadafa2c --- /dev/null +++ b/bin/configs/python-experimental.yaml @@ -0,0 +1,6 @@ +generatorName: python-experimental +outputDir: samples/openapi3/client/petstore/python-experimental +inputSpec: modules/openapi-generator/src/test/resources/3_0/python-experimental/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +templateDir: modules/openapi-generator/src/main/resources/python +additionalProperties: + packageName: petstore_api diff --git a/bin/configs/python-flask-python2.yaml b/bin/configs/python-flask-python2.yaml new file mode 100644 index 00000000000..156caf9c466 --- /dev/null +++ b/bin/configs/python-flask-python2.yaml @@ -0,0 +1,6 @@ +generatorName: python-flask +outputDir: samples/server/petstore/python-flask-python2 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/python-flask +additionalProperties: + supportPython2: true diff --git a/bin/configs/python-flask.yaml b/bin/configs/python-flask.yaml new file mode 100644 index 00000000000..c8bc1d08f5d --- /dev/null +++ b/bin/configs/python-flask.yaml @@ -0,0 +1,4 @@ +generatorName: python-flask +outputDir: samples/server/petstore/python-flask +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/python-flask diff --git a/bin/configs/python-oas2.yaml b/bin/configs/python-oas2.yaml new file mode 100644 index 00000000000..68647095f4e --- /dev/null +++ b/bin/configs/python-oas2.yaml @@ -0,0 +1,6 @@ +generatorName: python +outputDir: samples/client/petstore/python +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python +additionalProperties: + packageName: petstore_api diff --git a/bin/configs/python-tornado.yaml b/bin/configs/python-tornado.yaml new file mode 100644 index 00000000000..6cee87a07f7 --- /dev/null +++ b/bin/configs/python-tornado.yaml @@ -0,0 +1,7 @@ +generatorName: python +outputDir: samples/client/petstore/python-tornado +library: tornado +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python +additionalProperties: + packageName: petstore_api diff --git a/bin/configs/python.yaml b/bin/configs/python.yaml new file mode 100644 index 00000000000..14da7014cfc --- /dev/null +++ b/bin/configs/python.yaml @@ -0,0 +1,6 @@ +generatorName: python +outputDir: samples/openapi3/client/petstore/python +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python +additionalProperties: + packageName: petstore_api diff --git a/bin/configs/r-R.yaml b/bin/configs/r-R.yaml new file mode 100644 index 00000000000..1de2699e1d9 --- /dev/null +++ b/bin/configs/r-R.yaml @@ -0,0 +1,6 @@ +generatorName: r +outputDir: samples/client/petstore/R +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/r +additionalProperties: + packageName: petstore diff --git a/bin/configs/ruby-faraday.yaml b/bin/configs/ruby-faraday.yaml new file mode 100644 index 00000000000..b289ae977f4 --- /dev/null +++ b/bin/configs/ruby-faraday.yaml @@ -0,0 +1,10 @@ +generatorName: ruby +outputDir: samples/client/petstore/ruby-faraday +library: faraday +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/ruby-client +additionalProperties: + gemVersion: 1.0.0 + moduleName: Petstore + gemName: petstore + skipFormModel: "true" diff --git a/bin/configs/ruby.yaml b/bin/configs/ruby.yaml new file mode 100644 index 00000000000..1a7e2c24363 --- /dev/null +++ b/bin/configs/ruby.yaml @@ -0,0 +1,11 @@ +generatorName: ruby +outputDir: samples/client/petstore/ruby +library: typhoeus +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/ruby-client +additionalProperties: + gemVersion: 1.0.0 + moduleName: Petstore + gemName: petstore + skipFormModel: "true" +strictSpecBehavior: false diff --git a/bin/configs/rust-server-multipart-v3.yaml b/bin/configs/rust-server-multipart-v3.yaml new file mode 100644 index 00000000000..ca84dfb04e6 --- /dev/null +++ b/bin/configs/rust-server-multipart-v3.yaml @@ -0,0 +1,8 @@ +generatorName: rust-server +outputDir: samples/server/petstore/rust-server/output/multipart-v3 +inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/multipart-v3.yaml +templateDir: modules/openapi-generator/src/main/resources/rust-server +generateAliasAsModel: true +additionalProperties: + hideGenerationTimestamp: "true" + packageName: multipart-v3 diff --git a/bin/configs/rust-server-no-example-v3.yaml b/bin/configs/rust-server-no-example-v3.yaml new file mode 100644 index 00000000000..5694c8373e5 --- /dev/null +++ b/bin/configs/rust-server-no-example-v3.yaml @@ -0,0 +1,8 @@ +generatorName: rust-server +outputDir: samples/server/petstore/rust-server/output/no-example-v3 +inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/no-example-v3.yaml +templateDir: modules/openapi-generator/src/main/resources/rust-server +generateAliasAsModel: true +additionalProperties: + hideGenerationTimestamp: "true" + packageName: no-example-v3 diff --git a/bin/configs/rust-server-openapi-v3.yaml b/bin/configs/rust-server-openapi-v3.yaml new file mode 100644 index 00000000000..6ed1c294662 --- /dev/null +++ b/bin/configs/rust-server-openapi-v3.yaml @@ -0,0 +1,8 @@ +generatorName: rust-server +outputDir: samples/server/petstore/rust-server/output/openapi-v3 +inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/openapi-v3.yaml +templateDir: modules/openapi-generator/src/main/resources/rust-server +generateAliasAsModel: true +additionalProperties: + hideGenerationTimestamp: "true" + packageName: openapi-v3 diff --git a/bin/configs/rust-server-ops-v3.yaml b/bin/configs/rust-server-ops-v3.yaml new file mode 100644 index 00000000000..5d8f47cea46 --- /dev/null +++ b/bin/configs/rust-server-ops-v3.yaml @@ -0,0 +1,8 @@ +generatorName: rust-server +outputDir: samples/server/petstore/rust-server/output/ops-v3 +inputSpec: modules/openapi-generator/src/test/resources/3_0/rust-server/ops-v3.yaml +templateDir: modules/openapi-generator/src/main/resources/rust-server +generateAliasAsModel: true +additionalProperties: + hideGenerationTimestamp: "true" + packageName: ops-v3 diff --git a/bin/configs/rust-server-petstore-with-fake-endpoints-models-for-testing.yaml b/bin/configs/rust-server-petstore-with-fake-endpoints-models-for-testing.yaml new file mode 100644 index 00000000000..c0f47a60634 --- /dev/null +++ b/bin/configs/rust-server-petstore-with-fake-endpoints-models-for-testing.yaml @@ -0,0 +1,8 @@ +generatorName: rust-server +outputDir: samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing +inputSpec: modules/openapi-generator/src/test/resources/2_0/rust-server/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/rust-server +generateAliasAsModel: true +additionalProperties: + hideGenerationTimestamp: "true" + packageName: petstore-with-fake-endpoints-models-for-testing diff --git a/bin/configs/rust-server-test.yaml b/bin/configs/rust-server-test.yaml new file mode 100644 index 00000000000..522a66ad227 --- /dev/null +++ b/bin/configs/rust-server-test.yaml @@ -0,0 +1,8 @@ +generatorName: rust-server +outputDir: samples/server/petstore/rust-server/output/rust-server-test +inputSpec: modules/openapi-generator/src/test/resources/2_0/rust-server/rust-server-test.yaml +templateDir: modules/openapi-generator/src/main/resources/rust-server +generateAliasAsModel: true +additionalProperties: + hideGenerationTimestamp: "true" + packageName: rust-server-test diff --git a/bin/configs/scala-akka.yaml b/bin/configs/scala-akka.yaml new file mode 100644 index 00000000000..0a22803ca9e --- /dev/null +++ b/bin/configs/scala-akka.yaml @@ -0,0 +1,6 @@ +generatorName: scala-akka +outputDir: samples/client/petstore/scala-akka +inputSpec: modules/openapi-generator/src/test/resources/3_0/scala-akka/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-akka-client +additionalProperties: + artifactId: scala-akka-petstore-client diff --git a/bin/configs/scala-sttp.yaml b/bin/configs/scala-sttp.yaml new file mode 100644 index 00000000000..01e211c9a79 --- /dev/null +++ b/bin/configs/scala-sttp.yaml @@ -0,0 +1,6 @@ +generatorName: scala-sttp +outputDir: samples/client/petstore/scala-sttp +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/scala-sttp +additionalProperties: + artifactId: scala-sttp-petstore diff --git a/bin/configs/spring-boot-beanvalidation.yaml b/bin/configs/spring-boot-beanvalidation.yaml new file mode 100644 index 00000000000..6b39c85dc94 --- /dev/null +++ b/bin/configs/spring-boot-beanvalidation.yaml @@ -0,0 +1,10 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-beanvalidation +library: spring-boot +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + java8: "false" + useBeanValidation: true + artifactId: spring-boot-beanvalidation + hideGenerationTimestamp: "true" diff --git a/bin/configs/spring-boot-delegate-j8.yaml b/bin/configs/spring-boot-delegate-j8.yaml new file mode 100644 index 00000000000..a90e8b3ce1d --- /dev/null +++ b/bin/configs/spring-boot-delegate-j8.yaml @@ -0,0 +1,8 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-delegate-j8 +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + artifactId: springboot-delegate-j8 + hideGenerationTimestamp: "true" + delegatePattern: "true" diff --git a/bin/configs/spring-boot-delegate.yaml b/bin/configs/spring-boot-delegate.yaml new file mode 100644 index 00000000000..26b65d17ba7 --- /dev/null +++ b/bin/configs/spring-boot-delegate.yaml @@ -0,0 +1,9 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-delegate +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + artifactId: springboot-delegate + hideGenerationTimestamp: "true" + java8: "false" + delegatePattern: "true" diff --git a/bin/configs/spring-boot-implicitHeaders.yaml b/bin/configs/spring-boot-implicitHeaders.yaml new file mode 100644 index 00000000000..cb84abe664d --- /dev/null +++ b/bin/configs/spring-boot-implicitHeaders.yaml @@ -0,0 +1,8 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-implicitHeaders +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + artifactId: springboot-implicitHeaders + hideGenerationTimestamp: "true" + implicitHeaders: true diff --git a/bin/configs/spring-boot-reactive.yaml b/bin/configs/spring-boot-reactive.yaml new file mode 100644 index 00000000000..3d0c92edbee --- /dev/null +++ b/bin/configs/spring-boot-reactive.yaml @@ -0,0 +1,9 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-reactive +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + artifactId: springboot-reactive + reactive: "true" + hideGenerationTimestamp: "true" + delegatePattern: "true" diff --git a/bin/configs/spring-boot-useoptional.yaml b/bin/configs/spring-boot-useoptional.yaml new file mode 100644 index 00000000000..93a7924dcba --- /dev/null +++ b/bin/configs/spring-boot-useoptional.yaml @@ -0,0 +1,8 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-useoptional +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + useOptional: true + artifactId: spring-boot-useoptional + hideGenerationTimestamp: "true" diff --git a/bin/configs/spring-boot-virtualan.yaml b/bin/configs/spring-boot-virtualan.yaml new file mode 100644 index 00000000000..3d580d05c8a --- /dev/null +++ b/bin/configs/spring-boot-virtualan.yaml @@ -0,0 +1,11 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot-virtualan +library: spring-boot +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + apiPackage: org.openapitools.virtualan.api + modelPackage: org.openapitools.virtualan.model + virtualService: true + artifactId: springboot-virtualan + hideGenerationTimestamp: "true" diff --git a/bin/configs/spring-boot.yaml b/bin/configs/spring-boot.yaml new file mode 100644 index 00000000000..f752bc817e4 --- /dev/null +++ b/bin/configs/spring-boot.yaml @@ -0,0 +1,8 @@ +generatorName: spring +outputDir: samples/server/petstore/springboot +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + artifactId: springboot + snapshotVersion: "true" + hideGenerationTimestamp: "true" diff --git a/bin/configs/spring-cloud-async.yaml b/bin/configs/spring-cloud-async.yaml new file mode 100644 index 00000000000..3275e4ac03e --- /dev/null +++ b/bin/configs/spring-cloud-async.yaml @@ -0,0 +1,10 @@ +generatorName: spring +outputDir: samples/client/petstore/spring-cloud-async +library: spring-cloud +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud +additionalProperties: + async: "true" + java8: "true" + artifactId: petstore-spring-cloud + hideGenerationTimestamp: "true" diff --git a/bin/configs/spring-cloud.yaml b/bin/configs/spring-cloud.yaml new file mode 100644 index 00000000000..387c9e82a91 --- /dev/null +++ b/bin/configs/spring-cloud.yaml @@ -0,0 +1,9 @@ +generatorName: spring +outputDir: samples/client/petstore/spring-cloud +library: spring-cloud +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud +additionalProperties: + artifactId: petstore-spring-cloud + responseWrapper: HystrixCommand + hideGenerationTimestamp: "true" diff --git a/bin/configs/spring-mvc-j8-async.yaml b/bin/configs/spring-mvc-j8-async.yaml new file mode 100644 index 00000000000..cd03b0e427d --- /dev/null +++ b/bin/configs/spring-mvc-j8-async.yaml @@ -0,0 +1,11 @@ +generatorName: spring +outputDir: samples/server/petstore/spring-mvc-j8-async +library: spring-mvc +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + async: "true" + java8: true + artifactId: spring-mvc-server-j8-async + hideGenerationTimestamp: "true" + serverPort: "8002" diff --git a/bin/configs/spring-mvc-j8-localdatetime.yaml b/bin/configs/spring-mvc-j8-localdatetime.yaml new file mode 100644 index 00000000000..f8d6126c9f3 --- /dev/null +++ b/bin/configs/spring-mvc-j8-localdatetime.yaml @@ -0,0 +1,11 @@ +generatorName: spring +outputDir: samples/server/petstore/spring-mvc-j8-localdatetime +library: spring-mvc +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + booleanGetterPrefix: get + artifactId: spring-mvc-j8-localdatetime + hideGenerationTimestamp: "true" + serverPort: "8002" + dateLibrary: java8-localdatetime diff --git a/bin/configs/spring-mvc.yaml b/bin/configs/spring-mvc.yaml new file mode 100644 index 00000000000..11b49a4ecbd --- /dev/null +++ b/bin/configs/spring-mvc.yaml @@ -0,0 +1,11 @@ +generatorName: spring +outputDir: samples/server/petstore/spring-mvc +library: spring-mvc +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/JavaSpring +additionalProperties: + java8: "false" + booleanGetterPrefix: get + artifactId: spring-mvc-server + hideGenerationTimestamp: "true" + serverPort: "8002" diff --git a/bin/configs/spring-stubs.yaml b/bin/configs/spring-stubs.yaml new file mode 100644 index 00000000000..335fdcb4a7a --- /dev/null +++ b/bin/configs/spring-stubs.yaml @@ -0,0 +1,8 @@ +generatorName: spring +outputDir: samples/client/petstore/spring-stubs +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + artifactId: spring-stubs + interfaceOnly: "true" + singleContentTypes: "true" + hideGenerationTimestamp: "true" diff --git a/bin/configs/typescript-angular-default-v6.yaml b/bin/configs/typescript-angular-default-v6.yaml new file mode 100644 index 00000000000..664aa59a3c7 --- /dev/null +++ b/bin/configs/typescript-angular-default-v6.yaml @@ -0,0 +1,6 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 6.0.0 + providedInRoot: "false" diff --git a/bin/configs/typescript-angular-single-request-parameter-v8.yaml b/bin/configs/typescript-angular-single-request-parameter-v8.yaml new file mode 100644 index 00000000000..c9978cc4aee --- /dev/null +++ b/bin/configs/typescript-angular-single-request-parameter-v8.yaml @@ -0,0 +1,10 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + ngVersion: 8.0.0 + npmName: '@openapitools/typescript-angular-petstore' + npmRepository: https://skimdb.npmjs.com/registry + useSingleRequestParameter: "true" + snapshot: false diff --git a/bin/configs/typescript-angular-v6-provided-in-root-with-npm.yaml b/bin/configs/typescript-angular-v6-provided-in-root-with-npm.yaml new file mode 100644 index 00000000000..8bb13b8eac7 --- /dev/null +++ b/bin/configs/typescript-angular-v6-provided-in-root-with-npm.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 6.0.0 + npmVersion: 1.0.0 + npmName: '@openapitools/angular2-typescript-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-angular-v6-provided-in-root.yaml b/bin/configs/typescript-angular-v6-provided-in-root.yaml new file mode 100644 index 00000000000..36680054672 --- /dev/null +++ b/bin/configs/typescript-angular-v6-provided-in-root.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 6.0.0 diff --git a/bin/configs/typescript-angular-v7-not-provided-in-root-with-npm.yaml b/bin/configs/typescript-angular-v7-not-provided-in-root-with-npm.yaml new file mode 100644 index 00000000000..ac73ad65f91 --- /dev/null +++ b/bin/configs/typescript-angular-v7-not-provided-in-root-with-npm.yaml @@ -0,0 +1,11 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 7.0.0 + npmVersion: 1.0.0 + providedInRoot: "false" + stringEnums: "true" + npmName: '@openapitools/typescript-angular-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false \ No newline at end of file diff --git a/bin/configs/typescript-angular-v7-not-provided-in-root.yaml b/bin/configs/typescript-angular-v7-not-provided-in-root.yaml new file mode 100644 index 00000000000..83d16bcefb1 --- /dev/null +++ b/bin/configs/typescript-angular-v7-not-provided-in-root.yaml @@ -0,0 +1,6 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 7.0.0 + providedInRoot: "false" \ No newline at end of file diff --git a/bin/configs/typescript-angular-v7-provided-in-root-with-npm.yaml b/bin/configs/typescript-angular-v7-provided-in-root-with-npm.yaml new file mode 100644 index 00000000000..6ae7f19ad42 --- /dev/null +++ b/bin/configs/typescript-angular-v7-provided-in-root-with-npm.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 7.0.0 + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-angular-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-angular-v7-provided-in-root.yaml b/bin/configs/typescript-angular-v7-provided-in-root.yaml new file mode 100644 index 00000000000..5a22f83d84a --- /dev/null +++ b/bin/configs/typescript-angular-v7-provided-in-root.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + ngVersion: 7.0.0 diff --git a/bin/configs/typescript-angular-with-npm-v6.yaml b/bin/configs/typescript-angular-with-npm-v6.yaml new file mode 100644 index 00000000000..c8bcfc48892 --- /dev/null +++ b/bin/configs/typescript-angular-with-npm-v6.yaml @@ -0,0 +1,10 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + ngVersion: 6.0.0 + providedInRoot: "false" + npmName: '@openapitools/typescript-angular-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-angular-with-npm-v8.yaml b/bin/configs/typescript-angular-with-npm-v8.yaml new file mode 100644 index 00000000000..48849517fcc --- /dev/null +++ b/bin/configs/typescript-angular-with-npm-v8.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + ngVersion: 8.0.0 + npmName: '@openapitools/typescript-angular-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-angular-with-prefixed-module-name-v8.yaml b/bin/configs/typescript-angular-with-prefixed-module-name-v8.yaml new file mode 100644 index 00000000000..b7cf4fd45e8 --- /dev/null +++ b/bin/configs/typescript-angular-with-prefixed-module-name-v8.yaml @@ -0,0 +1,10 @@ +generatorName: typescript-angular +outputDir: samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + ngVersion: 8.0.0 + npmName: '@openapitools/typescript-angular-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false + apiModulePrefix: PetStore diff --git a/bin/configs/typescript-angularjs.yaml b/bin/configs/typescript-angularjs.yaml new file mode 100644 index 00000000000..afaf8f53e86 --- /dev/null +++ b/bin/configs/typescript-angularjs.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-angularjs +outputDir: samples/client/petstore/typescript-angularjs +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-aurelia-default.yaml b/bin/configs/typescript-aurelia-default.yaml new file mode 100644 index 00000000000..c0b70a6ad9a --- /dev/null +++ b/bin/configs/typescript-aurelia-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-aurelia +outputDir: samples/client/petstore/typescript-aurelia/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-axios-composed-schemas.yaml b/bin/configs/typescript-axios-composed-schemas.yaml new file mode 100644 index 00000000000..c9bea94bbad --- /dev/null +++ b/bin/configs/typescript-axios-composed-schemas.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/composed-schemas +inputSpec: modules/openapi-generator/src/test/resources/3_0/composed-schemas.yaml diff --git a/bin/configs/typescript-axios-default.yaml b/bin/configs/typescript-axios-default.yaml new file mode 100644 index 00000000000..5b3c9488a88 --- /dev/null +++ b/bin/configs/typescript-axios-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-axios-es6-target.yaml b/bin/configs/typescript-axios-es6-target.yaml new file mode 100644 index 00000000000..79b61fdaff0 --- /dev/null +++ b/bin/configs/typescript-axios-es6-target.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/es6-target +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + supportsES6: true + npmName: '@openapitools/typescript-axios-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-axios-with-complex-headers.yaml b/bin/configs/typescript-axios-with-complex-headers.yaml new file mode 100644 index 00000000000..c88e7a15d82 --- /dev/null +++ b/bin/configs/typescript-axios-with-complex-headers.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/with-complex-headers +inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml diff --git a/bin/configs/typescript-axios-with-interfaces.yaml b/bin/configs/typescript-axios-with-interfaces.yaml new file mode 100644 index 00000000000..11337d00353 --- /dev/null +++ b/bin/configs/typescript-axios-with-interfaces.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/with-interfaces +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + withInterfaces: "true" diff --git a/bin/configs/typescript-axios-with-npm-version-and-separate-models-and-api.yaml b/bin/configs/typescript-axios-with-npm-version-and-separate-models-and-api.yaml new file mode 100644 index 00000000000..48186cc0629 --- /dev/null +++ b/bin/configs/typescript-axios-with-npm-version-and-separate-models-and-api.yaml @@ -0,0 +1,11 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + apiPackage: api.another.level + modelPackage: model.some.levels.deep + withSeparateModelsAndApi: true + npmName: '@openapitools/typescript-axios-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-axios-with-npm-version.yaml b/bin/configs/typescript-axios-with-npm-version.yaml new file mode 100644 index 00000000000..8602cac04dd --- /dev/null +++ b/bin/configs/typescript-axios-with-npm-version.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/with-npm-version +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-axios-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-axios-with-single-request-parameters.yaml b/bin/configs/typescript-axios-with-single-request-parameters.yaml new file mode 100644 index 00000000000..9239c632938 --- /dev/null +++ b/bin/configs/typescript-axios-with-single-request-parameters.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-axios +outputDir: samples/client/petstore/typescript-axios/builds/with-single-request-parameters +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-operations-without-required-params.yaml +additionalProperties: + useSingleRequestParameter: "true" diff --git a/bin/configs/typescript-fetch-default.yaml b/bin/configs/typescript-fetch-default.yaml new file mode 100644 index 00000000000..85301d86bb9 --- /dev/null +++ b/bin/configs/typescript-fetch-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-fetch-es6-target.yaml b/bin/configs/typescript-fetch-es6-target.yaml new file mode 100644 index 00000000000..aea1ad31848 --- /dev/null +++ b/bin/configs/typescript-fetch-es6-target.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/es6-target +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + supportsES6: true + npmName: '@openapitools/typescript-fetch-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-fetch-multiple-parameters.yaml b/bin/configs/typescript-fetch-multiple-parameters.yaml new file mode 100644 index 00000000000..0bc52605c27 --- /dev/null +++ b/bin/configs/typescript-fetch-multiple-parameters.yaml @@ -0,0 +1,6 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/multiple-parameters +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + useSingleRequestParameter: false + snapshot: false diff --git a/bin/configs/typescript-fetch-prefix-parameter-interfaces.yaml b/bin/configs/typescript-fetch-prefix-parameter-interfaces.yaml new file mode 100644 index 00000000000..27334256aad --- /dev/null +++ b/bin/configs/typescript-fetch-prefix-parameter-interfaces.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-fetch-petstore' + npmRepository: https://skimdb.npmjs.com/registry + prefixParameterInterfaces: true + snapshot: false diff --git a/bin/configs/typescript-fetch-typescript-three-plus.yaml b/bin/configs/typescript-fetch-typescript-three-plus.yaml new file mode 100644 index 00000000000..a18d0d8adbc --- /dev/null +++ b/bin/configs/typescript-fetch-typescript-three-plus.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/typescript-three-plus +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-fetch-petstore' + npmRepository: https://skimdb.npmjs.com/registry + typescriptThreePlus: true + snapshot: false diff --git a/bin/configs/typescript-fetch-with-interfaces.yaml b/bin/configs/typescript-fetch-with-interfaces.yaml new file mode 100644 index 00000000000..e0e84f57d12 --- /dev/null +++ b/bin/configs/typescript-fetch-with-interfaces.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/with-interfaces +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + withInterfaces: "true" diff --git a/bin/configs/typescript-fetch-with-npm-version.yaml b/bin/configs/typescript-fetch-with-npm-version.yaml new file mode 100644 index 00000000000..35e2c2a2d3c --- /dev/null +++ b/bin/configs/typescript-fetch-with-npm-version.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-fetch +outputDir: samples/client/petstore/typescript-fetch/builds/with-npm-version +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-fetch-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-inversify.yaml b/bin/configs/typescript-inversify.yaml new file mode 100644 index 00000000000..de2fe10c96b --- /dev/null +++ b/bin/configs/typescript-inversify.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-inversify +outputDir: samples/client/petstore/typescript-inversify +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-jquery-default.yaml b/bin/configs/typescript-jquery-default.yaml new file mode 100644 index 00000000000..77758d8e45a --- /dev/null +++ b/bin/configs/typescript-jquery-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-jquery +outputDir: samples/client/petstore/typescript-jquery/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-jquery-npm.yaml b/bin/configs/typescript-jquery-npm.yaml new file mode 100644 index 00000000000..a0e53ec13ed --- /dev/null +++ b/bin/configs/typescript-jquery-npm.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-jquery +outputDir: samples/client/petstore/typescript-jquery/npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 0.0.1 + npmName: '@openapitools/jquery-typescript-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-node-default.yaml b/bin/configs/typescript-node-default.yaml new file mode 100644 index 00000000000..0b7bcafa077 --- /dev/null +++ b/bin/configs/typescript-node-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-node +outputDir: samples/client/petstore/typescript-node/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-node-npm.yaml b/bin/configs/typescript-node-npm.yaml new file mode 100644 index 00000000000..06dafcad370 --- /dev/null +++ b/bin/configs/typescript-node-npm.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-node +outputDir: samples/client/petstore/typescript-node/npm +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 0.0.1 + npmName: '@openapitools/node-typescript-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-redux-query-with-npm-version.yaml b/bin/configs/typescript-redux-query-with-npm-version.yaml new file mode 100644 index 00000000000..1db6557857d --- /dev/null +++ b/bin/configs/typescript-redux-query-with-npm-version.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-redux-query +outputDir: samples/client/petstore/typescript-redux-query/builds/with-npm-version +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +templateDir: modules/openapi-generator/src/main/resources/typescript-redux-query +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-redux-query-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-rxjs-default.yaml b/bin/configs/typescript-rxjs-default.yaml new file mode 100644 index 00000000000..e2006a1ab3e --- /dev/null +++ b/bin/configs/typescript-rxjs-default.yaml @@ -0,0 +1,3 @@ +generatorName: typescript-rxjs +outputDir: samples/client/petstore/typescript-rxjs/builds/default +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml diff --git a/bin/configs/typescript-rxjs-es6-target.yaml b/bin/configs/typescript-rxjs-es6-target.yaml new file mode 100644 index 00000000000..cb40131cee4 --- /dev/null +++ b/bin/configs/typescript-rxjs-es6-target.yaml @@ -0,0 +1,9 @@ +generatorName: typescript-rxjs +outputDir: samples/client/petstore/typescript-rxjs/builds/es6-target +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + supportsES6: true + npmName: '@openapitools/typescript-rxjs-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/configs/typescript-rxjs-with-interfaces.yaml b/bin/configs/typescript-rxjs-with-interfaces.yaml new file mode 100644 index 00000000000..a5ef676abc7 --- /dev/null +++ b/bin/configs/typescript-rxjs-with-interfaces.yaml @@ -0,0 +1,5 @@ +generatorName: typescript-rxjs +outputDir: samples/client/petstore/typescript-rxjs/builds/with-interfaces +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + withInterfaces: "true" diff --git a/bin/configs/typescript-rxjs-with-npm-version.yaml b/bin/configs/typescript-rxjs-with-npm-version.yaml new file mode 100644 index 00000000000..4d2fd37f8f6 --- /dev/null +++ b/bin/configs/typescript-rxjs-with-npm-version.yaml @@ -0,0 +1,8 @@ +generatorName: typescript-rxjs +outputDir: samples/client/petstore/typescript-rxjs/builds/with-npm-version +inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore.yaml +additionalProperties: + npmVersion: 1.0.0 + npmName: '@openapitools/typescript-rxjs-petstore' + npmRepository: https://skimdb.npmjs.com/registry + snapshot: false diff --git a/bin/cpp-pistache-server-petstore.sh b/bin/cpp-pistache-server-petstore.sh deleted file mode 100755 index 7f2c734b689..00000000000 --- a/bin/cpp-pistache-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g cpp-pistache-server -t modules/openapi-generator/src/main/resources/cpp-pistache-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml --additional-properties addExternalLibs=true --additional-properties useStructModel=false -o samples/server/petstore/cpp-pistache $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/cpp-qt5-petstore.json b/bin/cpp-qt5-petstore.json deleted file mode 100644 index b27f55f17f8..00000000000 --- a/bin/cpp-qt5-petstore.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "inputSpec": "modules/openapi-generator/src/test/resources/2_0/petstore.yaml", - "outputDir": "samples/client/petstore/cpp-qt5", - "additionalProperties": { - "cppNamespace": "test_namespace", - "modelNamePrefix": "PFX" - } -} diff --git a/bin/cpp-qt5-petstore.sh b/bin/cpp-qt5-petstore.sh deleted file mode 100755 index 68fb506a63b..00000000000 --- a/bin/cpp-qt5-petstore.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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" -args="generate -t modules/openapi-generator/src/main/resources/cpp-qt5-client \ - -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml \ - -g cpp-qt5-client \ - -c bin/cpp-qt5-petstore.json \ - $@" - -java $JAVA_OPTS -jar $executable $args diff --git a/bin/cpp-qt5-qhttpengine-server-petstore.sh b/bin/cpp-qt5-qhttpengine-server-petstore.sh deleted file mode 100755 index 9425c273cea..00000000000 --- a/bin/cpp-qt5-qhttpengine-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/cpp-qt5-qhttpengine-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g cpp-qt5-qhttpengine-server -o samples/server/petstore/cpp-qt5-qhttpengine-server $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/cpp-restbed-petstore-server.sh b/bin/cpp-restbed-petstore-server.sh deleted file mode 100755 index 5a61f5e8c88..00000000000 --- a/bin/cpp-restbed-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g cpp-restbed-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o samples/server/petstore/cpp-restbed $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/cpp-restsdk-petstore.sh b/bin/cpp-restsdk-petstore.sh deleted file mode 100755 index ad9090d0b5c..00000000000 --- a/bin/cpp-restsdk-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/cpp-rest-sdk-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g cpp-restsdk -o samples/client/petstore/cpp-restsdk/client $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/cpp-tizen-petstore.sh b/bin/cpp-tizen-petstore.sh deleted file mode 100755 index 4a280974fa6..00000000000 --- a/bin/cpp-tizen-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/cpp-tizen-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g cpp-tizen -o samples/client/petstore/cpp-tizen $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/cpp-ue4-petstore.sh b/bin/cpp-ue4-petstore.sh deleted file mode 100755 index 9eeab274c87..00000000000 --- a/bin/cpp-ue4-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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/openapi-generator/src/main/resources/cpp-ue4 -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g cpp-ue4 -o samples/client/petstore/cpp-ue4" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/csharp-dotnet2-petstore.sh b/bin/csharp-dotnet2-petstore.sh deleted file mode 100755 index c953170bfaa..00000000000 --- a/bin/csharp-dotnet2-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/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 diff --git a/bin/csharp-netcore-petstore-all.sh b/bin/csharp-netcore-petstore-all.sh deleted file mode 100755 index 6db67b5e0e1..00000000000 --- a/bin/csharp-netcore-petstore-all.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# C# Petstore API client .NET Standard 2.0 -./bin/csharp-netcore-petstore.sh - -# C# Petstore API client .NET Core 2.0 -./bin/csharp-netcore-petstore-netcore.sh diff --git a/bin/csharp-netcore-petstore-netcore.sh b/bin/csharp-netcore-petstore-netcore.sh deleted file mode 100755 index 8f2e4824060..00000000000 --- a/bin/csharp-netcore-petstore-netcore.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/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" -outdir="samples/client/petstore/csharp-netcore/OpenAPIClientCore" - -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 -t modules/openapi-generator/src/main/resources/csharp-netcore/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o ${outdir} --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true,targetFramework=netcoreapp2.0 $@" - -java $JAVA_OPTS -jar $executable $ags - -# restore csproj file -echo "restore csproject file: CI/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj" -cp ./CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj ./samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools.Test/ - diff --git a/bin/csharp-netcore-petstore.sh b/bin/csharp-netcore-petstore.sh deleted file mode 100755 index a525806f4d8..00000000000 --- a/bin/csharp-netcore-petstore.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/csharp-netcore/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples/client/petstore/csharp-netcore/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true $@" - -java $JAVA_OPTS -jar $executable $ags - -# restore csproj file -echo "restore csproject file: CI/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj" -cp ./CI/samples.ci/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj ./samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools.Test/ - diff --git a/bin/csharp-petstore-all.sh b/bin/csharp-petstore-all.sh deleted file mode 100755 index d57231a9f6a..00000000000 --- a/bin/csharp-petstore-all.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# C# Petstore API client (.NET 3.5) -./bin/csharp-petstore.sh - -# C# Petstore API client with PropertyChanged -./bin/csharp-property-changed-petstore.sh - -# C# Petstore API client (v5.0 for .net standarnd 1.3+) -./bin/csharp-petstore-net-standard.sh - -# C# Petstore API client (.NET 4.0) -./bin/csharp-petstore-net-40.sh - -# C# Petstore API client (.NET 3.5) -./bin/csharp-petstore-net-35.sh - diff --git a/bin/csharp-petstore-net-35.json b/bin/csharp-petstore-net-35.json deleted file mode 100644 index 8d3ade9cd8a..00000000000 --- a/bin/csharp-petstore-net-35.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "targetFramework": "v3.5" -} diff --git a/bin/csharp-petstore-net-35.sh b/bin/csharp-petstore-net-35.sh deleted file mode 100755 index 0096db9dbd9..00000000000 --- a/bin/csharp-petstore-net-35.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenAPIClientNet35 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-35.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/csharp-petstore-net-40.json b/bin/csharp-petstore-net-40.json deleted file mode 100644 index 884f7ea9bc9..00000000000 --- a/bin/csharp-petstore-net-40.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "targetFramework": "v4.0" -} diff --git a/bin/csharp-petstore-net-40.sh b/bin/csharp-petstore-net-40.sh deleted file mode 100755 index a816c28d0b6..00000000000 --- a/bin/csharp-petstore-net-40.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenAPIClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-40.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/csharp-petstore-net-standard.json b/bin/csharp-petstore-net-standard.json deleted file mode 100644 index 874e5334bfa..00000000000 --- a/bin/csharp-petstore-net-standard.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "targetFramework": "v5.0" -} diff --git a/bin/csharp-petstore-net-standard.sh b/bin/csharp-petstore-net-standard.sh deleted file mode 100755 index a7902e38c73..00000000000 --- a/bin/csharp-petstore-net-standard.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenAPIClientNetStandard --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-standard.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/csharp-petstore-netcore-project.sh b/bin/csharp-petstore-netcore-project.sh deleted file mode 100755 index 5ced67903ac..00000000000 --- a/bin/csharp-petstore-netcore-project.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenAPIClientNetCoreProject --additional-properties packageGuid={67035b31-f8e5-41a4-9673-954035084f7d},netCoreProjectFile=true -c ./bin/csharp-petstore-net-standard.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/csharp-petstore.sh b/bin/csharp-petstore.sh deleted file mode 100755 index cbfeb6fab0d..00000000000 --- a/bin/csharp-petstore.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} $@" - -java $JAVA_OPTS -jar $executable $ags - -# restore csproj file -echo "restore csproject file: CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj" -cp ./CI/samples.ci/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Org.OpenAPITools.Test.csproj ./samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/ - diff --git a/bin/csharp-property-changed-petstore.sh b/bin/csharp-property-changed-petstore.sh deleted file mode 100755 index 6ac09c9406c..00000000000 --- a/bin/csharp-property-changed-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged --additional-properties generatePropertyChanged=true --additional-properties optionalEmitDefaultValues=true --additional-properties packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5} $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/cwiki-petstore.sh b/bin/cwiki-petstore.sh deleted file mode 100755 index 8be67410283..00000000000 --- a/bin/cwiki-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/confluenceWikiDocs -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g cwiki -o samples/documentation/cwiki $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/dart-dio-petstore.sh b/bin/dart-dio-petstore.sh deleted file mode 100755 index 724c0f9b087..00000000000 --- a/bin/dart-dio-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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" - -# Generate non-browserClient -ags="generate -t modules/openapi-generator/src/main/resources/dart-dio -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart-dio -o samples/client/petstore/dart-dio/ --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/dart-jaguar-petstore.sh b/bin/dart-jaguar-petstore.sh deleted file mode 100755 index c5348cd34be..00000000000 --- a/bin/dart-jaguar-petstore.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" - -# Generate client -ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/openapi --additional-properties hideGenerationTimestamp=true,pubName=openapi" -java $JAVA_OPTS -jar $executable $ags - -# Generate non-browserClient and put it to the flutter sample app -ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/flutter_petstore/openapi --additional-properties hideGenerationTimestamp=true,pubName=openapi" -java $JAVA_OPTS -jar $executable $ags - -# Generate proto and put it to the flutter sample app -ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/flutter_proto_petstore/openapi --additional-properties serialization=proto,hideGenerationTimestamp=true,pubName=openapi" -java $JAVA_OPTS -jar $executable $ags - -# Generate proto and put it to the sample -ags="$@ generate -t modules/openapi-generator/src/main/resources/dart-jaguar -i modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml -g dart-jaguar -o samples/client/petstore/dart-jaguar/openapi_proto --additional-properties serialization=proto,hideGenerationTimestamp=true,pubName=openapi" -java $JAVA_OPTS -jar $executable $ags - -# There is a proposal to allow importing different libraries depending on the environment: -# https://github.com/munificent/dep-interface-libraries -# When this is implemented there will only be one library. - -# The current petstore test will then work for both: the browser library and the vm library. diff --git a/bin/dart-petstore.sh b/bin/dart-petstore.sh deleted file mode 100755 index 74b52e234df..00000000000 --- a/bin/dart-petstore.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/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" - -# Generate non-browserClient -ags="generate -t modules/openapi-generator/src/main/resources/dart -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart -o samples/client/petstore/dart/openapi --additional-properties hideGenerationTimestamp=true,browserClient=false,supportDart2=false $@" - -# then options to generate the library for vm would be: -#ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart -o samples/client/petstore/dart/openapi_vm --additional-properties browserClient=false,pubName=openapi_vm --additional-properties supportDart2=false $@" -java $JAVA_OPTS -jar $executable $ags - -# Generate browserClient -ags="generate -t modules/openapi-generator/src/main/resources/dart -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart -o samples/client/petstore/dart/openapi-browser-client --additional-properties hideGenerationTimestamp=true,browserClient=true,supportDart2=false $@" -java $JAVA_OPTS -jar $executable $ags - -# TODO: Remove this as it duplicate output from the first example in this file. -# Generate non-browserClient and put it to the flutter sample app -ags="generate -t modules/openapi-generator/src/main/resources/dart -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart -o samples/client/petstore/dart/flutter_petstore/openapi --additional-properties hideGenerationTimestamp=true,browserClient=false,supportDart2=false $@" -java $JAVA_OPTS -jar $executable $ags - -# There is a proposal to allow importing different libraries depending on the environment: -# https://github.com/munificent/dep-interface-libraries -# When this is implemented there will only be one library. - -# The current petstore test will then work for both: the browser library and the vm library. diff --git a/bin/dart2-petstore.sh b/bin/dart2-petstore.sh deleted file mode 100755 index e309802ed3a..00000000000 --- a/bin/dart2-petstore.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/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" - -# Generate client -ags="generate -t modules/openapi-generator/src/main/resources/dart2 -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g dart -o samples/client/petstore/dart2/petstore_client_lib --additional-properties hideGenerationTimestamp=true $@" -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/dynamic-html.sh b/bin/dynamic-html.sh deleted file mode 100755 index 6dfaa10cc4a..00000000000 --- a/bin/dynamic-html.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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.yaml -g dynamic-html -o samples/documentation/dynamic-html $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/eiffel-petstore.sh b/bin/eiffel-petstore.sh deleted file mode 100755 index 50e73639e9d..00000000000 --- a/bin/eiffel-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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" -args="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g eiffel -o samples/client/petstore/eiffel/ $@" - -java $JAVA_OPTS -jar $executable $args diff --git a/bin/elixir-petstore.sh b/bin/elixir-petstore.sh deleted file mode 100755 index c826ea8519f..00000000000 --- a/bin/elixir-petstore.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 - -# remove existing lib and model file -echo "removing existing lib, model files" -rm -Rf "samples/client/petstore/elixir/lib/openapi_petstore/model/" -rm -Rf "samples/client/petstore/elixir/lib/openapi_petstore/api/" - -# 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/elixir -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g elixir -o samples/client/petstore/elixir/ --additional-properties invokerPackage=OpenapiPetstore $@" - -java $JAVA_OPTS -jar $executable $args diff --git a/bin/erlang-petstore-client.sh b/bin/erlang-petstore-client.sh deleted file mode 100755 index 5ff65bf3928..00000000000 --- a/bin/erlang-petstore-client.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/erlang-client --additional-properties packageName=petstore -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g erlang-client -o samples/client/petstore/erlang-client $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/erlang-petstore-proper.sh b/bin/erlang-petstore-proper.sh deleted file mode 100755 index 2db7ed0e0e3..00000000000 --- a/bin/erlang-petstore-proper.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/erlang-proper --additional-properties packageName=petstore -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g erlang-proper -o samples/client/petstore/erlang-proper $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/erlang-petstore-server.sh b/bin/erlang-petstore-server.sh deleted file mode 100755 index de587f37b97..00000000000 --- a/bin/erlang-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/erlang-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g erlang-server -o samples/server/petstore/erlang-server $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/flash-petstore.json b/bin/flash-petstore.json deleted file mode 100644 index 8b52733fcf4..00000000000 --- a/bin/flash-petstore.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "packageName": "org.openapitools", - "invokerPackage": "org.openapitools" -} diff --git a/bin/flash-petstore.sh b/bin/flash-petstore.sh deleted file mode 100755 index bee99187769..00000000000 --- a/bin/flash-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/flash -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g flash -o samples/client/petstore/flash -c bin/flash-petstore.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/fsharp-functions-server-petstore.sh b/bin/fsharp-functions-server-petstore.sh deleted file mode 100755 index 23cce9c0e71..00000000000 --- a/bin/fsharp-functions-server-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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/openapi-generator/src/test/resources/2_0/petstore.yaml -g fsharp-functions -o samples/server/petstore/fsharp-functions" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/fsharp-giraffe-server-petstore.sh b/bin/fsharp-giraffe-server-petstore.sh deleted file mode 100755 index 659280983f9..00000000000 --- a/bin/fsharp-giraffe-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -t modules/openapi-generator/src/main/resources/fsharp-giraffe-server -g fsharp-giraffe-server -o samples/server/petstore/fsharp-giraffe $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/generate-samples.sh b/bin/generate-samples.sh new file mode 100755 index 00000000000..5205b22c745 --- /dev/null +++ b/bin/generate-samples.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +# this bash script generates all samples. +# it ensures that all changes are committed into the 'samples/' folder +# shellcheck disable=SC2155 +declare cwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +declare root="$(cd "$cwd" && cd ../ && pwd)" +declare executable="${root}/modules/openapi-generator-cli/target/openapi-generator-cli.jar" + +echo "# START SCRIPT: $0" +echo "This script generates all configs under bin/configs by default." +echo "You may generate a targeted script or set of scripts using glob patterns." +echo "For example: $0 bin/configs/java-*" +echo "" +echo "Please press CTRL+C to stop or the script will continue in 5 seconds." + +sleep 5 +if [ ! -f "$executable" ]; then + (cd "${root}" && mvn -B --no-snapshot-updates clean package -DskipTests=true -Dmaven.javadoc.skip=true -Djacoco.skip=true) +fi + +export JAVA_OPTS="${JAVA_OPTS} -server -Duser.timezone=UTC" + +configs=${@:-"${root}"/bin/configs/*.yaml} + +# shellcheck disable=SC2086 +java $JAVA_OPTS -jar "$executable" batch --includes-base-dir "${root}" --fail-fast -- $configs diff --git a/bin/go-experimental-petstore.sh b/bin/go-experimental-petstore.sh deleted file mode 100755 index ea7d839795f..00000000000 --- a/bin/go-experimental-petstore.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml" -GENERATOR="go-experimental" -STUB_DIR="samples/client/petstore/go-experimental/go-petstore" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/$GENERATOR -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/go-gin-petstore-server.sh b/bin/go-gin-petstore-server.sh deleted file mode 100755 index bbd7cda3164..00000000000 --- a/bin/go-gin-petstore-server.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore.yaml" -GENERATOR="go-gin-server" -STUB_DIR="samples/server/petstore/go-gin-api-server" - -echo "Removing auto-generated files and folders under $STUB_DIR" -rm -rf $STUB_DIR/go - -# 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/go-gin-server -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstoreserver --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/go-petstore-server.sh b/bin/go-petstore-server.sh deleted file mode 100755 index d58365c5dbe..00000000000 --- a/bin/go-petstore-server.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore.yaml" -GENERATOR="go-server" -STUB_DIR="samples/server/petstore/go-api-server" - -echo "Removing auto-generated files and folders under $STUB_DIR" -rm -rf $STUB_DIR/go - -# 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/go-server -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstoreserver,hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/go-petstore-withxml.sh b/bin/go-petstore-withxml.sh deleted file mode 100755 index 4c575497254..00000000000 --- a/bin/go-petstore-withxml.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml" -GENERATOR="go" -STUB_DIR="samples/client/petstore/go/go-petstore-withXml" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/go -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstore,withXml=true,withGoCodegenComment=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/go-petstore.sh b/bin/go-petstore.sh deleted file mode 100755 index 7dc5fe4907b..00000000000 --- a/bin/go-petstore.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml" -GENERATOR="go" -STUB_DIR="samples/client/petstore/go/go-petstore" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/go -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/graphql-nodejs-express-server.sh b/bin/graphql-nodejs-express-server.sh deleted file mode 100755 index 69ee4a3bf55..00000000000 --- a/bin/graphql-nodejs-express-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/graphql-nodejs-express-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g graphql-nodejs-express-server -o samples/server/petstore/graphql-nodejs-express-server --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/graphql-schema-petstore.sh b/bin/graphql-schema-petstore.sh deleted file mode 100755 index b99d3bba877..00000000000 --- a/bin/graphql-schema-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/graphql-schema -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g graphql-schema -o samples/config/petstore/graphql-schema --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/groovy-petstore.sh b/bin/groovy-petstore.sh deleted file mode 100755 index e5e5f688eb3..00000000000 --- a/bin/groovy-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Groovy/ -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g groovy -o samples/client/petstore/groovy --additional-properties hideGenerationTimestamp=true $@" -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/haskell-http-client-petstore.sh b/bin/haskell-http-client-petstore.sh deleted file mode 100755 index 4cd7f86083a..00000000000 --- a/bin/haskell-http-client-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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" - -args="generate -t modules/openapi-generator/src/main/resources/haskell-http-client -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g haskell-http-client -o samples/client/petstore/haskell-http-client $@" - -echo "java ${JAVA_OPTS} -jar ${executable} ${args}" -java $JAVA_OPTS -jar $executable $args diff --git a/bin/haskell-servant-petstore.sh b/bin/haskell-servant-petstore.sh deleted file mode 100755 index 61d272a5805..00000000000 --- a/bin/haskell-servant-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/haskell-servant -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g haskell -o samples/server/petstore/haskell-servant $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/html-markdown.sh b/bin/html-markdown.sh deleted file mode 100755 index 09d4b920600..00000000000 --- a/bin/html-markdown.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/markdown.yaml -g html -o samples/documentation/html.md $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/html-petstore.sh b/bin/html-petstore.sh deleted file mode 100755 index 1b32f50726c..00000000000 --- a/bin/html-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/htmlDocs -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g html -o samples/documentation/html $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/html2-petstore.sh b/bin/html2-petstore.sh deleted file mode 100755 index 6801db85f49..00000000000 --- a/bin/html2-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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.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 diff --git a/bin/java-inflector-petstore-server.sh b/bin/java-inflector-petstore-server.sh deleted file mode 100755 index b37e444a923..00000000000 --- a/bin/java-inflector-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaInflector -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java-inflector -o samples/server/petstore/java-inflector --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-jaxrs-petstore-server-all.sh b/bin/java-jaxrs-petstore-server-all.sh deleted file mode 100755 index eb6a7bacbdf..00000000000 --- a/bin/java-jaxrs-petstore-server-all.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -# script to run all generators extending AbstractJavaJAXRSServerCodegen - -./bin/jaxrs-petstore-server-datelib-j8.sh -./bin/jaxrs-cxf-cdi-petstore-server.sh -./bin/jaxrs-cxf-petstore-server-annotated-base-path.sh -./bin/jaxrs-cxf-petstore-server-non-spring-application.sh -./bin/jaxrs-cxf-petstore-server.sh -./bin/jaxrs-jersey1-petstore-server.sh -./bin/jaxrs-jersey1-usetags-petstore-server.sh -./bin/jaxrs-petstore-server.sh -./bin/jaxrs-resteasy-eap-java8-petstore-server.sh -./bin/jaxrs-resteasy-eap-joda-petstore-server.sh -./bin/jaxrs-resteasy-eap-petstore-server.sh -./bin/jaxrs-resteasy-joda-petstore-server.sh -./bin/jaxrs-resteasy-petstore-server.sh -./bin/jaxrs-spec-petstore-server-interface.sh -./bin/jaxrs-spec-petstore-server.sh -./bin/jaxrs-usetags-petstore-server.sh - -./bin/openapi3/jaxrs-jersey-petstore.sh - -echo " Please run ./bin/jaxrs-cxf-petstore-server-test-data.sh manually instead" diff --git a/bin/java-msf4j-petstore-server.sh b/bin/java-msf4j-petstore-server.sh deleted file mode 100755 index 46ae1caef9a..00000000000 --- a/bin/java-msf4j-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/java-msf4j-server -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java-msf4j -o samples/server/petstore/java-msf4j/ --additional-properties hideGenerationTimestamp=true --additional-properties artifactId=java-msf4j-server $@" - -echo "Removing files and folders under samples/server/petstore/java-msf4j/src/main" -rm -rf samples/server/petstore/java-msf4j/src/main -find samples/server/petstore/java-msf4j -maxdepth 1 -type f ! -name "README.md" ! -name "pom.xml" ! -name "mvn_test_jdk8_only.sh" ! -name ".openapi-generator-ignore" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-all.sh b/bin/java-petstore-all.sh deleted file mode 100755 index 2277e850bb7..00000000000 --- a/bin/java-petstore-all.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# update java petstore clients for all supported http libraries - -./bin/java-petstore-feign-10x.sh -./bin/java-petstore-google-api-client.sh -./bin/java-petstore-jersey1.sh -./bin/java-petstore-jersey2-java8.sh -./bin/java-petstore-microprofile.sh -./bin/java-petstore-native.sh -./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 -./bin/java-petstore-retrofit2-play24.sh -./bin/java-petstore-retrofit2-play25.sh -./bin/java-petstore-retrofit2-play26.sh -./bin/java-petstore-retrofit2.sh -./bin/java-petstore-retrofit2rx.sh -./bin/java-petstore-retrofit2rx2.sh -./bin/java-petstore-vertx.sh -./bin/java-petstore-webclient.sh diff --git a/bin/java-petstore-feign-10x.json b/bin/java-petstore-feign-10x.json deleted file mode 100644 index 95949f4a939..00000000000 --- a/bin/java-petstore-feign-10x.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "feign", - "artifactId": "petstore-feign-10x" -} diff --git a/bin/java-petstore-feign-10x.sh b/bin/java-petstore-feign-10x.sh deleted file mode 100755 index 15b1b40e214..00000000000 --- a/bin/java-petstore-feign-10x.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/feign -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-feign-10x.json -o samples/client/petstore/java/feign10x --additional-properties hideGenerationTimestamp=true,booleanGetterPrefix=is $@" - -echo "Removing files and folders under samples/client/petstore/java/feign10x/src/main" -rm -rf samples/client/petstore/java/feign10x/src/main -find samples/client/petstore/java/feign10x -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags - -# copy additional manually written unit-tests -mkdir samples/client/petstore/java/feign10x/src/test/java/org/openapitools/client - -cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/feign10x/src/test/java/org/openapitools/client/StringUtilTest.java diff --git a/bin/java-petstore-google-api-client.json b/bin/java-petstore-google-api-client.json deleted file mode 100644 index c25698724b0..00000000000 --- a/bin/java-petstore-google-api-client.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "google-api-client", - "artifactId": "petstore-google-api-client" -} diff --git a/bin/java-petstore-google-api-client.sh b/bin/java-petstore-google-api-client.sh deleted file mode 100755 index 20e3577f197..00000000000 --- a/bin/java-petstore-google-api-client.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/google-api-client -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-google-api-client.json -o samples/client/petstore/java/google-api-client --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/google-api-client/src/main" -rm -rf samples/client/petstore/java/google-api-client/src/main -find samples/client/petstore/java/google-api-client -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-jersey1.sh b/bin/java-petstore-jersey1.sh deleted file mode 100755 index 75a399b4766..00000000000 --- a/bin/java-petstore-jersey1.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/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 --artifact-id petstore-java-client-jersey1 -t modules/openapi-generator/src/main/resources/Java -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -o samples/client/petstore/java/jersey1 --additional-properties hideGenerationTimestamp=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 -find samples/client/petstore/java/jersey1 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags - -# copy additional manually written unit-tests -mkdir samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client -mkdir samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/auth -mkdir samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/model - -cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/StringUtilTest.java -cp CI/samples.ci/client/petstore/java/test-manual/jersey1/ApiClientTest.java samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/ApiClientTest.java -cp CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/ConfigurationTest.java -cp CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/ApiKeyAuthTest.java samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java -cp CI/samples.ci/client/petstore/java/test-manual/jersey1/auth/HttpBasicAuthTest.java samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java -cp CI/samples.ci/client/petstore/java/test-manual/jersey1/model/EnumValueTest.java samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/model/EnumValueTest.java diff --git a/bin/java-petstore-jersey2-java7.json b/bin/java-petstore-jersey2-java7.json deleted file mode 100644 index a5e2254fdb3..00000000000 --- a/bin/java-petstore-jersey2-java7.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "library": "jersey2", - "java8": false, - "artifactId": "petstore-jersey2-java7" -} diff --git a/bin/java-petstore-jersey2-java8.json b/bin/java-petstore-jersey2-java8.json deleted file mode 100644 index 2c5ee492f6c..00000000000 --- a/bin/java-petstore-jersey2-java8.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "library": "jersey2", - "artifactId": "petstore-jersey2", - "dateLibrary": "java8" -} diff --git a/bin/java-petstore-jersey2-java8.sh b/bin/java-petstore-jersey2-java8.sh deleted file mode 100755 index 3cacd238399..00000000000 --- a/bin/java-petstore-jersey2-java8.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/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 --artifact-id petstore-jersey2-java8 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-jersey2-java8.json -o samples/client/petstore/java/jersey2-java8 --additional-properties hideGenerationTimestamp=true --additional-properties serverPort=8082 $@" - -echo "Removing files and folders under samples/client/petstore/java/jersey2-java8/src/main" -rm -rf samples/client/petstore/java/jersey2-java8/src/main -find samples/client/petstore/java/jersey2-java8 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags - -# copy additional manually written unit-tests -mkdir samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client -mkdir samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/auth -mkdir samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/model - -cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/jersey2-java8/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-java8/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-java8/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-java8/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-java8/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-java8/src/test/java/org/openapitools/client/model/EnumValueTest.java -cp CI/samples.ci/client/petstore/java/test-manual/jersey2-java8/JSONTest.java samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/JSONTest.java diff --git a/bin/java-petstore-microprofile.sh b/bin/java-petstore-microprofile.sh deleted file mode 100755 index b7a93f6a985..00000000000 --- a/bin/java-petstore-microprofile.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate --artifact-id "microprofile-rest-client" -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java --library microprofile -o samples/client/petstore/java/microprofile-rest-client $@" - -echo "Removing files and folders under samples/client/petstore/java/microprofile-rest-client/src/main" -rm -rf samples/client/petstore/java/microprofile-rest-client/src/main -find samples/client/petstore/java/microprofile-rest-client -maxdepth 1 -type f ! -name "README.md" -exec rm {} + - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-native-async.sh b/bin/java-petstore-native-async.sh deleted file mode 100755 index d163250beb6..00000000000 --- a/bin/java-petstore-native-async.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/native -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-native.json -o samples/client/petstore/java/native-async --additional-properties hideGenerationTimestamp=true,asyncNative=true $@" - -echo "Removing files and folders under samples/client/petstore/java/httpclient/src/main" -rm -rf samples/client/petstore/java/native-async/src/main -find samples/client/petstore/java/native-async -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-native.json b/bin/java-petstore-native.json deleted file mode 100644 index b5642e5b536..00000000000 --- a/bin/java-petstore-native.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "native", - "artifactId": "petstore-native" -} diff --git a/bin/java-petstore-native.sh b/bin/java-petstore-native.sh deleted file mode 100755 index d155429a3a6..00000000000 --- a/bin/java-petstore-native.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/native -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-native.json -o samples/client/petstore/java/native --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/httpclient/src/main" -rm -rf samples/client/petstore/java/native/src/main -find samples/client/petstore/java/native -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-okhttp-gson-parcelable.sh b/bin/java-petstore-okhttp-gson-parcelable.sh deleted file mode 100755 index ae4fbfd8d2b..00000000000 --- a/bin/java-petstore-okhttp-gson-parcelable.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 --artifact-id petstore-okhttp-gson-parcelableModel -t modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson-parcelableModel --additional-properties hideGenerationTimestamp=true,parcelableModel=true $@" - -rm -rf samples/client/petstore/java/okhttp-gson-parcelableModel/src/main -find samples/client/petstore/java/okhttp-gson-parcelableModel -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-okhttp-gson.json b/bin/java-petstore-okhttp-gson.json deleted file mode 100644 index 8ee5473563b..00000000000 --- a/bin/java-petstore-okhttp-gson.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "okhttp-gson", - "artifactId": "petstore-okhttp-gson" -} diff --git a/bin/java-petstore-okhttp-gson.sh b/bin/java-petstore-okhttp-gson.sh deleted file mode 100755 index 8e7e7ac84e4..00000000000 --- a/bin/java-petstore-okhttp-gson.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-okhttp-gson.json -o samples/client/petstore/java/okhttp-gson --additional-properties hideGenerationTimestamp=true $@" - -rm -rf samples/client/petstore/java/okhttp-gson/src/main -find samples/client/petstore/java/okhttp-gson -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags - -# copy additional manually written unit-tests -mkdir -p samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client -mkdir -p samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth -mkdir -p samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model - -cp CI/samples.ci/client/petstore/java/test-manual/common/StringUtilTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/StringUtilTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/ApiClientTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ApiClientTest.java -cp CI/samples.ci/client/petstore/java/test-manual/common/ConfigurationTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/ConfigurationTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/ApiKeyAuthTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/auth/HttpBasicAuthTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/EnumValueTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/EnumValueTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/PetTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/PetTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/model/ArrayOfArrayOfNumberOnlyTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnlyTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/JSONTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/JSONTest.java -cp CI/samples.ci/client/petstore/java/test-manual/okhttp-gson/api/PetApiTest.java samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/PetApiTest.java diff --git a/bin/java-petstore-rest-assured-jackson.json b/bin/java-petstore-rest-assured-jackson.json deleted file mode 100644 index d6e6035df80..00000000000 --- a/bin/java-petstore-rest-assured-jackson.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "rest-assured", - "artifactId": "petstore-rest-assured-jackson" -} diff --git a/bin/java-petstore-rest-assured-jackson.sh b/bin/java-petstore-rest-assured-jackson.sh deleted file mode 100755 index eeffe6aacee..00000000000 --- a/bin/java-petstore-rest-assured-jackson.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 diff --git a/bin/java-petstore-rest-assured.json b/bin/java-petstore-rest-assured.json deleted file mode 100644 index 86e6216a23f..00000000000 --- a/bin/java-petstore-rest-assured.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "rest-assured", - "artifactId": "petstore-rest-assured" -} diff --git a/bin/java-petstore-rest-assured.sh b/bin/java-petstore-rest-assured.sh deleted file mode 100755 index 93de0703ed7..00000000000 --- a/bin/java-petstore-rest-assured.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 -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 -find samples/client/petstore/java/rest-assured -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags - diff --git a/bin/java-petstore-resteasy-all.sh b/bin/java-petstore-resteasy-all.sh deleted file mode 100755 index c1a346943f7..00000000000 --- a/bin/java-petstore-resteasy-all.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -./bin/java-petstore-resteasy.sh -./bin/jaxrs-resteasy-eap-petstore-server.sh -./bin/jaxrs-resteasy-eap-java8-petstore-server.sh -./bin/jaxrs-resteasy-joda-petstore-server.sh -./bin/jaxrs-resteasy-eap-joda-petstore-server.sh -./bin/jaxrs-resteasy-petstore-server.sh* diff --git a/bin/java-petstore-resteasy.json b/bin/java-petstore-resteasy.json deleted file mode 100644 index 6998a56fd74..00000000000 --- a/bin/java-petstore-resteasy.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "resteasy", - "artifactId": "petstore-resteasy" -} diff --git a/bin/java-petstore-resteasy.sh b/bin/java-petstore-resteasy.sh deleted file mode 100755 index ae611374131..00000000000 --- a/bin/java-petstore-resteasy.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-resteasy.json -o samples/client/petstore/java/resteasy --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/resteasy/src/main" -rm -rf samples/client/petstore/java/resteasy/src/main -find samples/client/petstore/java/resteasy -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-resttemplate-withxml.sh b/bin/java-petstore-resttemplate-withxml.sh deleted file mode 100755 index 19c142a2d4f..00000000000 --- a/bin/java-petstore-resttemplate-withxml.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml --artifact-id petstore-resttemplate-withxml -g java -c bin/java-petstore-resttemplate.json -o samples/client/petstore/java/resttemplate-withXml --additional-properties hideGenerationTimestamp=true,withXml=true $@" - -echo "Removing files and folders under samples/client/petstore/java/resttemplate/src/main" -rm -rf samples/client/petstore/java/resttemplate-withXml/src/main -find samples/client/petstore/java/resttemplate-withXml -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-resttemplate.json b/bin/java-petstore-resttemplate.json deleted file mode 100644 index ab1bc1e4dd7..00000000000 --- a/bin/java-petstore-resttemplate.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "resttemplate", - "artifactId": "petstore-resttemplate" -} diff --git a/bin/java-petstore-resttemplate.sh b/bin/java-petstore-resttemplate.sh deleted file mode 100755 index d37d40059ff..00000000000 --- a/bin/java-petstore-resttemplate.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-resttemplate.json -o samples/client/petstore/java/resttemplate --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/resttemplate/src/main" -rm -rf samples/client/petstore/java/resttemplate/src/main -find samples/client/petstore/java/resttemplate -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags - -# copy additional manually written unit-tests -mkdir samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client -mkdir samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/auth -mkdir samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/model - -cp CI/samples.ci/client/petstore/java/test-manual/resttemplate/ApiClientTest.java samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/ApiClientTest.java -cp CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/ApiKeyAuthTest.java samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/auth/ApiKeyAuthTest.java -cp CI/samples.ci/client/petstore/java/test-manual/resttemplate/auth/HttpBasicAuthTest.java samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/auth/HttpBasicAuthTest.java -cp CI/samples.ci/client/petstore/java/test-manual/resttemplate/model/EnumValueTest.java samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/model/EnumValueTest.java diff --git a/bin/java-petstore-retrofit2-all.sh b/bin/java-petstore-retrofit2-all.sh deleted file mode 100755 index 656006917a7..00000000000 --- a/bin/java-petstore-retrofit2-all.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -./bin/java-petstore-retrofit2-play24.sh -./bin/java-petstore-retrofit2-play25.sh -./bin/java-petstore-retrofit2-play26.sh -./bin/java-petstore-retrofit2.sh -./bin/java-petstore-retrofit2rx.sh -./bin/java-petstore-retrofit2rx2.sh diff --git a/bin/java-petstore-retrofit2-play24.json b/bin/java-petstore-retrofit2-play24.json deleted file mode 100644 index f5398065c20..00000000000 --- a/bin/java-petstore-retrofit2-play24.json +++ /dev/null @@ -1 +0,0 @@ -{"useBeanValidation":"true","enableBuilderSupport":"true","library":"retrofit2","usePlayWS":"true","playVersion":"play24","dateLibrary":"java8"} diff --git a/bin/java-petstore-retrofit2-play24.sh b/bin/java-petstore-retrofit2-play24.sh deleted file mode 100755 index 4b94855865e..00000000000 --- a/bin/java-petstore-retrofit2-play24.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id petstore-java-client-retrofit2-play24 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-retrofit2-play24.json -o samples/client/petstore/java/retrofit2-play24 --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/retrofit2-play24/src/main" -rm -rf samples/client/petstore/java/retrofit2-play24/src/main -find samples/client/petstore/java/retrofit2-play24 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-retrofit2-play25.json b/bin/java-petstore-retrofit2-play25.json deleted file mode 100644 index 49eda94f83a..00000000000 --- a/bin/java-petstore-retrofit2-play25.json +++ /dev/null @@ -1 +0,0 @@ -{"useBeanValidation":"true","enableBuilderSupport":"true","library":"retrofit2","usePlayWS":"true","playVersion":"play25"} diff --git a/bin/java-petstore-retrofit2-play25.sh b/bin/java-petstore-retrofit2-play25.sh deleted file mode 100755 index 1954c2e045e..00000000000 --- a/bin/java-petstore-retrofit2-play25.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id petstore-java-client-retrofit2-play25 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-retrofit2-play25.json -o samples/client/petstore/java/retrofit2-play25 --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/retrofit2-play25/src/main" -rm -rf samples/client/petstore/java/retrofit2-play25/src/main -find samples/client/petstore/java/retrofit2-play25 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-retrofit2-play26.json b/bin/java-petstore-retrofit2-play26.json deleted file mode 100644 index 0c7456430d4..00000000000 --- a/bin/java-petstore-retrofit2-play26.json +++ /dev/null @@ -1 +0,0 @@ -{"useBeanValidation":"true","enableBuilderSupport":"true","library":"retrofit2","usePlayWS":"true","playVersion":"play26"} diff --git a/bin/java-petstore-retrofit2-play26.sh b/bin/java-petstore-retrofit2-play26.sh deleted file mode 100755 index 0c582d09af1..00000000000 --- a/bin/java-petstore-retrofit2-play26.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id petstore-java-client-retrofit2-play26 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-retrofit2-play26.json -o samples/client/petstore/java/retrofit2-play26 --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/retrofit2-play26/src/main" -rm -rf samples/client/petstore/java/retrofit2-play26/src/main -find samples/client/petstore/java/retrofit2-play26 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-retrofit2.json b/bin/java-petstore-retrofit2.json deleted file mode 100644 index dd835a73442..00000000000 --- a/bin/java-petstore-retrofit2.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "retrofit2", - "artifactId": "petstore-retrofit2" -} diff --git a/bin/java-petstore-retrofit2.sh b/bin/java-petstore-retrofit2.sh deleted file mode 100755 index 2dce65f2724..00000000000 --- a/bin/java-petstore-retrofit2.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/retrofit2 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-retrofit2.json -o samples/client/petstore/java/retrofit2 --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/retrofit2/src/main" -rm -rf samples/client/petstore/java/retrofit2/src/main -find samples/client/petstore/java/retrofit2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-retrofit2rx.json b/bin/java-petstore-retrofit2rx.json deleted file mode 100644 index 739b1ddd272..00000000000 --- a/bin/java-petstore-retrofit2rx.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "retrofit2", - "artifactId": "petstore-retrofit2-rx" -} diff --git a/bin/java-petstore-retrofit2rx.sh b/bin/java-petstore-retrofit2rx.sh deleted file mode 100755 index 74729919db1..00000000000 --- a/bin/java-petstore-retrofit2rx.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/retrofit2 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-retrofit2rx.json -o samples/client/petstore/java/retrofit2rx --additional-properties useRxJava=true,hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/retrofit2rx/src/main" -rm -rf samples/client/petstore/java/retrofit2rx/src/main -find samples/client/petstore/java/retrofit2rx -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-retrofit2rx2.json b/bin/java-petstore-retrofit2rx2.json deleted file mode 100644 index 1f4fb291897..00000000000 --- a/bin/java-petstore-retrofit2rx2.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "retrofit2", - "artifactId": "petstore-retrofit2-rx2" -} diff --git a/bin/java-petstore-retrofit2rx2.sh b/bin/java-petstore-retrofit2rx2.sh deleted file mode 100755 index 05d6acb7bd0..00000000000 --- a/bin/java-petstore-retrofit2rx2.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/retrofit2 -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-retrofit2rx2.json -o samples/client/petstore/java/retrofit2rx2 --additional-properties useRxJava2=true,hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/retrofit2rx2/src/main" -rm -rf samples/client/petstore/java/retrofit2rx2/src/main -find samples/client/petstore/java/retrofit2rx2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-vertx.json b/bin/java-petstore-vertx.json deleted file mode 100644 index 620481d0221..00000000000 --- a/bin/java-petstore-vertx.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "library": "vertx", - "dateLibrary": "java8", - "artifactId": "petstore-vertx" -} diff --git a/bin/java-petstore-vertx.sh b/bin/java-petstore-vertx.sh deleted file mode 100755 index 8eeb623b278..00000000000 --- a/bin/java-petstore-vertx.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Java/libraries/vertx -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-vertx.json -o samples/client/petstore/java/vertx --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/vertx/src/main" -rm -rf samples/client/petstore/java/vertx/src/main -find samples/client/petstore/java/vertx -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-petstore-webclient.json b/bin/java-petstore-webclient.json deleted file mode 100644 index 822ddccce55..00000000000 --- a/bin/java-petstore-webclient.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "webclient", - "artifactId": "petstore-webclient" -} diff --git a/bin/java-petstore-webclient.sh b/bin/java-petstore-webclient.sh deleted file mode 100755 index c9402c60c0a..00000000000 --- a/bin/java-petstore-webclient.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-webclient.json -o samples/client/petstore/java/webclient --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/client/petstore/java/webclient/src/main" -rm -rf samples/client/petstore/java/webclient/src/main -find samples/client/petstore/java/webclient -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-pkmst-petstore-server.sh b/bin/java-pkmst-petstore-server.sh deleted file mode 100755 index 25d1c953197..00000000000 --- a/bin/java-pkmst-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/java-pkmst -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-pkmst -o samples/server/petstore/java-pkmst/ --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/java-pkmst/src/main" -rm -rf samples/server/petstore/java-pkmst/src/main -find samples/server/petstore/java-pkmst/ -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-play-framework-petstore-server-all.sh b/bin/java-play-framework-petstore-server-all.sh deleted file mode 100755 index fa4fd9daf90..00000000000 --- a/bin/java-play-framework-petstore-server-all.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -./bin/java-play-framework-petstore-server.sh -./bin/java-play-framework-petstore-server-controller-only.sh -./bin/java-play-framework-petstore-server-no-bean-validation.sh -./bin/java-play-framework-petstore-server-no-exception-handling.sh -./bin/java-play-framework-petstore-server-no-interface.sh -./bin/java-play-framework-petstore-server-no-swagger-ui.sh -./bin/java-play-framework-petstore-server-no-wrap-calls.sh -./bin/java-play-framework-petstore-server-fake-endpoints.sh -./bin/java-play-framework-petstore-server-api-package-override.sh -./bin/java-play-framework-petstore-server-async.sh diff --git a/bin/java-play-framework-petstore-server-api-package-override.sh b/bin/java-play-framework-petstore-server-api-package-override.sh deleted file mode 100755 index cba7507689e..00000000000 --- a/bin/java-play-framework-petstore-server-api-package-override.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-api-package-override --additional-properties hideGenerationTimestamp=true,apiPackage=com.puppies.store.apis $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-api-package-override/pom.xml samples/server/petstore/java-play-framework-api-package-override/pom.xml diff --git a/bin/java-play-framework-petstore-server-async.json b/bin/java-play-framework-petstore-server-async.json deleted file mode 100755 index 69161a46d0f..00000000000 --- a/bin/java-play-framework-petstore-server-async.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "additionalProperties" : { - "supportAsync" : true - } -} diff --git a/bin/java-play-framework-petstore-server-async.sh b/bin/java-play-framework-petstore-server-async.sh deleted file mode 100755 index c09f9772fa3..00000000000 --- a/bin/java-play-framework-petstore-server-async.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -c bin/java-play-framework-petstore-server-async.json -o samples/server/petstore/java-play-framework-async --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-play-framework-petstore-server-controller-only.sh b/bin/java-play-framework-petstore-server-controller-only.sh deleted file mode 100755 index 85a23261221..00000000000 --- a/bin/java-play-framework-petstore-server-controller-only.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-controller-only --additional-properties hideGenerationTimestamp=true,controllerOnly=true $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-controller-only/pom.xml samples/server/petstore/java-play-framework-controller-only/pom.xml diff --git a/bin/java-play-framework-petstore-server-fake-endpoints.sh b/bin/java-play-framework-petstore-server-fake-endpoints.sh deleted file mode 100755 index 0ae05412047..00000000000 --- a/bin/java-play-framework-petstore-server-fake-endpoints.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-fake-endpoints --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-fake-endpoints/pom.xml samples/server/petstore/java-play-framework-fake-endpoints/pom.xml diff --git a/bin/java-play-framework-petstore-server-no-bean-validation.sh b/bin/java-play-framework-petstore-server-no-bean-validation.sh deleted file mode 100755 index 92b924b73d0..00000000000 --- a/bin/java-play-framework-petstore-server-no-bean-validation.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-no-bean-validation --additional-properties hideGenerationTimestamp=true,useBeanValidation=false $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-no-bean-validation/pom.xml samples/server/petstore/java-play-framework-no-bean-validation/pom.xml diff --git a/bin/java-play-framework-petstore-server-no-exception-handling.sh b/bin/java-play-framework-petstore-server-no-exception-handling.sh deleted file mode 100755 index b9fe281c4c1..00000000000 --- a/bin/java-play-framework-petstore-server-no-exception-handling.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-no-exception-handling --additional-properties hideGenerationTimestamp=true,handleExceptions=false $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-no-exception-handling/pom.xml samples/server/petstore/java-play-framework-no-exception-handling/pom.xml diff --git a/bin/java-play-framework-petstore-server-no-interface.sh b/bin/java-play-framework-petstore-server-no-interface.sh deleted file mode 100755 index dbc4b8734ab..00000000000 --- a/bin/java-play-framework-petstore-server-no-interface.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-no-interface --additional-properties hideGenerationTimestamp=true,useInterfaces=false $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-no-interface/pom.xml samples/server/petstore/java-play-framework-no-interface/pom.xml diff --git a/bin/java-play-framework-petstore-server-no-swagger-ui.sh b/bin/java-play-framework-petstore-server-no-swagger-ui.sh deleted file mode 100755 index 494a0253161..00000000000 --- a/bin/java-play-framework-petstore-server-no-swagger-ui.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-no-swagger-ui --additional-properties hideGenerationTimestamp=true,useSwaggerUI=false $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-no-swagger-ui/pom.xml samples/server/petstore/java-play-framework-no-swagger-ui/pom.xml diff --git a/bin/java-play-framework-petstore-server-no-wrap-calls.sh b/bin/java-play-framework-petstore-server-no-wrap-calls.sh deleted file mode 100755 index 7de56cc566e..00000000000 --- a/bin/java-play-framework-petstore-server-no-wrap-calls.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework-no-wrap-calls --additional-properties hideGenerationTimestamp=true,wrapCalls=false $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework-no-wrap-calls/pom.xml samples/server/petstore/java-play-framework-no-wrap-calls/pom.xml diff --git a/bin/java-play-framework-petstore-server.sh b/bin/java-play-framework-petstore-server.sh deleted file mode 100755 index b187c2e47b9..00000000000 --- a/bin/java-play-framework-petstore-server.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaPlayFramework -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-play-framework -o samples/server/petstore/java-play-framework --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/server/petstore/java-play-framework/pom.xml samples/server/petstore/java-play-framework/pom.xml diff --git a/bin/java-undertow-petstore-server.sh b/bin/java-undertow-petstore-server.sh deleted file mode 100755 index 957d7592523..00000000000 --- a/bin/java-undertow-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/java-undertow-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g java-undertow-server -o samples/server/petstore/java-undertow --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-vertx-async-petstore-server.sh b/bin/java-vertx-async-petstore-server.sh deleted file mode 100755 index 519dd79c2b3..00000000000 --- a/bin/java-vertx-async-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g java-vertx -o samples/server/petstore/java-vertx/async --additional-properties vertxSwaggerRouterVersion=1.4.0,hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-vertx-rx-petstore-server.sh b/bin/java-vertx-rx-petstore-server.sh deleted file mode 100755 index 651f03f777d..00000000000 --- a/bin/java-vertx-rx-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g java-vertx --artifact-id java-vertx-rx-server -o samples/server/petstore/java-vertx/rx --additional-properties vertxSwaggerRouterVersion=1.4.0,rxInterface=true --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/java-vertx-web-rx-petstore-server.sh b/bin/java-vertx-web-rx-petstore-server.sh deleted file mode 100755 index 16a9b48ed18..00000000000 --- a/bin/java-vertx-web-rx-petstore-server.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore.yaml" -GENERATOR="java-vertx-web" -TEMPLATE="modules/openapi-generator/src/main/resources/JavaVertXWebServer" -STUB_DIR="samples/server/petstore/java-vertx-web/rx" - -# 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 $SPEC -t $TEMPLATE -g $GENERATOR --artifact-id java-vertx-web-rx-server -o $STUB_DIR --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-apollo-petstore.sh b/bin/javascript-apollo-petstore.sh deleted file mode 100755 index 13a20dea570..00000000000 --- a/bin/javascript-apollo-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Javascript-Apollo -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g javascript-apollo -o samples/client/petstore/javascript-apollo --additional-properties appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-closure-angular.sh b/bin/javascript-closure-angular.sh deleted file mode 100755 index b3cac1c21d9..00000000000 --- a/bin/javascript-closure-angular.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g javascript-closure-angular -o samples/client/petstore/javascript-closure-angular $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-es6-petstore.sh b/bin/javascript-es6-petstore.sh deleted file mode 100755 index 518d3382b92..00000000000 --- a/bin/javascript-es6-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Javascript/es6 \ --i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ --o samples/client/petstore/javascript-es6 --additional-properties appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-flowtyped-petstore.sh b/bin/javascript-flowtyped-petstore.sh deleted file mode 100755 index 061837a6384..00000000000 --- a/bin/javascript-flowtyped-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Javascript-Flowtyped -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g javascript-flowtyped -o samples/client/petstore/javascript-flowtyped --additional-properties appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/javascript-petstore-all.sh b/bin/javascript-petstore-all.sh deleted file mode 100755 index 1a3a72af7ef..00000000000 --- a/bin/javascript-petstore-all.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./bin/javascript-es6-petstore.sh -./bin/javascript-promise-es6-petstore.sh diff --git a/bin/javascript-promise-es6-petstore.sh b/bin/javascript-promise-es6-petstore.sh deleted file mode 100755 index 42a866b1d65..00000000000 --- a/bin/javascript-promise-es6-petstore.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/Javascript/es6 \ --i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g javascript \ --o samples/client/petstore/javascript-promise-es6 \ ---additional-properties appName=PetstoreClient,usePromises=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-cxf-cdi-petstore-server.sh b/bin/jaxrs-cxf-cdi-petstore-server.sh deleted file mode 100755 index 3d1e538c394..00000000000 --- a/bin/jaxrs-cxf-cdi-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-cdi -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-cxf-cdi -o samples/server/petstore/jaxrs-cxf-cdi --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-cxf-client-petstore.sh b/bin/jaxrs-cxf-client-petstore.sh deleted file mode 100755 index 97346c61121..00000000000 --- a/bin/jaxrs-cxf-client-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 --artifact-id "jaxrs-cxf-petstore-client" -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/ -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-cxf-client -o samples/client/petstore/jaxrs-cxf-client $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-cxf-petstore-server-annotated-base-path.sh b/bin/jaxrs-cxf-petstore-server-annotated-base-path.sh deleted file mode 100755 index 3c8b96a2e64..00000000000 --- a/bin/jaxrs-cxf-petstore-server-annotated-base-path.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 --artifact-id cxf-annotated-basepath -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-cxf -o samples/server/petstore/jaxrs-cxf-annotated-base-path --additional-properties hideGenerationTimestamp=true,useAnnotatedBasePath=true --additional-properties serverPort=8082 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-cxf-petstore-server-non-spring-application.sh b/bin/jaxrs-cxf-petstore-server-non-spring-application.sh deleted file mode 100755 index 6db712b74bb..00000000000 --- a/bin/jaxrs-cxf-petstore-server-non-spring-application.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 --artifact-id cxf-server-non-spring -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-cxf -o samples/server/petstore/jaxrs-cxf-non-spring-app --additional-properties hideGenerationTimestamp=true,generateNonSpringApplication=true --additional-properties serverPort=8082 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-cxf-petstore-server-test-data.sh b/bin/jaxrs-cxf-petstore-server-test-data.sh deleted file mode 100755 index 6844b7bcf84..00000000000 --- a/bin/jaxrs-cxf-petstore-server-test-data.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 --artifact-id cxf-test-data -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf-ext -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-cxf-extended -o samples/server/petstore/jaxrs-cxf-test-data --additional-properties hideGenerationTimestamp=true,useAnnotatedBasePath=true --generate-alias-as-model --additional-properties java8=true,generateSpringApplication=true,generateSpringBootApplication=true,generateOperationBody=true,loadTestDataFromFile=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-cxf-petstore-server.sh b/bin/jaxrs-cxf-petstore-server.sh deleted file mode 100755 index 4081b01e862..00000000000 --- a/bin/jaxrs-cxf-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 - -echo "Removing files and folders under samples/server/petstore/jaxrs-cxf" -rm -rf samples/server/petstore/jaxrs-cxf - -# 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/JavaJaxRS/cxf -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-cxf -o samples/server/petstore/jaxrs-cxf --additional-properties hideGenerationTimestamp=true --additional-properties serverPort=8082 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-datelib-j8.json b/bin/jaxrs-datelib-j8.json deleted file mode 100644 index 7752cec1eef..00000000000 --- a/bin/jaxrs-datelib-j8.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "serializableModel": true, - "withXml": true, - "dateLibrary": "java8", - "java8": true, - "useBeanValidation": true -} diff --git a/bin/jaxrs-jersey1-petstore-server.sh b/bin/jaxrs-jersey1-petstore-server.sh deleted file mode 100755 index 3cc7cc87615..00000000000 --- a/bin/jaxrs-jersey1-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-jersey -o samples/server/petstore/jaxrs/jersey1 --additional-properties hideGenerationTimestamp=true,serverPort=8082 --library=jersey1 --artifact-id=jaxrs-jersey1-server $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs/jersey1/src/main" -rm -rf samples/server/petstore/jaxrs/jersey1/src/main -find samples/server/petstore/jaxrs/jersey1 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-jersey1-usetags-petstore-server.sh b/bin/jaxrs-jersey1-usetags-petstore-server.sh deleted file mode 100755 index 00746c68db1..00000000000 --- a/bin/jaxrs-jersey1-usetags-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-jersey -o samples/server/petstore/jaxrs/jersey1-useTags --additional-properties hideGenerationTimestamp=true,serverPort=8082 --library=jersey1 --artifact-id=jaxrs-jersey1-useTags --additional-properties useTags=true $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs/jersey1-useTags/src/main" -rm -rf samples/server/petstore/jaxrs/jersey1-useTags/src/main -find samples/server/petstore/jaxrs/jersey1-useTags -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-petstore-server-datelib-j8.sh b/bin/jaxrs-petstore-server-datelib-j8.sh deleted file mode 100755 index 64e9caff3bf..00000000000 --- a/bin/jaxrs-petstore-server-datelib-j8.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS/ -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-jersey -o samples/server/petstore/jaxrs-datelib-j8/ -c ./bin/jaxrs-datelib-j8.json --additional-properties hideGenerationTimestamp=true --additional-properties serverPort=8082 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-petstore-server.sh b/bin/jaxrs-petstore-server.sh deleted file mode 100755 index a75e5d3e55b..00000000000 --- a/bin/jaxrs-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id jaxrs-jersey-petstore-server -t modules/openapi-generator/src/main/resources/JavaJaxRS -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-jersey -o samples/server/petstore/jaxrs/jersey2 --additional-properties hideGenerationTimestamp=true,serverPort=8082 $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs/jersey2/src/main" -rm -rf samples/server/petstore/jaxrs/jersey2/src/main -find samples/server/petstore/jaxrs/jersey2 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-resteasy-eap-java8-petstore-server.json b/bin/jaxrs-resteasy-eap-java8-petstore-server.json deleted file mode 100644 index 3d80aca58ce..00000000000 --- a/bin/jaxrs-resteasy-eap-java8-petstore-server.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "dateLibrary": "java8" -} diff --git a/bin/jaxrs-resteasy-eap-java8-petstore-server.sh b/bin/jaxrs-resteasy-eap-java8-petstore-server.sh deleted file mode 100755 index 8b85c903722..00000000000 --- a/bin/jaxrs-resteasy-eap-java8-petstore-server.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 --artifact-id jaxrs-resteasy-eap-java8-server -t modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-resteasy-eap -o samples/server/petstore/jaxrs-resteasy/eap-java8 --additional-properties hideGenerationTimestamp=true -c ./bin/jaxrs-resteasy-eap-java8-petstore-server.json $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs-resteasy/eap-java8/src/main" -rm -rf samples/server/petstore/jaxrs-resteasy/eap-java8/src/main -find samples/server/petstore/jaxrs-resteasy/eap-java8 -maxdepth 1 -type f ! -name "README.md" -exec rm {} + - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-resteasy-eap-joda-petstore-server.json b/bin/jaxrs-resteasy-eap-joda-petstore-server.json deleted file mode 100644 index 785c7acdc6a..00000000000 --- a/bin/jaxrs-resteasy-eap-joda-petstore-server.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "dateLibrary": "joda" -} diff --git a/bin/jaxrs-resteasy-eap-joda-petstore-server.sh b/bin/jaxrs-resteasy-eap-joda-petstore-server.sh deleted file mode 100755 index af9885025d6..00000000000 --- a/bin/jaxrs-resteasy-eap-joda-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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/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 --artifact-id jaxrs-resteasy-eap-joda-server -t modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-resteasy-eap -o samples/server/petstore/jaxrs-resteasy/eap-joda --additional-properties hideGenerationTimestamp=true -c ./bin/jaxrs-resteasy-eap-joda-petstore-server.json $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs-resteasy/eap-joda/src/main" -rm -rf samples/server/petstore/jaxrs-resteasy/eap-joda/src/main -find samples/server/petstore/jaxrs-resteasy/eap-joda -maxdepth 1 -type f ! -name "README.md" -exec rm {} + - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-resteasy-eap-petstore-server.sh b/bin/jaxrs-resteasy-eap-petstore-server.sh deleted file mode 100755 index 7cc23202f48..00000000000 --- a/bin/jaxrs-resteasy-eap-petstore-server.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy/eap -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-resteasy-eap -o samples/server/petstore/jaxrs-resteasy/eap --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs-resteasy/eap/src/main" -rm -rf samples/server/petstore/jaxrs-resteasy/eap/src/main -find samples/server/petstore/jaxrs-resteasy/eap -maxdepth 1 -type f ! -name "README.md" -exec rm {} + - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-resteasy-joda-petstore-server.json b/bin/jaxrs-resteasy-joda-petstore-server.json deleted file mode 100644 index 785c7acdc6a..00000000000 --- a/bin/jaxrs-resteasy-joda-petstore-server.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "dateLibrary": "joda" -} diff --git a/bin/jaxrs-resteasy-joda-petstore-server.sh b/bin/jaxrs-resteasy-joda-petstore-server.sh deleted file mode 100755 index 66bb1c3fffa..00000000000 --- a/bin/jaxrs-resteasy-joda-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 --artifact-id jaxrs-resteasy-joda-server -t modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-resteasy -o samples/server/petstore/jaxrs-resteasy/joda --additional-properties hideGenerationTimestamp=true -c ./bin/jaxrs-resteasy-joda-petstore-server.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-resteasy-petstore-server.sh b/bin/jaxrs-resteasy-petstore-server.sh deleted file mode 100755 index 6b40673aebd..00000000000 --- a/bin/jaxrs-resteasy-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS/resteasy -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g jaxrs-resteasy -o samples/server/petstore/jaxrs-resteasy/default --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-spec-petstore-server-interface-returning-response.sh b/bin/jaxrs-spec-petstore-server-interface-returning-response.sh deleted file mode 100755 index c4cc314bb4f..00000000000 --- a/bin/jaxrs-spec-petstore-server-interface-returning-response.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 --artifact-id jaxrs-spec-interface-response-petstore-server -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-spec -o samples/server/petstore/jaxrs-spec-interface-response ---additional-properties hideGenerationTimestamp=true ---additional-properties serializableModel=true ---additional-properties interfaceOnly=true ---additional-properties returnResponse=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-spec-petstore-server-interface.sh b/bin/jaxrs-spec-petstore-server-interface.sh deleted file mode 100755 index 570443e26ee..00000000000 --- a/bin/jaxrs-spec-petstore-server-interface.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id jaxrs-spec-interface-petstore-server -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-spec -o samples/server/petstore/jaxrs-spec-interface ---additional-properties hideGenerationTimestamp=true ---additional-properties serializableModel=true ---additional-properties interfaceOnly=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-spec-petstore-server.sh b/bin/jaxrs-spec-petstore-server.sh deleted file mode 100755 index 9d0c75513bd..00000000000 --- a/bin/jaxrs-spec-petstore-server.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 --artifact-id jaxrs-spec-petstore-server -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-spec -o samples/server/petstore/jaxrs-spec ---additional-properties hideGenerationTimestamp=true ---additional-properties serializableModel=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jaxrs-usetags-petstore-server.sh b/bin/jaxrs-usetags-petstore-server.sh deleted file mode 100755 index 1c84b29a033..00000000000 --- a/bin/jaxrs-usetags-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaJaxRS -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-jersey -o samples/server/petstore/jaxrs/jersey2-useTags --additional-properties hideGenerationTimestamp=true,serverPort=8082 --artifact-id=jaxrs-jersey2-useTags --additional-properties useTags=true $@" - -echo "Removing files and folders under samples/server/petstore/jaxrs/jersey2-useTags/src/main" -rm -rf samples/server/petstore/jaxrs/jersey2-useTags/src/main -find samples/server/petstore/jaxrs/jersey2-useTags -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/jmeter-petstore.sh b/bin/jmeter-petstore.sh deleted file mode 100755 index 68260d1cba3..00000000000 --- a/bin/jmeter-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g jmeter -o samples/client/petstore/jmeter/ $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/k6-petstore.sh b/bin/k6-petstore.sh deleted file mode 100755 index edb724827eb..00000000000 --- a/bin/k6-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 -g k6 -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -o samples/client/petstore/k6 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/kotlin-client-all.sh b/bin/kotlin-client-all.sh deleted file mode 100755 index 91348c423e1..00000000000 --- a/bin/kotlin-client-all.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -./bin/kotlin-client-gson.sh -./bin/kotlin-client-jackson.sh -./bin/kotlin-client-moshi-codegen.sh -./bin/kotlin-client-nonpublic.sh -./bin/kotlin-client-okhttp3.sh -./bin/kotlin-client-petstore-multiplatform.sh -./bin/kotlin-client-petstore.sh -./bin/kotlin-client-string.sh -./bin/kotlin-client-threetenbp.sh -./bin/kotlin-client-nullable.sh -./bin/kotlin-client-retrofit2.sh -./bin/kotlin-client-json-request-string.sh -./bin/kotlin-client-petstore-okhttp-coroutines.sh diff --git a/bin/kotlin-client-gson.sh b/bin/kotlin-client-gson.sh deleted file mode 100755 index f178cb88038..00000000000 --- a/bin/kotlin-client-gson.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-gson --additional-properties serializationLibrary=gson -o samples/client/petstore/kotlin-gson $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-jackson.sh b/bin/kotlin-client-jackson.sh deleted file mode 100755 index 516ffc69314..00000000000 --- a/bin/kotlin-client-jackson.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-jackson --additional-properties serializationLibrary=jackson --additional-properties enumPropertyNaming=UPPERCASE -o samples/client/petstore/kotlin-jackson $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-json-request-string.sh b/bin/kotlin-client-json-request-string.sh deleted file mode 100755 index 2e32eed675a..00000000000 --- a/bin/kotlin-client-json-request-string.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml -g kotlin --artifact-id kotlin-petstore-json-request-string --additional-properties requestDateConverter=toString -o samples/client/petstore/kotlin-json-request-string $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-moshi-codegen.sh b/bin/kotlin-client-moshi-codegen.sh deleted file mode 100755 index c037b2efd88..00000000000 --- a/bin/kotlin-client-moshi-codegen.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-moshi-codegen --additional-properties serializationLibrary=moshi,moshiCodeGen=true -o samples/client/petstore/kotlin-moshi-codegen $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-nonpublic.sh b/bin/kotlin-client-nonpublic.sh deleted file mode 100755 index 16c366ef673..00000000000 --- a/bin/kotlin-client-nonpublic.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-nonpublic --additional-properties nonPublicApi=true -o samples/client/petstore/kotlin-nonpublic $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-nullable.sh b/bin/kotlin-client-nullable.sh deleted file mode 100755 index aaa3ae06f41..00000000000 --- a/bin/kotlin-client-nullable.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-nullable --additional-properties nullableReturnType=true,serializableModel=true -o samples/client/petstore/kotlin-nullable $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-okhttp3.sh b/bin/kotlin-client-okhttp3.sh deleted file mode 100755 index 3f1cc101700..00000000000 --- a/bin/kotlin-client-okhttp3.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-okhttp3 --library jvm-okhttp3 -o samples/client/petstore/kotlin-okhttp3 $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-petstore-multiplatform.sh b/bin/kotlin-client-petstore-multiplatform.sh deleted file mode 100755 index a0b5de50b53..00000000000 --- a/bin/kotlin-client-petstore-multiplatform.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-client-petstore-multiplatform --library multiplatform -o samples/client/petstore/kotlin-multiplatform $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-petstore-okhttp-coroutines.sh b/bin/kotlin-client-petstore-okhttp-coroutines.sh deleted file mode 100755 index 6d7325821ef..00000000000 --- a/bin/kotlin-client-petstore-okhttp-coroutines.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/client/petstore/kotlin-jvm-okhttp4-coroutines" - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-okhttp4-coroutines-client --library jvm-okhttp4 --additional-properties serializationLibrary=gson,dateLibrary=java8,serializableModel=true,useCoroutines=true -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/kotlin-client-petstore.sh b/bin/kotlin-client-petstore.sh deleted file mode 100755 index 409911eb113..00000000000 --- a/bin/kotlin-client-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-client --additional-properties dateLibrary=java8,serializableModel=true -o samples/client/petstore/kotlin $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/kotlin-client-retrofit2.sh b/bin/kotlin-client-retrofit2.sh deleted file mode 100755 index 07bf41fa3e7..00000000000 --- a/bin/kotlin-client-retrofit2.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-retrofit2 --library jvm-retrofit2 -o samples/client/petstore/kotlin-retrofit2 $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} \ No newline at end of file diff --git a/bin/kotlin-client-string.sh b/bin/kotlin-client-string.sh deleted file mode 100755 index b5440137541..00000000000 --- a/bin/kotlin-client-string.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-string --additional-properties dateLibrary=string,serializableModel=true,sortParamsByRequiredFlag=false,sortModelPropertiesByRequiredFlag=false -o samples/client/petstore/kotlin-string $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} - -cp CI/samples.ci/client/petstore/kotlin-string/pom.xml samples/client/petstore/kotlin-string/pom.xml diff --git a/bin/kotlin-client-threetenbp.sh b/bin/kotlin-client-threetenbp.sh deleted file mode 100755 index 0cb7f27da09..00000000000 --- a/bin/kotlin-client-threetenbp.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin --artifact-id kotlin-petstore-threetenbp --additional-properties dateLibrary=threetenbp -o samples/client/petstore/kotlin-threetenbp $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} - -cp CI/samples.ci/client/petstore/kotlin-threetenbp/pom.xml samples/client/petstore/kotlin-threetenbp/pom.xml diff --git a/bin/kotlin-client-uppercase-enum.sh b/bin/kotlin-client-uppercase-enum.sh deleted file mode 100755 index 7f456fc3a06..00000000000 --- a/bin/kotlin-client-uppercase-enum.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/kotlin-client -i modules/openapi-generator/src/test/resources/3_0/issue-4062.yaml -g kotlin --artifact-id kotlin-uppercase-enum --additional-properties enumPropertyNaming=UPPERCASE -o samples/client/petstore/kotlin-uppercase-enum $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} - -#cp CI/samples.ci/client/petstore/kotlin-uppercase-enum/pom.xml samples/client/petstore/kotlin-uppercase-enum/pom.xml diff --git a/bin/kotlin-server-petstore.sh b/bin/kotlin-server-petstore.sh deleted file mode 100755 index 755a560a1f1..00000000000 --- a/bin/kotlin-server-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-server -g kotlin-server --library=ktor -o samples/server/petstore/kotlin-server/ktor --additional-properties hideGenerationTimestamp=true,serializableModel=true $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} - -cp CI/samples.ci/server/petstore/kotlin-server/ktor/pom.xml samples/server/petstore/kotlin-server/ktor/pom.xml diff --git a/bin/kotlin-springboot-petstore-all.sh b/bin/kotlin-springboot-petstore-all.sh deleted file mode 100755 index b24ada15722..00000000000 --- a/bin/kotlin-springboot-petstore-all.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -./bin/kotlin-springboot-petstore-server.sh -./bin/kotlin-springboot-petstore-server-reactive.sh -./bin/kotlin-springboot-petstore-server-model-mutable.sh diff --git a/bin/kotlin-springboot-petstore-server-model-mutable.sh b/bin/kotlin-springboot-petstore-server-model-mutable.sh deleted file mode 100755 index ed3712db26a..00000000000 --- a/bin/kotlin-springboot-petstore-server-model-mutable.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 clean package -fi - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-spring -g kotlin-spring -o samples/server/petstore/kotlin-springboot-modelMutable --additional-properties=library=spring-boot,beanValidations=true,swaggerAnnotations=true,serviceImplementation=true,serializableModel=true,modelMutable=true" - -echo "Cleaning previously generated files if any from samples/server/petstore/kotlin-springboot" -rm -rf samples/server/petstore/kotlin-springboot-modelMutable - -echo "Generating Kotling Spring Boot server..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/kotlin-springboot-petstore-server-reactive.sh b/bin/kotlin-springboot-petstore-server-reactive.sh deleted file mode 100755 index f5e72350b62..00000000000 --- a/bin/kotlin-springboot-petstore-server-reactive.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 clean package -fi - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-spring -g kotlin-spring -o samples/server/petstore/kotlin-springboot-reactive --additional-properties=library=spring-boot,beanValidations=true,swaggerAnnotations=true,serviceImplementation=true,reactive=true" - -echo "Cleaning previously generated files if any from samples/server/petstore/kotlin-springboot-reactive" -rm -rf samples/server/petstore/kotlin-springboot-reactive - -echo "Generating Kotling Spring Boot reactive server..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/kotlin-springboot-petstore-server.sh b/bin/kotlin-springboot-petstore-server.sh deleted file mode 100755 index 73b56bcf8fa..00000000000 --- a/bin/kotlin-springboot-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 clean package -fi - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-spring -g kotlin-spring -o samples/server/petstore/kotlin-springboot --additional-properties=library=spring-boot,beanValidations=true,swaggerAnnotations=true,serviceImplementation=true,serializableModel=true" - -echo "Cleaning previously generated files if any from samples/server/petstore/kotlin-springboot" -rm -rf samples/server/petstore/kotlin-springboot - -echo "Generating Kotling Spring Boot server..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/kotlin-vertx-server-petstore.sh b/bin/kotlin-vertx-server-petstore.sh deleted file mode 100755 index 7cfc82179c5..00000000000 --- a/bin/kotlin-vertx-server-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g kotlin-vertx -o samples/server/petstore/kotlin/vertx --additional-properties=modelMutable=false" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/lua-petstore.sh b/bin/lua-petstore.sh deleted file mode 100755 index 77e9589e85d..00000000000 --- a/bin/lua-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/lua -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g lua -o samples/client/petstore/lua --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/markdown-documentation-petstore.sh b/bin/markdown-documentation-petstore.sh deleted file mode 100755 index ce4c65035c0..00000000000 --- a/bin/markdown-documentation-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/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 -t modules/openapi-generator/src/main/resources/markdown-documentation -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g markdown -o samples/documentation/markdown $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/meta-codegen-kotlin.sh b/bin/meta-codegen-kotlin.sh index 347d8f76144..905334f5f9f 100755 --- a/bin/meta-codegen-kotlin.sh +++ b/bin/meta-codegen-kotlin.sh @@ -26,15 +26,15 @@ ags="meta -n myClientCodegen -t DOCUMENTATION -p com.my.company.codegen -o sampl java $JAVA_OPTS -jar $executable $ags if [ ! -f "${root}"samples/meta-codegen-kotlin/gradle/wrapper/gradle-wrapper.jar ]; then - (cd "${root}"/samples/meta-codegen-kotlin/ && gradle wrapper --gradle-version 5.6.2 --distribution-type bin) + (cd "${root}"/samples/meta-codegen-kotlin/ && gradle --no-daemon wrapper --gradle-version 5.6.2 --distribution-type bin) fi (cp "${root}"/samples/meta-codegen-kotlin/gradlew "${root}"/samples/meta-codegen-kotlin/lib/ && \ cp -R "${root}"/samples/meta-codegen-kotlin/gradle "${root}"/samples/meta-codegen-kotlin/lib/ && \ cd "${root}"/samples/meta-codegen-kotlin/lib && \ - ./gradlew shadowJar) + ./gradlew --no-daemon shadowJar) ags2="generate -g myClientCodegen -i modules/openapi-generator/src/test/resources/2_0/petstore.json -o samples/meta-codegen-kotlin/usage $@" -java $JAVA_OPTS -cp ${root}/samples/meta-codegen-kotlin/lib/build/libs/my-client-codegen-openapi-generator-1.0-SNAPSHOT-all.jar:$executable org.openapitools.codegen.OpenAPIGenerator $ags2 +java $JAVA_OPTS -cp ${root}/samples/meta-codegen-kotlin/lib/build/libs/my-client-codegen-openapi-generator-1.0-SNAPSHOT-all.jar:$executable org.openapitools.codegen.OpenAPIGenerator $ags2 \ No newline at end of file diff --git a/bin/meta-codegen.sh b/bin/meta-codegen.sh index f45875ea3ae..d2a05a0fe6a 100755 --- a/bin/meta-codegen.sh +++ b/bin/meta-codegen.sh @@ -9,6 +9,7 @@ declare root="$(cd "$cwd" && cd ../ && pwd)" executable="${root}/modules/openapi-generator-cli/target/openapi-generator-cli.jar" if [ ! -f "$executable" ]; then + echo "Rebuilding…" (cd "$root" && ./mvnw -B clean package) fi @@ -17,8 +18,8 @@ ags="meta -n myClientCodegen -t DOCUMENTATION -p com.my.company.codegen -o sampl java $JAVA_OPTS -jar $executable $ags -(cd "$root" && ./mvnw clean package -f samples/meta-codegen/pom.xml) +(cd "$root"/samples/meta-codegen/ && mvn -B package -Djacoco.skip=true -DskipTests=true -f pom.xml) ags2="generate -g myClientCodegen -i modules/openapi-generator/src/test/resources/2_0/petstore.json -o samples/meta-codegen/usage $@" -java $JAVA_OPTS -cp ${root}/samples/meta-codegen/lib/target/myClientCodegen-openapi-generator-1.0.0.jar:$executable org.openapitools.codegen.OpenAPIGenerator $ags2 +java $JAVA_OPTS -cp ${root}/samples/meta-codegen/lib/target/myClientCodegen-openapi-generator-1.0.0.jar:$executable org.openapitools.codegen.OpenAPIGenerator $ags2 \ No newline at end of file diff --git a/bin/mysql-schema-petstore.sh b/bin/mysql-schema-petstore.sh deleted file mode 100755 index ed35c12a07b..00000000000 --- a/bin/mysql-schema-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/mysql-schema -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g mysql-schema -o samples/schema/petstore/mysql $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/nancyfx-petstore-server-async.sh b/bin/nancyfx-petstore-server-async.sh deleted file mode 100755 index e39ed8f08cd..00000000000 --- a/bin/nancyfx-petstore-server-async.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/csharp-nancyfx -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g csharp-nancyfx -o samples/server/petstore/nancyfx-async --additional-properties packageGuid={768B8DC6-54EE-4D40-9B20-7857E1D742A4},asyncServer=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/nancyfx-petstore-server.sh b/bin/nancyfx-petstore-server.sh deleted file mode 100755 index 1556ada3c23..00000000000 --- a/bin/nancyfx-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/csharp-nancyfx -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g csharp-nancyfx -o samples/server/petstore/nancyfx --additional-properties packageGuid={768B8DC6-54EE-4D40-9B20-7857E1D742A4},asyncServer=false $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/nim-client-petstore.sh b/bin/nim-client-petstore.sh deleted file mode 100755 index 43eb2f3e3a5..00000000000 --- a/bin/nim-client-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -t modules/openapi-generator/src/main/resources/nim-client -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml --additional-properties packageName=petstore -g nim -o samples/client/petstore/nim" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/nodejs-express-petstore-server.sh b/bin/nodejs-express-petstore-server.sh deleted file mode 100755 index 436cedfd41c..00000000000 --- a/bin/nodejs-express-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/nodejs-express-server -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g nodejs-express-server -o samples/server/petstore/nodejs-express-server $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/objc-petstore-all.sh b/bin/objc-petstore-all.sh deleted file mode 100755 index ba79aee09d5..00000000000 --- a/bin/objc-petstore-all.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# default setting -./bin/objc-petstore.sh - -# coredata support -./bin/objc-petstore-coredata.sh - diff --git a/bin/objc-petstore-coredata.sh b/bin/objc-petstore-coredata.sh deleted file mode 100755 index ffa6d198822..00000000000 --- a/bin/objc-petstore-coredata.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/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 GENERATOR_GLOBALS="-DapiDocs=false -DmodelDocs=false" -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties ${GENERATOR_GLOBALS}" -ags="generate -t modules/openapi-generator/src/main/resources/objc -i modules/openapi-generator/src/test/resources/2_0/petstore.json -g objc -o samples/client/petstore/objc/core-data --additional-properties coreData=true -c bin/objc-petstore.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/objc-petstore.json b/bin/objc-petstore.json deleted file mode 100644 index 9cbfa58d39c..00000000000 --- a/bin/objc-petstore.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "classPrefix": "SWG", - "podName": "SwaggerClient" -} diff --git a/bin/objc-petstore.sh b/bin/objc-petstore.sh deleted file mode 100755 index 2ceee96867f..00000000000 --- a/bin/objc-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/objc -i modules/openapi-generator/src/test/resources/2_0/petstore.json -g objc -o samples/client/petstore/objc/default -c ./bin/objc-petstore.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/ocaml-petstore.sh b/bin/ocaml-petstore.sh deleted file mode 100755 index 1018d3c005f..00000000000 --- a/bin/ocaml-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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" - -args="generate -t modules/openapi-generator/src/main/resources/ocaml -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g ocaml -o samples/client/petstore/ocaml --additional-properties packageName=petstore_client $@" - -echo "java ${JAVA_OPTS} -jar ${executable} ${args}" -java $JAVA_OPTS -jar $executable $args diff --git a/bin/openapi3/android-petstore-all.sh b/bin/openapi3/android-petstore-all.sh deleted file mode 100755 index c01f0997041..00000000000 --- a/bin/openapi3/android-petstore-all.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -./bin/openapi3/android-petstore-httpclient.sh -./bin/openapi3/android-petstore-volley.sh - diff --git a/bin/openapi3/android-petstore-httpclient.sh b/bin/openapi3/android-petstore-httpclient.sh deleted file mode 100755 index a16ff89917a..00000000000 --- a/bin/openapi3/android-petstore-httpclient.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/android -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g android --additional-properties library=httpclient -o samples/client/petstore/android/httpclient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/android-petstore-volley.sh b/bin/openapi3/android-petstore-volley.sh deleted file mode 100755 index 43160c95c64..00000000000 --- a/bin/openapi3/android-petstore-volley.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g android -c bin/android-petstore-volley.json -o samples/client/petstore/android/volley $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/avro-petstore.sh b/bin/openapi3/avro-petstore.sh deleted file mode 100755 index 0098368e067..00000000000 --- a/bin/openapi3/avro-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/avro-schema -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g avro-schema -o samples/openapi3/schema/petstore/avro-schema $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/bash-petstore.sh b/bin/openapi3/bash-petstore.sh deleted file mode 100755 index d247da5b8a0..00000000000 --- a/bin/openapi3/bash-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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/bash -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g bash -o samples/client/petstore/bash -c modules/openapi-generator/src/test/resources/2_0/bash-config.json --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $args diff --git a/bin/openapi3/clojure-petstore.sh b/bin/openapi3/clojure-petstore.sh deleted file mode 100755 index 43e62b4005d..00000000000 --- a/bin/openapi3/clojure-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.json -g clojure -o samples/client/petstore/clojure $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/cpp-pistache-server-petstore.sh b/bin/openapi3/cpp-pistache-server-petstore.sh deleted file mode 100755 index 739bf59df94..00000000000 --- a/bin/openapi3/cpp-pistache-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 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 -g cpp-pistache-server -t modules/openapi-generator/src/main/resources/cpp-pistache-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o samples/server/petstore/cpp-pistache $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/cpp-qt5-petstore.sh b/bin/openapi3/cpp-qt5-petstore.sh deleted file mode 100755 index a5e0e94bd61..00000000000 --- a/bin/openapi3/cpp-qt5-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/cpp-qt5-client -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g cpp-qt5-client -o samples/client/petstore/cpp-qt5 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/cpp-qt5-qhttpengine-server-petstore.sh b/bin/openapi3/cpp-qt5-qhttpengine-server-petstore.sh deleted file mode 100755 index e93f5130fe6..00000000000 --- a/bin/openapi3/cpp-qt5-qhttpengine-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/cpp-qt5-qhttpengine-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g cpp-qt5-qhttpengine-server -o samples/client/petstore/cpp-qt5-qhttpengine-server $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/cpp-restbed-petstore-server.sh b/bin/openapi3/cpp-restbed-petstore-server.sh deleted file mode 100755 index e896e6dcd78..00000000000 --- a/bin/openapi3/cpp-restbed-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -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 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 -g cpp-restbed-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -o samples/server/petstore/cpp-restbed $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/cpp-tizen-petstore.sh b/bin/openapi3/cpp-tizen-petstore.sh deleted file mode 100755 index 75378d4a51a..00000000000 --- a/bin/openapi3/cpp-tizen-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/cpp-tizen-client -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g cpp-tizen -o samples/client/petstore/cpp-tizen $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/csharp-dotnet2-petstore.sh b/bin/openapi3/csharp-dotnet2-petstore.sh deleted file mode 100755 index 7b0aa62696e..00000000000 --- a/bin/openapi3/csharp-dotnet2-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g csharp-dotnet2 -o samples/client/petstore/csharp-dotnet2/OpenAPIClientTest/Lib/OpenAPIClient --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/csharp-petstore-net-standard.sh b/bin/openapi3/csharp-petstore-net-standard.sh deleted file mode 100755 index fff5b780e7b..00000000000 --- a/bin/openapi3/csharp-petstore-net-standard.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 csharp -o samples/client/petstore/csharp/OpenAPIClientNetStandard --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-standard.json" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/csharp-petstore.sh b/bin/openapi3/csharp-petstore.sh deleted file mode 100755 index 224d5ff207f..00000000000 --- a/bin/openapi3/csharp-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 csharp -o samples/openapi3/client/petstore/csharp/OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C}" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/csharp-property-changed-petstore.sh b/bin/openapi3/csharp-property-changed-petstore.sh deleted file mode 100755 index a3b11ad5697..00000000000 --- a/bin/openapi3/csharp-property-changed-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 csharp -o samples/client/petstore/csharp/OpenAPIClientWithPropertyChanged --additional-properties generatePropertyChanged=true --additional-properties optionalEmitDefaultValues=true --additional-properties packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5}" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/dart-petstore.sh b/bin/openapi3/dart-petstore.sh deleted file mode 100755 index 2bab8d1abac..00000000000 --- a/bin/openapi3/dart-petstore.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/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 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" - -# Generate non-browserClient -ags="generate -t modules/openapi-generator/src/main/resources/dart -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g dart -o samples/client/petstore/dart/openapi --additional-properties hideGenerationTimestamp=true,browserClient=false $@" - -# then options to generate the library for vm would be: -#ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g dart -o samples/client/petstore/dart/openapi_vm --additional-properties browserClient=false,pubName=openapi_vm $@" -#java $JAVA_OPTS -jar $executable $ags - -# Generate browserClient -ags="generate -t modules/openapi-generator/src/main/resources/dart -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g dart -o samples/client/petstore/dart/openapi-browser-client --additional-properties hideGenerationTimestamp=true,browserClient=true $@" -#java $JAVA_OPTS -jar $executable $ags - -# Generate non-browserClient and put it to the flutter sample app -ags="generate -t modules/openapi-generator/src/main/resources/dart -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g dart -o samples/client/petstore/dart/flutter_petstore/openapi --additional-properties hideGenerationTimestamp=true,browserClient=false $@" -java $JAVA_OPTS -jar $executable $ags - -# There is a proposal to allow importing different libraries depending on the environment: -# https://github.com/munificent/dep-interface-libraries -# When this is implemented there will only be one library. - -# The current petstore test will then work for both: the browser library and the vm library. - diff --git a/bin/openapi3/elixir-petstore.sh b/bin/openapi3/elixir-petstore.sh deleted file mode 100755 index 1ff5c13d32f..00000000000 --- a/bin/openapi3/elixir-petstore.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -# remove existing lib and model file -echo "removing existing lib, model files" -rm -Rf "samples/client/petstore/elixir/lib/swagger_petstore/model/" -rm -Rf "samples/client/petstore/elixir/lib/swagger_petstore/lib/" - -# 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/elixir -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g elixir -o samples/client/petstore/elixir/ $@" - -java $JAVA_OPTS -jar $executable $args diff --git a/bin/openapi3/elm.sh b/bin/openapi3/elm.sh deleted file mode 100755 index dd4b0cc2c42..00000000000 --- a/bin/openapi3/elm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/elm.yaml -g elm -t modules/openapi-generator/src/main/resources/elm -o samples/openapi3/client/elm --skip-validate-spec $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/finch-petstore-server.sh b/bin/openapi3/finch-petstore-server.sh deleted file mode 100755 index f6b4a46a42b..00000000000 --- a/bin/openapi3/finch-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 $@ -t modules/openapi-generator/src/main/resources/scala-finch -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-finch -o samples/server/petstore/scala-finch" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/flash-petstore.sh b/bin/openapi3/flash-petstore.sh deleted file mode 100755 index 04fe76bd695..00000000000 --- a/bin/openapi3/flash-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/flash -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g flash -o samples/client/petstore/flash -c bin/flash-petstore.json $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/go-experimental-petstore.sh b/bin/openapi3/go-experimental-petstore.sh deleted file mode 100755 index 901c8c62dc4..00000000000 --- a/bin/openapi3/go-experimental-petstore.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/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 - -#SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml" -# petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml is the same as the above file, with -# the addition of the HTTP signature security scheme. Ideally, this would have been directly added to -# petstore-with-fake-endpoints-models-for-testing.yaml, but this cannot be done until issue #5025 is resolved. -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml" -GENERATOR="go-experimental" -STUB_DIR="samples/openapi3/client/petstore/go-experimental/go-petstore" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/$GENERATOR -i $SPEC -g $GENERATOR -o $STUB_DIR" -ags="$ags --additional-properties enumClassPrefix=true,packageName=petstore" -ags="$ags $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/go-gin-petstore-server.sh b/bin/openapi3/go-gin-petstore-server.sh deleted file mode 100755 index 8ab2b8397e0..00000000000 --- a/bin/openapi3/go-gin-petstore-server.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml" -GENERATOR="go-gin-server" -STUB_DIR="samples/openapi3/server/petstore/go-gin-api-server" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/go-gin-server -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstoreserver --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags -#!/usr/bin/env bash \ No newline at end of file diff --git a/bin/openapi3/go-petstore-server.sh b/bin/openapi3/go-petstore-server.sh deleted file mode 100755 index 7909ec7d5db..00000000000 --- a/bin/openapi3/go-petstore-server.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/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 clean package -fi - -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml" -GENERATOR="go-server" -STUB_DIR="samples/openapi3/server/petstore/go-api-server" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/go-server -i $SPEC -g $GENERATOR -o $STUB_DIR --additional-properties packageName=petstoreserver,hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/go-petstore.sh b/bin/openapi3/go-petstore.sh deleted file mode 100755 index f67ecfbbb6d..00000000000 --- a/bin/openapi3/go-petstore.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/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 - -SPEC="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml" -GENERATOR="go" -STUB_DIR="samples/openapi3/client/petstore/go/go-petstore" - -echo "Removing files and folders under $STUB_DIR" -rm -rf $STUB_DIR - -# 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/go -i $SPEC -g $GENERATOR -o $STUB_DIR" -ags="$ags --additional-properties enumClassPrefix=true,packageName=petstore" -ags="$ags $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/graphql-nodejs-express-server.sh b/bin/openapi3/graphql-nodejs-express-server.sh deleted file mode 100755 index 41a69511601..00000000000 --- a/bin/openapi3/graphql-nodejs-express-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/graphql-nodejs-express-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g graphql-nodejs-express-server -o samples/server/petstore/graphql-nodejs-express-server --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/haskell-http-client-petstore.sh b/bin/openapi3/haskell-http-client-petstore.sh deleted file mode 100755 index 7eb116f540b..00000000000 --- a/bin/openapi3/haskell-http-client-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 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/haskell-http-client -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g haskell-http-client -o samples/client/petstore/haskell-http-client $@" - -echo "java ${JAVA_OPTS} -jar ${executable} ${args}" -java $JAVA_OPTS -jar $executable $args diff --git a/bin/openapi3/haskell-servant-petstore.sh b/bin/openapi3/haskell-servant-petstore.sh deleted file mode 100755 index 2b289a580c5..00000000000 --- a/bin/openapi3/haskell-servant-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/haskell-servant -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g haskell -o samples/server/petstore/haskell-servant $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/javascript-closure-angular.sh b/bin/openapi3/javascript-closure-angular.sh deleted file mode 100755 index a1a38da413e..00000000000 --- a/bin/openapi3/javascript-closure-angular.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g javascript-closure-angular -o samples/client/petstore/javascript-closure-angular $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/jaxrs-cxf-client-petstore.sh b/bin/openapi3/jaxrs-cxf-client-petstore.sh deleted file mode 100755 index edb3bfcf13a..00000000000 --- a/bin/openapi3/jaxrs-cxf-client-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 --artifact-id "jaxrs-cxf-petstore-client" -t modules/openapi-generator/src/main/resources/JavaJaxRS/cxf/ -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g jaxrs-cxf-client -o samples/client/petstore/jaxrs-cxf-client $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/jaxrs-jersey-petstore.sh b/bin/openapi3/jaxrs-jersey-petstore.sh deleted file mode 100755 index 8c541731166..00000000000 --- a/bin/openapi3/jaxrs-jersey-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 --artifact-id "openapiv3-jaxrs-jersey-petstore-server" -t modules/openapi-generator/src/main/resources/JavaJaxRS/ -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-jersey -o samples/server/petstore/jaxrs-jersey --additional-properties hideGenerationTimestamp=true,serverPort=8080 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-client-petstore-all.sh b/bin/openapi3/kotlin-client-petstore-all.sh deleted file mode 100755 index 951e2befa17..00000000000 --- a/bin/openapi3/kotlin-client-petstore-all.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - - -./bin/openapi3/kotlin-client-petstore.sh -./bin/openapi3/kotlin-client-petstore-multiplatform.sh -./bin/openapi3/kotlin-client-petstore-nullable-required.sh -./bin/openapi3/kotlin-client-petstore-retrofit2-coroutines.sh -./bin/openapi3/kotlin-client-petstore-retrofit2-rx.sh -./bin/openapi3/kotlin-client-petstore-retrofit2-rx2.sh diff --git a/bin/openapi3/kotlin-client-petstore-deprecated.sh b/bin/openapi3/kotlin-client-petstore-deprecated.sh deleted file mode 100644 index 8062ad9887b..00000000000 --- a/bin/openapi3/kotlin-client-petstore-deprecated.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 clean package -fi - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-deprecated -o samples/openapi3/client/petstore/kotlin-deprecated $@" - -echo "Cleaning previously generated files if any from samples/openapi3/client/petstore/kotlin-deprecated" -rm -rf samples/openapi3/client/petstore/kotlin-deprecated - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags \ No newline at end of file diff --git a/bin/openapi3/kotlin-client-petstore-multiplatform.sh b/bin/openapi3/kotlin-client-petstore-multiplatform.sh deleted file mode 100755 index 9ea03583944..00000000000 --- a/bin/openapi3/kotlin-client-petstore-multiplatform.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/openapi3/client/petstore/kotlin-multiplatform" - -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 -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-client-petstore-multiplatform --library multiplatform -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-client-petstore-nullable-required.sh b/bin/openapi3/kotlin-client-petstore-nullable-required.sh deleted file mode 100644 index a59f31ecb54..00000000000 --- a/bin/openapi3/kotlin-client-petstore-nullable-required.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/openapi3/client/petstore/kotlin-nullable-required" - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-nullable-required.yaml -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-nullable-required --additional-properties allowRequiredAsNullable=true -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags \ No newline at end of file diff --git a/bin/openapi3/kotlin-client-petstore-retrofit2-coroutines.sh b/bin/openapi3/kotlin-client-petstore-retrofit2-coroutines.sh deleted file mode 100755 index 0c45c5584df..00000000000 --- a/bin/openapi3/kotlin-client-petstore-retrofit2-coroutines.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/openapi3/client/petstore/kotlin-jvm-retrofit2-coroutines" - -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 -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-coroutines-client --library jvm-retrofit2 --additional-properties serializationLibrary=gson,dateLibrary=java8,serializableModel=true,useCoroutines=true -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-client-petstore-retrofit2-rx.sh b/bin/openapi3/kotlin-client-petstore-retrofit2-rx.sh deleted file mode 100755 index fef65a303b2..00000000000 --- a/bin/openapi3/kotlin-client-petstore-retrofit2-rx.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx" - -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 -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-rx-client --library jvm-retrofit2 --additional-properties serializationLibrary=gson,dateLibrary=java8,serializableModel=true,useRxJava=true -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-client-petstore-retrofit2-rx2.sh b/bin/openapi3/kotlin-client-petstore-retrofit2-rx2.sh deleted file mode 100755 index d6265f8fea9..00000000000 --- a/bin/openapi3/kotlin-client-petstore-retrofit2-rx2.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/openapi3/client/petstore/kotlin-jvm-retrofit2-rx2" - -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 -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-rx2-client --library jvm-retrofit2 --additional-properties serializationLibrary=gson,dateLibrary=java8,serializableModel=true,useRxJava2=true -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-client-petstore.sh b/bin/openapi3/kotlin-client-petstore.sh deleted file mode 100755 index a36d42599be..00000000000 --- a/bin/openapi3/kotlin-client-petstore.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 clean package -fi - -samplePath="samples/openapi3/client/petstore/kotlin" - -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 -t modules/openapi-generator/src/main/resources/kotlin-client -g kotlin --artifact-id kotlin-petstore-client --additional-properties dateLibrary=java8,serializableModel=true -o $samplePath $@" - -echo "Cleaning previously generated files if any from $samplePath" -rm -rf $samplePath - -echo "Generating Kotling client..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-springboot-petstore-all.sh b/bin/openapi3/kotlin-springboot-petstore-all.sh deleted file mode 100755 index 7aa4f697bbd..00000000000 --- a/bin/openapi3/kotlin-springboot-petstore-all.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./bin/openapi3/kotlin-springboot-petstore-server.sh -./bin/openapi3/kotlin-springboot-petstore-server-reactive.sh diff --git a/bin/openapi3/kotlin-springboot-petstore-server-reactive.sh b/bin/openapi3/kotlin-springboot-petstore-server-reactive.sh deleted file mode 100755 index f14abcd4242..00000000000 --- a/bin/openapi3/kotlin-springboot-petstore-server-reactive.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 clean package -fi - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-spring -g kotlin-spring -o samples/openapi3/server/petstore/kotlin-springboot-reactive --additional-properties=library=spring-boot,beanValidations=true,swaggerAnnotations=true,serviceImplementation=true,reactive=true" - -echo "Cleaning previously generated files if any from samples/server/openapi3/petstore/kotlin-springboot-reactive" -rm -rf samples/server/openapi3/petstore/kotlin-springboot-reactive - -echo "Generating Kotling Spring Boot server..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/kotlin-springboot-petstore-server.sh b/bin/openapi3/kotlin-springboot-petstore-server.sh deleted file mode 100755 index 8779e1a0412..00000000000 --- a/bin/openapi3/kotlin-springboot-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 clean package -fi - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -t modules/openapi-generator/src/main/resources/kotlin-spring -g kotlin-spring -o samples/openapi3/server/petstore/kotlin-springboot --additional-properties=library=spring-boot,beanValidations=true,swaggerAnnotations=true,serviceImplementation=true,serializableModel=true" - -echo "Cleaning previously generated files if any from samples/server/openapi3/petstore/kotlin-springboot" -rm -rf samples/server/openapi3/petstore/kotlin-springboot - -echo "Generating Kotling Spring Boot server..." -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/objc-petstore-coredata.sh b/bin/openapi3/objc-petstore-coredata.sh deleted file mode 100755 index ec36e2f510a..00000000000 --- a/bin/openapi3/objc-petstore-coredata.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/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 clean package -fi - -# if you've executed sbt assembly previously it will use that instead. -export GENERATOR_GLOBALS="-DapiDocs=false -DmodelDocs=false" -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties ${GENERATOR_GLOBALS}" -ags="generate -t modules/openapi-generator/src/main/resources/objc -i modules/openapi-generator/src/test/resources/3_0/petstore.json -g objc -o samples/client/petstore/objc/core-data --additional-properties coreData=true,appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/objc-petstore.sh b/bin/openapi3/objc-petstore.sh deleted file mode 100755 index 5840e39a450..00000000000 --- a/bin/openapi3/objc-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/objc -i modules/openapi-generator/src/test/resources/3_0/petstore.json -g objc -o samples/client/petstore/objc/default --additional-properties appName=PetstoreClient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/perl-petstore.sh b/bin/openapi3/perl-petstore.sh deleted file mode 100755 index 7707591647b..00000000000 --- a/bin/openapi3/perl-petstore.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/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 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" -# complex module name used for testing -ags="generate -t modules/openapi-generator/src/main/resources/perl -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g perl -o samples/client/petstore/perl --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-laravel-petstore.sh b/bin/openapi3/php-laravel-petstore.sh deleted file mode 100755 index 97d2061f57a..00000000000 --- a/bin/openapi3/php-laravel-petstore.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -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 - -# Make sure that the working directory is the root dir -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "${SCRIPT_DIR}/../" - -if [ ! -d "${APP_DIR}" ]; then - APP_DIR=`dirname "$SCRIPT"`/.. - APP_DIR=`cd "${APP_DIR}"; pwd` -fi - -# Make sure that we are regenerating the sample by removing any existing target directory -TARGET_DIR="$SCRIPT_DIR/../../samples/server/petstore/php-laravel" -if [ -d "$TARGET_DIR" ]; then - rm -rf $TARGET_DIR -fi - -executable="$SCRIPT_DIR/../../modules/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t $SCRIPT_DIR/../../modules/openapi-generator/src/main/resources/php-laravel -i $SCRIPT_DIR/../../modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php-laravel -o $TARGET_DIR $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-lumen-petstore-server.sh b/bin/openapi3/php-lumen-petstore-server.sh deleted file mode 100755 index 5b599415c70..00000000000 --- a/bin/openapi3/php-lumen-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/php-lumen -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-lumen -o samples/server/petstore/php-lumen $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-petstore.sh b/bin/openapi3/php-petstore.sh deleted file mode 100755 index 18ab1224ee4..00000000000 --- a/bin/openapi3/php-petstore.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/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 clean package -fi - -# cleanup tests -TEST_DIR="./samples/openapi3/client/petstore/php/OpenAPIClient-php/test" -if [ -d $TEST_DIR ]; then - rm -rf $TEST_DIR -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/php -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php -o samples/openapi3/client/petstore/php/OpenAPIClient-php $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-silex-petstore-server.sh b/bin/openapi3/php-silex-petstore-server.sh deleted file mode 100755 index f3c33d37ec2..00000000000 --- a/bin/openapi3/php-silex-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/php-silex -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php-silex-deprecated -o samples/server/petstore/php-silex/OpenAPIServer $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-slim-server-petstore.sh b/bin/openapi3/php-slim-server-petstore.sh deleted file mode 100755 index e497f4f027f..00000000000 --- a/bin/openapi3/php-slim-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/php-slim-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php-slim-deprecated -o samples/server/petstore/php-slim $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-slim4-server-petstore.sh b/bin/openapi3/php-slim4-server-petstore.sh deleted file mode 100755 index 904c4675b3f..00000000000 --- a/bin/openapi3/php-slim4-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/php-slim4-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php-slim4 -o samples/server/petstore/php-slim4 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-symfony-petstore.sh b/bin/openapi3/php-symfony-petstore.sh deleted file mode 100755 index 8c6ce35bd0b..00000000000 --- a/bin/openapi3/php-symfony-petstore.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -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 - -# Make sure that the working directory is the root dir -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "${SCRIPT_DIR}/../" - -if [ ! -d "${APP_DIR}" ]; then - APP_DIR=`dirname "$SCRIPT"`/.. - APP_DIR=`cd "${APP_DIR}"; pwd` -fi - -# Make sure that we are regenerating the sample by removing any existing target directory -TARGET_DIR="$SCRIPT_DIR/../../samples/openapi3/server/petstore/php-symfony/SymfonyBundle-php" -if [ -d "$TARGET_DIR" ]; then - rm -rf $TARGET_DIR -fi - -executable="$SCRIPT_DIR/../../modules/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t $SCRIPT_DIR/../../modules/openapi-generator/src/main/resources/php-symfony -i $SCRIPT_DIR/../../modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g php-symfony -o $TARGET_DIR $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/php-ze-ph-petstore-server.sh b/bin/openapi3/php-ze-ph-petstore-server.sh deleted file mode 100644 index 5b92d013109..00000000000 --- a/bin/openapi3/php-ze-ph-petstore-server.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 - -input=modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -out_folder=samples/openapi3/server/petstore/php-ze-ph -resources=modules/openapi-generator/src/main/resources/php-ze-ph - -# 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 $resources -i $input -g php-ze-ph -o $out_folder $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/plantuml-documentation-petstore.sh b/bin/openapi3/plantuml-documentation-petstore.sh deleted file mode 100644 index 61bdfbbcb4a..00000000000 --- a/bin/openapi3/plantuml-documentation-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g plantuml -o samples/documentation/petstore/plantuml" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/openapi3/python-experimental-petstore.sh b/bin/openapi3/python-experimental-petstore.sh deleted file mode 100755 index 20d0595485c..00000000000 --- a/bin/openapi3/python-experimental-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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 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" -#yaml="modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml" -yaml="modules/openapi-generator/src/test/resources/3_0/python-experimental/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml" -ags="generate -t modules/openapi-generator/src/main/resources/python -i $yaml -g python-experimental -o samples/openapi3/client/petstore/python-experimental/ --additional-properties packageName=petstore_api $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/python-flask-petstore-python2.sh b/bin/openapi3/python-flask-petstore-python2.sh deleted file mode 100755 index b9afa34fcd6..00000000000 --- a/bin/openapi3/python-flask-petstore-python2.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/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 clean package -fi - -# if you've executed sbt assembly previously it will use that instead. -input=modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml -out_folder=samples/openapi3/server/petstore/python-flask-python2 -resources=modules/openapi-generator/src/main/resources/python-flask - -# 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 $resources -i $input -g python-flask -o $out_folder -c bin/supportPython2.json $@" - -rm -rf $out_folder/.openapi* -rm -rf $out_folder/openapi_server -rm $out_folder/.dockerignore -rm $out_folder/.gitignore -rm $out_folder/.travis.yml -rm $out_folder/Dockerfile -rm $out_folder/git_push.sh -rm $out_folder/README.md -rm $out_folder/requirements.txt -rm $out_folder/setup.py -rm $out_folder/test-requirements.txt -rm $out_folder/tox.ini - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/python-flask-petstore.sh b/bin/openapi3/python-flask-petstore.sh deleted file mode 100755 index 6b0f03aa3d2..00000000000 --- a/bin/openapi3/python-flask-petstore.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/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 clean package -fi - -# if you've executed sbt assembly previously it will use that instead. -input=modules/openapi-generator/src/test/resources/3_0/petstore-with-object-as-parameter.yaml -out_folder=samples/openapi3/server/petstore/python-flask -resources=modules/openapi-generator/src/main/resources/python-flask - -# 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 python-flask -o $out_folder $@" - -rm -rf $out_folder/.openapi* -rm -rf $out_folder/openapi_server -rm $out_folder/.dockerignore -rm $out_folder/.gitignore -rm $out_folder/.travis.yml -rm $out_folder/Dockerfile -rm $out_folder/git_push.sh -rm $out_folder/README.md -rm $out_folder/requirements.txt -rm $out_folder/setup.py -rm $out_folder/test-requirements.txt -rm $out_folder/tox.ini - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/python-petstore.sh b/bin/openapi3/python-petstore.sh deleted file mode 100755 index c1dce94f9c2..00000000000 --- a/bin/openapi3/python-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g python -o samples/openapi3/client/petstore/python/ --additional-properties packageName=petstore_api $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/r-petstore.sh b/bin/openapi3/r-petstore.sh deleted file mode 100755 index 9ca5ed61d00..00000000000 --- a/bin/openapi3/r-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/r -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g r -o samples/client/petstore/R --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/run-all-petstore b/bin/openapi3/run-all-petstore deleted file mode 100755 index 4ee75b99f62..00000000000 --- a/bin/openapi3/run-all-petstore +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# this bash script will loop through all the .sh files under bin -# execute the script and check the result (exit code) to see if -# there's any error - -echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) only. There's no need to run this script to update Petstore samples for all generators." -echo "Please press CTRL+C to stop or the script will continue in 10 seconds." - -sleep 10 - -successes=0 -failures=0 -export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" -for SCRIPT in $(ls -l ./bin/openapi3/*.sh | grep -v all) -do - if [ -f ${SCRIPT} -a -x ${SCRIPT} ]; then - echo "Running $SCRIPT (output to /dev/null)" - ${SCRIPT} 2>&1 > /dev/null - rc=$? - if [[ ${rc} != 0 ]]; then - >&2 echo "ERROR!! FAILED TO RUN ${SCRIPT}" - ((failures+=1)) - else - ((successes+=1)) - fi - fi -done - -if (( failures > 0 )); then - >&2 echo "[ERROR] ${failures} out of $((failures+successes)) scripts failed." - exit 1 -else - echo "[SUCCESS] ${successes} generators finished." -fi diff --git a/bin/openapi3/rust-petstore.sh b/bin/openapi3/rust-petstore.sh deleted file mode 100755 index a4812fc9093..00000000000 --- a/bin/openapi3/rust-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/rust -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g rust -o samples/client/petstore/rust --additional-properties packageName=petstore_client $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/openapi3/typescript-angular-petstore-all.sh b/bin/openapi3/typescript-angular-petstore-all.sh deleted file mode 100755 index bb0d6d2479c..00000000000 --- a/bin/openapi3/typescript-angular-petstore-all.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/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 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" - -echo "Typescript Petstore API client (default)" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v2/default --additional-properties ngVersion=2 $@" -java $JAVA_OPTS -jar $executable $ags - -echo "Typescript Petstore API client (npm setting)" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v2/npm --additional-properties ngVersion=2 $@" -java $JAVA_OPTS -jar $executable $ags - -echo "Typescript Petstore API client (with interfaces generated)" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v2/with-interfaces --additional-properties ngVersion=2,withInterfaces=true $@" -java $JAVA_OPTS -jar $executable $ags - -echo "Typescript Petstore API client (v4 { Adding InjectionToken Over OpaqueToken })" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v4/npm --additional-properties ngVersion=4 $@" -java $JAVA_OPTS -jar $executable $ags - -echo "Typescript Petstore API client (v4.3 { Adding HttpClientModule over HttpModule })" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v4.3/npm --additional-properties ngVersion=4.3 $@" -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-angular-v2-petstore-interfaces.sh b/bin/openapi3/typescript-angular-v2-petstore-interfaces.sh deleted file mode 100755 index 3d74ccc1a95..00000000000 --- a/bin/openapi3/typescript-angular-v2-petstore-interfaces.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v2/with-interfaces --additional-properties ngVersion=2,withInterfaces=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-angular-v2-petstore-with-npm.sh b/bin/openapi3/typescript-angular-v2-petstore-with-npm.sh deleted file mode 100755 index 0bb15f5e72e..00000000000 --- a/bin/openapi3/typescript-angular-v2-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v2/npm --additional-properties ngVersion=2 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-angular-v2-petstore.sh b/bin/openapi3/typescript-angular-v2-petstore.sh deleted file mode 100755 index f495ce2b1f1..00000000000 --- a/bin/openapi3/typescript-angular-v2-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v2/default --additional-properties ngVersion=2 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-angular-v4-petstore-with-npm.sh b/bin/openapi3/typescript-angular-v4-petstore-with-npm.sh deleted file mode 100755 index da00def7a00..00000000000 --- a/bin/openapi3/typescript-angular-v4-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v4/npm --additional-properties ngVersion=4 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-angular-v4.3-petstore-with-npm.sh b/bin/openapi3/typescript-angular-v4.3-petstore-with-npm.sh deleted file mode 100755 index 82de2c52ae3..00000000000 --- a/bin/openapi3/typescript-angular-v4.3-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-angular -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-angular-v4.3/npm --additional-properties ngVersion=4.3 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-angularjs-petstore.sh b/bin/openapi3/typescript-angularjs-petstore.sh deleted file mode 100755 index b0e617e5883..00000000000 --- a/bin/openapi3/typescript-angularjs-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-angularjs -o samples/client/petstore/typescript-angularjs $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-aurelia-petstore.sh b/bin/openapi3/typescript-aurelia-petstore.sh deleted file mode 100755 index a5cee045ab2..00000000000 --- a/bin/openapi3/typescript-aurelia-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-aurelia -o samples/client/petstore/typescript-aurelia/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-fetch-petstore-all.sh b/bin/openapi3/typescript-fetch-petstore-all.sh deleted file mode 100755 index c052045b106..00000000000 --- a/bin/openapi3/typescript-fetch-petstore-all.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -./bin/openapi3/typescript-fetch-petstore-target-es6.sh -./bin/openapi3/typescript-fetch-petstore-with-npm-version.sh -./bin/openapi3/typescript-fetch-petstore-interfaces.sh -./bin/openapi3/typescript-fetch-petstore.sh -./bin/openapi3/typescript-fetch-petstore-prefix-parameter-interfaces.sh diff --git a/bin/openapi3/typescript-fetch-petstore-interfaces.sh b/bin/openapi3/typescript-fetch-petstore-interfaces.sh deleted file mode 100755 index d1e21dfbca7..00000000000 --- a/bin/openapi3/typescript-fetch-petstore-interfaces.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-fetch -o samples/client/petstore/typescript-fetch/builds/with-interfaces --additional-properties withInterfaces=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-fetch-petstore-prefix-parameter-interfaces.sh b/bin/openapi3/typescript-fetch-petstore-prefix-parameter-interfaces.sh deleted file mode 100755 index b4f24da6532..00000000000 --- a/bin/openapi3/typescript-fetch-petstore-prefix-parameter-interfaces.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-fetch -o samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces --additional-properties prefixParameterInterfaces=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-fetch-petstore-target-es6.sh b/bin/openapi3/typescript-fetch-petstore-target-es6.sh deleted file mode 100755 index 1d452572baa..00000000000 --- a/bin/openapi3/typescript-fetch-petstore-target-es6.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-target-es6.json -o samples/client/petstore/typescript-fetch/builds/es6-target $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-fetch-petstore-with-npm-version.sh b/bin/openapi3/typescript-fetch-petstore-with-npm-version.sh deleted file mode 100755 index 477c36e9bc0..00000000000 --- a/bin/openapi3/typescript-fetch-petstore-with-npm-version.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-with-npm-version.json -o samples/client/petstore/typescript-fetch/builds/with-npm-version $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-fetch-petstore.sh b/bin/openapi3/typescript-fetch-petstore.sh deleted file mode 100755 index 90d3062bd01..00000000000 --- a/bin/openapi3/typescript-fetch-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-fetch -o samples/client/petstore/typescript-fetch/builds/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-inversify-petstore.sh b/bin/openapi3/typescript-inversify-petstore.sh deleted file mode 100755 index 2dec4414c9f..00000000000 --- a/bin/openapi3/typescript-inversify-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-inversify -o samples/client/petstore/typescript-inversify $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-jquery-petstore-all.sh b/bin/openapi3/typescript-jquery-petstore-all.sh deleted file mode 100755 index 7320a518c2f..00000000000 --- a/bin/openapi3/typescript-jquery-petstore-all.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 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" - -echo "Typescript Petstore API client (default)" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-jquery -o samples/client/petstore/typescript-jquery/default $@" -java $JAVA_OPTS -jar $executable $ags - -echo "Typescript Petstore API client (npm setting)" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-jquery -c bin/typescript-jquery-petstore-npm.json -o samples/client/petstore/typescript-jquery/npm $@" -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-jquery-petstore-with-npm.sh b/bin/openapi3/typescript-jquery-petstore-with-npm.sh deleted file mode 100755 index 2aee5b82bcc..00000000000 --- a/bin/openapi3/typescript-jquery-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-jquery -c bin/typescript-jquery-petstore-npm.json -o samples/client/petstore/typescript-jquery/npm $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-jquery-petstore.sh b/bin/openapi3/typescript-jquery-petstore.sh deleted file mode 100755 index 2054fecfee6..00000000000 --- a/bin/openapi3/typescript-jquery-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-jquery -o samples/client/petstore/typescript-jquery/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-node-petstore-all.sh b/bin/openapi3/typescript-node-petstore-all.sh deleted file mode 100755 index 5597a52c587..00000000000 --- a/bin/openapi3/typescript-node-petstore-all.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/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 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" - -echo "Typescript node Petstore API client (default setting)" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-node -o samples/client/petstore/typescript-node/default $@" -java $JAVA_OPTS -jar $executable $ags - -echo "Typescript node Petstore API client with npm setting" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-node -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-node/npm $@" -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-node-petstore-with-npm.sh b/bin/openapi3/typescript-node-petstore-with-npm.sh deleted file mode 100755 index a1b4b8c9082..00000000000 --- a/bin/openapi3/typescript-node-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-node -c bin/typescript-petstore-npm.json -o samples/client/petstore/typescript-node/npm $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/typescript-node-petstore.sh b/bin/openapi3/typescript-node-petstore.sh deleted file mode 100755 index 45a6eec7016..00000000000 --- a/bin/openapi3/typescript-node-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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.yaml -g typescript-node -o samples/client/petstore/typescript-node/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/openapi3/windows/csharp-netcore-petstore-netcore.bat b/bin/openapi3/windows/csharp-netcore-petstore-netcore.bat deleted file mode 100644 index 7d5454a1891..00000000000 --- a/bin/openapi3/windows/csharp-netcore-petstore-netcore.bat +++ /dev/null @@ -1,14 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples\openapi3\client\petstore\csharp-netcore\OpenAPIClientCore --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true,targetFramework=netcoreapp2.0 - -java %JAVA_OPTS% -jar %executable% %ags% - -REM restore csproj file -echo "restore csproject file: CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj" -copy /b/v/y CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\openapi3\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\ diff --git a/bin/openapi3/windows/csharp-netcore-petstore.bat b/bin/openapi3/windows/csharp-netcore-petstore.bat deleted file mode 100644 index e99d5ab4a4f..00000000000 --- a/bin/openapi3/windows/csharp-netcore-petstore.bat +++ /dev/null @@ -1,14 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples\openapi3\client\petstore\csharp-netcore\OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true - -java %JAVA_OPTS% -jar %executable% %ags% - -REM restore csproj file -echo "restore csproject file: CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj" -copy /b/v/y CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\openapi3\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\ diff --git a/bin/openapi3/windows/csharp-petstore.bat b/bin/openapi3/windows/csharp-petstore.bat deleted file mode 100755 index 5e8de764dc2..00000000000 --- a/bin/openapi3/windows/csharp-petstore.bat +++ /dev/null @@ -1,14 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test/resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples\openapi3\client\petstore\csharp\SwaggerClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} - -java %JAVA_OPTS% -jar %executable% %ags% - -REM restore csproj file -echo "restore csproject file: CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj" -copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\openapi3\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\ diff --git a/bin/openapi3/windows/kotlin-client-deprecated.bat b/bin/openapi3/windows/kotlin-client-deprecated.bat deleted file mode 100644 index f12a5178e4e..00000000000 --- a/bin/openapi3/windows/kotlin-client-deprecated.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-depreacted-fields.yaml -g kotlin --artifact-id "kotlin-petstore-deprecated" -o samples\openapi3\client\petstore\kotlin-deprecated - -java %JAVA_OPTS% -jar %executable% %ags% \ No newline at end of file diff --git a/bin/openapi3/windows/kotlin-client-nullable-required.bat b/bin/openapi3/windows/kotlin-client-nullable-required.bat deleted file mode 100644 index dd7bf0d16a7..00000000000 --- a/bin/openapi3/windows/kotlin-client-nullable-required.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-nullable-required.yaml -g kotlin --artifact-id "kotlin-petstore-nullable-required" --additional-properties allowRequiredAsNullable=true -o samples\openapi3\client\petstore\kotlin-nullable-required - -java %JAVA_OPTS% -jar %executable% %ags% \ No newline at end of file diff --git a/bin/openapi3/windows/kotlin-springboot-petstore-server.bat b/bin/openapi3/windows/kotlin-springboot-petstore-server.bat deleted file mode 100644 index 0f557f0cb33..00000000000 --- a/bin/openapi3/windows/kotlin-springboot-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g kotlin-spring -o samples\openapi3\server\petstore\kotlin-springboot --additional-properties=library=spring-boot - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/openapi3/windows/nodejs-express-server-petstore.bat b/bin/openapi3/windows/nodejs-express-server-petstore.bat deleted file mode 100755 index 73cf61835f0..00000000000 --- a/bin/openapi3/windows/nodejs-express-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g nodejs-express-server -o samples\openapi3\server\petstore\nodejs-express-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/openapi3/windows/php-petstore.bat b/bin/openapi3/windows/php-petstore.bat deleted file mode 100644 index edd5e5c45ea..00000000000 --- a/bin/openapi3/windows/php-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php -o samples\openapi3\client\petstore\php\OpenAPIClient-php - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/openapi3/windows/plantuml-documentation-petstore.bat b/bin/openapi3/windows/plantuml-documentation-petstore.bat deleted file mode 100644 index 8928568143e..00000000000 --- a/bin/openapi3/windows/plantuml-documentation-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "plantuml-petstore-documentation" -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g plantuml -o samples\documentation\petstore\plantuml - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/openapi3/windows/python-experimental-petstore.bat b/bin/openapi3/windows/python-experimental-petstore.bat deleted file mode 100644 index 29c097a5572..00000000000 --- a/bin/openapi3/windows/python-experimental-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml -g python-experimental -o samples\openapi3\client\petstore\python-experimental --additional-properties packageName=petstore_api - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/openapi3/windows/r-petstore.bat b/bin/openapi3/windows/r-petstore.bat deleted file mode 100755 index 6dac7327f39..00000000000 --- a/bin/openapi3/windows/r-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g r -o samples\client\petstore\R - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/openapi3/windows/run-all-petstore.cmd b/bin/openapi3/windows/run-all-petstore.cmd deleted file mode 100644 index 1e5c0fb4ed8..00000000000 --- a/bin/openapi3/windows/run-all-petstore.cmd +++ /dev/null @@ -1,15 +0,0 @@ -REM this batch file will loop through all the .bat files under bin\openapi3\windows\ -REM execute the script and check the error level to see if there's any error - -echo IMPORTANT: this script should be run by the CI (e.g. appveyor) only. There's no need to run this script to update Petstore samples for all generators. -echo Please press CTRL+C to stop or the script will continue in 10 seconds. - -timeout 10 - -for /f "delims=" %%i in ('dir /b ".\bin\openapi3\windows\*.bat"') do ( - - CALL .\bin\openapi3\windows\%%i - - IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 exit /b 1 - -) diff --git a/bin/openapi3/windows/scala-sttp-petstore.bat b/bin/openapi3/windows/scala-sttp-petstore.bat deleted file mode 100755 index 3aaf98462a8..00000000000 --- a/bin/openapi3/windows/scala-sttp-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "scala-sttp-petstore" -t modules\openapi-generator\src\main\resources\scala-sttp -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g scala-sttp -o samples\openapi3\client\petstore\scala-sttp - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/perl-deep-module-petstore.sh b/bin/perl-deep-module-petstore.sh deleted file mode 100755 index 8e47a7d3b82..00000000000 --- a/bin/perl-deep-module-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/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" -# complex module name used for testing -ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g perl -o samples/client/petstore/perl/deep_module_test --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags --additional-properties moduleName=Something::Deep -o samples/client/petstore/perl/deep_module_test diff --git a/bin/perl-petstore-all.sh b/bin/perl-petstore-all.sh deleted file mode 100755 index 084857fa28c..00000000000 --- a/bin/perl-petstore-all.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -./bin/perl-petstore.sh -./bin/perl-deep-module-petstore.sh - diff --git a/bin/perl-petstore.sh b/bin/perl-petstore.sh deleted file mode 100755 index 48974454b73..00000000000 --- a/bin/perl-petstore.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/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" -# complex module name used for testing -ags="generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g perl -o samples/client/petstore/perl --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-laravel-petstore-server.sh b/bin/php-laravel-petstore-server.sh deleted file mode 100755 index 6b13f6c5404..00000000000 --- a/bin/php-laravel-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/php-laravel -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-laravel -o samples/server/petstore/php-laravel $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-lumen-petstore-server.sh b/bin/php-lumen-petstore-server.sh deleted file mode 100755 index 3f940bd34ae..00000000000 --- a/bin/php-lumen-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/php-lumen -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-lumen -o samples/server/petstore/php-lumen $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-petstore.sh b/bin/php-petstore.sh deleted file mode 100755 index d15e004a1ae..00000000000 --- a/bin/php-petstore.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/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 - -# cleanup tests -TEST_DIR="./samples/client/petstore/php/OpenAPIClient-php/test" -if [ -d $TEST_DIR ]; then - rm -rf $TEST_DIR -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/php -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php -o samples/client/petstore/php/OpenAPIClient-php $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-silex-petstore-server.sh b/bin/php-silex-petstore-server.sh deleted file mode 100755 index c3f97b70237..00000000000 --- a/bin/php-silex-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/php-silex -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g php-silex-deprecated -o samples/server/petstore/php-silex/OpenAPIServer $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-slim-server-petstore.sh b/bin/php-slim-server-petstore.sh deleted file mode 100755 index b26b0589595..00000000000 --- a/bin/php-slim-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/php-slim-server -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-slim-deprecated -o samples/server/petstore/php-slim $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-slim4-server-petstore.sh b/bin/php-slim4-server-petstore.sh deleted file mode 100755 index a87ebbcc7ac..00000000000 --- a/bin/php-slim4-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/php-slim4-server -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g php-slim4 -o samples/server/petstore/php-slim4 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-symfony-petstore.sh b/bin/php-symfony-petstore.sh deleted file mode 100755 index 44a46239a2f..00000000000 --- a/bin/php-symfony-petstore.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -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 - -# Make sure that the working directory is the root dir -SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -cd "${SCRIPT_DIR}/../" - -if [ ! -d "${APP_DIR}" ]; then - APP_DIR=`dirname "$SCRIPT"`/.. - APP_DIR=`cd "${APP_DIR}"; pwd` -fi - -# Make sure that we are regenerating the sample by removing any existing target directory -TARGET_DIR="$SCRIPT_DIR/../samples/server/petstore/php-symfony/SymfonyBundle-php" -if [ -d "$TARGET_DIR" ]; then - rm -rf $TARGET_DIR -fi - -executable="$SCRIPT_DIR/../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 -t $SCRIPT_DIR/../modules/openapi-generator/src/main/resources/php-symfony -i $SCRIPT_DIR/../modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g php-symfony -o $TARGET_DIR $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/php-ze-ph-petstore-server.sh b/bin/php-ze-ph-petstore-server.sh deleted file mode 100755 index 371e65fe46f..00000000000 --- a/bin/php-ze-ph-petstore-server.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/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 - -input=modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -out_folder=samples/server/petstore/php-ze-ph -resources=modules/openapi-generator/src/main/resources/php-ze-ph - -# 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 $resources -i $input -g php-ze-ph -o $out_folder $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/plantuml-documentation-petstore.sh b/bin/plantuml-documentation-petstore.sh deleted file mode 100755 index 82740590056..00000000000 --- a/bin/plantuml-documentation-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="$@ generate -t modules/openapi-generator/src/main/resources/plantuml -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g plantuml -o samples/documentation/petstore/plantuml" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/powershell-config.json b/bin/powershell-config.json deleted file mode 100644 index 72db80af89d..00000000000 --- a/bin/powershell-config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "skipFormModel": true -} diff --git a/bin/powershell-petstore.sh b/bin/powershell-petstore.sh deleted file mode 100755 index 264e58d9f5b..00000000000 --- a/bin/powershell-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/3_0/powershell/petstore.yaml -g powershell -o samples/client/petstore/powershell --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} diff --git a/bin/protobuf-schema-petstore.sh b/bin/protobuf-schema-petstore.sh deleted file mode 100755 index 09b132ad26b..00000000000 --- a/bin/protobuf-schema-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/protobuf-schema -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g protobuf-schema -o samples/config/petstore/protobuf-schema --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-asyncio-petstore.sh b/bin/python-asyncio-petstore.sh deleted file mode 100755 index 4219e51927e..00000000000 --- a/bin/python-asyncio-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g python -o samples/client/petstore/python-asyncio --additional-properties packageName=petstore_api --library asyncio $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-experimental-petstore.sh b/bin/python-experimental-petstore.sh deleted file mode 100755 index 8a64ca98898..00000000000 --- a/bin/python-experimental-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/2_0/python-client-experimental/petstore-with-fake-endpoints-models-for-testing.yaml -g python-experimental -o samples/client/petstore/python-experimental --additional-properties packageName=petstore_api --additional-properties disallowAdditionalPropertiesIfNotPresent=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-petstore-all.sh b/bin/python-petstore-all.sh deleted file mode 100755 index 86c179eaa0d..00000000000 --- a/bin/python-petstore-all.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -# update python petstore clients - -./bin/python-asyncio-petstore.sh -./bin/python-petstore.sh -./bin/python-experimental-petstore.sh -./bin/python-tornado-petstore.sh diff --git a/bin/python-petstore.sh b/bin/python-petstore.sh deleted file mode 100755 index 651fda1e721..00000000000 --- a/bin/python-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g python -o samples/client/petstore/python --additional-properties packageName=petstore_api $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-server-aiohttp-petstore.sh b/bin/python-server-aiohttp-petstore.sh deleted file mode 100755 index f5cc9bc711b..00000000000 --- a/bin/python-server-aiohttp-petstore.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/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 -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 $@" - -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 diff --git a/bin/python-server-aiohttp-srclayout-petstore.sh b/bin/python-server-aiohttp-srclayout-petstore.sh deleted file mode 100755 index 126e2d9fcc1..00000000000 --- a/bin/python-server-aiohttp-srclayout-petstore.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/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 diff --git a/bin/python-server-all.sh b/bin/python-server-all.sh deleted file mode 100755 index c4fa204d1c6..00000000000 --- a/bin/python-server-all.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/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 diff --git a/bin/python-server-blueplanet-petstore.sh b/bin/python-server-blueplanet-petstore.sh deleted file mode 100755 index bf2bfe771d7..00000000000 --- a/bin/python-server-blueplanet-petstore.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/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-blueplanet -input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml -out_folder=samples/server/petstore/$generator -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 $@" - -rm -rf $out_folder/.openapi* -rm -rf $out_folder/openapi_server -rm -rf $out_folder/tests* -rm -f $out_folder/README.md -rm -f $out_folder/requirements.txt -rm -f $out_folder/test-requirements.txt - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-server-flask-petstore-python2.sh b/bin/python-server-flask-petstore-python2.sh deleted file mode 100755 index f720fd5d4f4..00000000000 --- a/bin/python-server-flask-petstore-python2.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/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-flask -input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml -out_folder=samples/server/petstore/$generator-python2 -resources=modules/openapi-generator/src/main/resources/$generator - -export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -t $resources -i $input -g $generator -o $out_folder -c bin/supportPython2.json $@" - -rm -rf $out_folder/.openapi* -rm -rf $out_folder/openapi_server -rm $out_folder/.dockerignore -rm $out_folder/.gitignore -rm $out_folder/.travis.yml -rm $out_folder/Dockerfile -rm $out_folder/git_push.sh -rm $out_folder/README.md -rm $out_folder/requirements.txt -rm $out_folder/setup.py -rm $out_folder/test-requirements.txt -rm $out_folder/tox.ini - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-server-flask-petstore.sh b/bin/python-server-flask-petstore.sh deleted file mode 100755 index eead0ce0d4f..00000000000 --- a/bin/python-server-flask-petstore.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/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-flask -input=modules/openapi-generator/src/test/resources/2_0/petstore.yaml -out_folder=samples/server/petstore/$generator -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 $@" - -rm -rf $out_folder/.openapi* -rm -rf $out_folder/openapi_server -rm $out_folder/.dockerignore -rm $out_folder/.gitignore -rm $out_folder/.travis.yml -rm $out_folder/Dockerfile -rm $out_folder/git_push.sh -rm $out_folder/README.md -rm $out_folder/requirements.txt -rm $out_folder/setup.py -rm $out_folder/test-requirements.txt -rm $out_folder/tox.ini - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/python-tornado-petstore.sh b/bin/python-tornado-petstore.sh deleted file mode 100755 index 1d51e798fe9..00000000000 --- a/bin/python-tornado-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/python -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g python -o samples/client/petstore/python-tornado --additional-properties packageName=petstore_api --library tornado $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/r-petstore.sh b/bin/r-petstore.sh deleted file mode 100755 index 4decf28f72f..00000000000 --- a/bin/r-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/r -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g r -o samples/client/petstore/R --additional-properties packageName=petstore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/ruby-client-petstore-faraday.sh b/bin/ruby-client-petstore-faraday.sh deleted file mode 100755 index 3a8afdd28d1..00000000000 --- a/bin/ruby-client-petstore-faraday.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/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 clean package -fi - -# purge lib/doc folder -echo "purge ruby petstore lib, docs folder" -rm -Rf samples/client/petstore/ruby-faraday/lib -rm -Rf samples/client/petstore/ruby-faraday/docs - -# purge test files other than integration test -# NOTE: spec/custom/*.rb and spec/petstore_helper.rb are not generated files -echo "purge ruby petstore spec" -find samples/client/petstore/ruby-faraday/spec -type d -not -name spec -not -name custom | xargs rm -Rf -find samples/client/petstore/ruby-faraday/spec -type f -not -name petstore_helper.rb -not -iwholename '*/spec/custom/*' | xargs rm -Rf - -# 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/ruby-client -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ruby -c bin/ruby-petstore-faraday.json -o samples/client/petstore/ruby-faraday --additional-properties skipFormModel=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/ruby-client-petstore.sh b/bin/ruby-client-petstore.sh deleted file mode 100755 index 292d70a443a..00000000000 --- a/bin/ruby-client-petstore.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/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 clean package -fi - -# purge lib/doc folder -echo "purge ruby petstore lib, docs folder" -rm -Rf samples/client/petstore/ruby/lib -rm -Rf samples/client/petstore/ruby/docs - -# purge test files other than integration test -# NOTE: spec/custom/*.rb and spec/petstore_helper.rb are not generated files -echo "purge ruby petstore spec" -find samples/client/petstore/ruby/spec -type d -not -name spec -not -name custom | xargs rm -Rf -find samples/client/petstore/ruby/spec -type f -not -name petstore_helper.rb -not -iwholename '*/spec/custom/*' | xargs rm -Rf - -# 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/ruby-client -i modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml -g ruby -c bin/ruby-petstore.json -o samples/client/petstore/ruby --additional-properties skipFormModel=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/ruby-on-rails-server-petstore.sh b/bin/ruby-on-rails-server-petstore.sh deleted file mode 100755 index 3cb83a0c517..00000000000 --- a/bin/ruby-on-rails-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/ruby-on-rails-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g ruby-on-rails -o samples/server/petstore/ruby-on-rails $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/ruby-petstore-faraday.json b/bin/ruby-petstore-faraday.json deleted file mode 100644 index 21974c307f2..00000000000 --- a/bin/ruby-petstore-faraday.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "gemName": "petstore", - "moduleName": "Petstore", - "library": "faraday", - "gemVersion": "1.0.0" -} diff --git a/bin/ruby-petstore.json b/bin/ruby-petstore.json deleted file mode 100644 index 8e597283f8b..00000000000 --- a/bin/ruby-petstore.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "gemName": "petstore", - "library": "typhoeus", - "moduleName": "Petstore", - "gemVersion": "1.0.0", - "strictSpecBehavior": false -} diff --git a/bin/ruby-sinatra-server-petstore.sh b/bin/ruby-sinatra-server-petstore.sh deleted file mode 100755 index 88701e48793..00000000000 --- a/bin/ruby-sinatra-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/ruby-sinatra-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g ruby-sinatra -o samples/server/petstore/ruby-sinatra $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/run-all-petstore b/bin/run-all-petstore deleted file mode 100755 index b709a303b47..00000000000 --- a/bin/run-all-petstore +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# this bash script will loop through all the .sh files under bin -# execute the script and check the result (exit code) to see if -# there's any error - -echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) only. There's no need to run this script to update Petstore samples for all generators." -echo "Please press CTRL+C to stop or the script will continue in 10 seconds." - -sleep 10 - -successes=0 -failures=0 -for SCRIPT in $(ls -l ./bin/*.sh | grep -v all) -do - if [ -f ${SCRIPT} -a -x ${SCRIPT} ]; then - echo "Running $SCRIPT (output to /dev/null)" - ${SCRIPT} 2>&1 > /dev/null - rc=$? - if [[ ${rc} != 0 ]]; then - >&2 echo "ERROR!! FAILED TO RUN ${SCRIPT}" - ((failures+=1)) - else - ((successes+=1)) - fi - fi -done - -if (( failures > 0 )); then - >&2 echo "[ERROR] ${failures} out of $((failures+successes)) scripts failed." - exit 1 -else - echo "[SUCCESS] ${successes} generators finished." -fi diff --git a/bin/rust-petstore-reqwest-async.sh b/bin/rust-petstore-reqwest-async.sh deleted file mode 100755 index 13a7c649bcb..00000000000 --- a/bin/rust-petstore-reqwest-async.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/rust -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g rust --library reqwest -o samples/client/petstore/rust/reqwest/petstore-async --additional-properties supportAsync=true,packageName=petstore-reqwest-async $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/rust-petstore.sh b/bin/rust-petstore.sh deleted file mode 100755 index d5aceb82af6..00000000000 --- a/bin/rust-petstore.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/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" - -for spec_path in \ - modules/openapi-generator/src/test/resources/2_0/petstore.yaml \ - modules/openapi-generator/src/test/resources/3_0/rust/rust-test.yaml \ - modules/openapi-generator/src/test/resources/2_0/fileResponseTest.json\ - ; do - spec=$(basename "$spec_path" | sed 's/.yaml//' | sed 's/.json//' ) - - for library in hyper reqwest; do - args="generate --template-dir modules/openapi-generator/src/main/resources/rust - --input-spec $spec_path - --generator-name rust - --output samples/client/petstore/rust/$library/$spec - --additional-properties packageName=${spec}-${library} - --library=$library $@" - java ${JAVA_OPTS} -jar ${executable} ${args} || exit 1 - done -done diff --git a/bin/rust-server-petstore.sh b/bin/rust-server-petstore.sh deleted file mode 100755 index f1ded085f6f..00000000000 --- a/bin/rust-server-petstore.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/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 - -for spec_path in modules/openapi-generator/src/test/resources/*/rust-server/* ; do - echo "Generating: $spec_path" - export JAVA_OPTS="${JAVA_OPTS} -Xmx1024M -DloggerPath=conf/log4j.properties" - spec=$(basename "$spec_path" | sed 's/.yaml//') - args="generate --template-dir modules/openapi-generator/src/main/resources/rust-server - --input-spec $spec_path - --generator-name rust-server - --output samples/server/petstore/rust-server/output/$spec - --additional-properties packageName=$spec - --additional-properties hideGenerationTimestamp=true - --generate-alias-as-model - $@" - - java $JAVA_OPTS -jar $executable $args - - if [ $? -ne 0 ]; then - exit $? - fi -done diff --git a/bin/scala-akka-http-server-petstore.sh b/bin/scala-akka-http-server-petstore.sh deleted file mode 100755 index 83f97fca797..00000000000 --- a/bin/scala-akka-http-server-petstore.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/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/openapi-generator-cli/target/openapi-generator-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} -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-akka-http-server -o samples/server/petstore/scala-akka-http-server $@" - -java ${JAVA_OPTS} -jar ${executable} ${ags} diff --git a/bin/scala-akka-petstore.sh b/bin/scala-akka-petstore.sh deleted file mode 100755 index 037fa6a962e..00000000000 --- a/bin/scala-akka-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 --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/client/petstore/scala-akka $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scala-finch-petstore-server.sh b/bin/scala-finch-petstore-server.sh deleted file mode 100755 index 080d338ae7f..00000000000 --- a/bin/scala-finch-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/scala-finch -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-finch -o samples/server/petstore/scala-finch -DskipFormModel=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scala-gatling-petstore.sh b/bin/scala-gatling-petstore.sh deleted file mode 100755 index 227ad58c3d1..00000000000 --- a/bin/scala-gatling-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/scala-gatling -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-gatling -o samples/client/petstore/scala-gatling $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scala-httpclient-petstore.sh b/bin/scala-httpclient-petstore.sh deleted file mode 100755 index d3629abc474..00000000000 --- a/bin/scala-httpclient-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/scala-httpclient -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-httpclient-deprecated -o samples/client/petstore/scala-httpclient $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scala-lagom-server-petstore.sh b/bin/scala-lagom-server-petstore.sh deleted file mode 100755 index ab3720b618e..00000000000 --- a/bin/scala-lagom-server-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/scala-lagom-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-lagom-server -o samples/server/petstore/scala-lagom-server -DskipFormModel=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scala-play-framework-petstore.sh b/bin/scala-play-framework-petstore.sh deleted file mode 100755 index 90258c2a597..00000000000 --- a/bin/scala-play-framework-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/scala-play-server -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-play-server -o samples/server/petstore/scala-play-server --additional-properties hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scala-sttp-petstore.sh b/bin/scala-sttp-petstore.sh deleted file mode 100755 index 3521fd6e419..00000000000 --- a/bin/scala-sttp-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 --artifact-id 'scala-sttp-petstore' -t modules/openapi-generator/src/main/resources/scala-sttp -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scala-sttp -o samples/client/petstore/scala-sttp $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scalatra-petstore-server.sh b/bin/scalatra-petstore-server.sh deleted file mode 100755 index 04d037b89ce..00000000000 --- a/bin/scalatra-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/scalatra -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scalatra -o samples/server/petstore/scalatra $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/scalaz-petstore.sh b/bin/scalaz-petstore.sh deleted file mode 100755 index ff35e33a52b..00000000000 --- a/bin/scalaz-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 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 -t modules/openapi-generator/src/main/resources/scalaz -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g scalaz -o samples/client/petstore/scalaz -DskipFormModel=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-all-petstore.sh b/bin/spring-all-petstore.sh deleted file mode 100755 index 3f3536cf1ab..00000000000 --- a/bin/spring-all-petstore.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# Generate clients: -./bin/spring-cloud-feign-petstore.sh -./bin/spring-cloud-feign-async-petstore.sh -./bin/spring-stubs.sh - -# Generate spring-mvc servers: -./bin/spring-mvc-petstore-server.sh -./bin/spring-mvc-petstore-j8-async-server.sh -./bin/spring-mvc-petstore-j8-localdatetime.sh - -# Generate springboot servers: -./bin/spring-delegate.sh -./bin/spring-delegate-j8.sh -./bin/springboot-petstore-server.sh -./bin/springboot-petstore-server-reactive.sh -./bin/springboot-petstore-server-beanvalidation.sh -./bin/springboot-petstore-server-implicitHeaders.sh -./bin/springboot-petstore-server-useOptional.sh -./bin/springboot-virtualan-petstore-server.sh \ No newline at end of file diff --git a/bin/spring-cloud-feign-async-petstore.sh b/bin/spring-cloud-feign-async-petstore.sh deleted file mode 100755 index ec2df408974..00000000000 --- a/bin/spring-cloud-feign-async-petstore.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g spring -c bin/spring-cloud-feign-petstore.json -o samples/client/petstore/spring-cloud-async --additional-properties hideGenerationTimestamp=true,java8=true,async=true $@" - -echo "Removing files and folders under samples/client/petstore/spring-cloud-async/src/main" -rm -rf samples/client/petstore/spring-cloud-async/src/main -find samples/client/petstore/spring-cloud-async -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-cloud-feign-petstore.json b/bin/spring-cloud-feign-petstore.json deleted file mode 100644 index 572f58c1c7e..00000000000 --- a/bin/spring-cloud-feign-petstore.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "spring-cloud", - "artifactId": "petstore-spring-cloud" -} diff --git a/bin/spring-cloud-feign-petstore.sh b/bin/spring-cloud-feign-petstore.sh deleted file mode 100755 index 2dfef88064f..00000000000 --- a/bin/spring-cloud-feign-petstore.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g spring -c bin/spring-cloud-feign-petstore.json -o samples/client/petstore/spring-cloud --additional-properties hideGenerationTimestamp=true,responseWrapper=HystrixCommand $@" - -echo "Removing files and folders under samples/client/petstore/spring-cloud/src/main" -rm -rf samples/client/petstore/spring-cloud/src/main -find samples/client/petstore/spring-cloud -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-delegate-j8.sh b/bin/spring-delegate-j8.sh deleted file mode 100755 index df75a5d169b..00000000000 --- a/bin/spring-delegate-j8.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id springboot-delegate-j8 -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/springboot-delegate-j8 --additional-properties delegatePattern=true,hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/springboot-delegate-j8/src/main" -rm -rf samples/server/petstore/springboot-delegate-j8/src/main -find samples/server/petstore/springboot-delegate-j8/ -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-delegate.sh b/bin/spring-delegate.sh deleted file mode 100755 index 2404c24cedc..00000000000 --- a/bin/spring-delegate.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id springboot-delegate -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/springboot-delegate --additional-properties delegatePattern=true,hideGenerationTimestamp=true,java8=false $@" - -echo "Removing files and folders under samples/server/petstore/springboot-delegate/src/main" -rm -rf samples/server/petstore/springboot-delegate/src/main -find samples/server/petstore/springboot-delegate/ -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-mvc-petstore-j8-async-server.sh b/bin/spring-mvc-petstore-j8-async-server.sh deleted file mode 100755 index fdbb35d4b41..00000000000 --- a/bin/spring-mvc-petstore-j8-async-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/spring-mvc-j8-async -c bin/spring-mvc-petstore-j8-async.json --additional-properties hideGenerationTimestamp=true,async=true --additional-properties serverPort=8002 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-mvc-petstore-j8-async.json b/bin/spring-mvc-petstore-j8-async.json deleted file mode 100644 index b73cbb09fe4..00000000000 --- a/bin/spring-mvc-petstore-j8-async.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "java8": true, - "async": true, - "library": "spring-mvc", - "artifactId": "spring-mvc-server-j8-async" -} diff --git a/bin/spring-mvc-petstore-j8-localdatetime.json b/bin/spring-mvc-petstore-j8-localdatetime.json deleted file mode 100644 index 6eeb5d21443..00000000000 --- a/bin/spring-mvc-petstore-j8-localdatetime.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "library": "spring-mvc", - "dateLibrary": "java8-localdatetime", - "artifactId": "spring-mvc-j8-localdatetime" -} diff --git a/bin/spring-mvc-petstore-j8-localdatetime.sh b/bin/spring-mvc-petstore-j8-localdatetime.sh deleted file mode 100755 index ae3b16177af..00000000000 --- a/bin/spring-mvc-petstore-j8-localdatetime.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -c bin/spring-mvc-petstore-j8-localdatetime.json -o samples/server/petstore/spring-mvc-j8-localdatetime --additional-properties hideGenerationTimestamp=true,booleanGetterPrefix=get,serverPort=8002 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-mvc-petstore-server.json b/bin/spring-mvc-petstore-server.json deleted file mode 100644 index d07026ffcbc..00000000000 --- a/bin/spring-mvc-petstore-server.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "library": "spring-mvc", - "artifactId": "spring-mvc-server" -} diff --git a/bin/spring-mvc-petstore-server.sh b/bin/spring-mvc-petstore-server.sh deleted file mode 100755 index ddbb1b4d64f..00000000000 --- a/bin/spring-mvc-petstore-server.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -c bin/spring-mvc-petstore-server.json -o samples/server/petstore/spring-mvc --additional-properties hideGenerationTimestamp=true,java8=false --additional-properties serverPort=8002 --additional-properties booleanGetterPrefix=get $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/spring-stubs.sh b/bin/spring-stubs.sh deleted file mode 100755 index 79edfa1820e..00000000000 --- a/bin/spring-stubs.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 --artifact-id spring-stubs -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g spring -o samples/client/petstore/spring-stubs --additional-properties interfaceOnly=true,singleContentTypes=true,hideGenerationTimestamp=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/springboot-petstore-server-beanvalidation.json b/bin/springboot-petstore-server-beanvalidation.json deleted file mode 100644 index 21db69b6d8d..00000000000 --- a/bin/springboot-petstore-server-beanvalidation.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "artifactId": "spring-boot-beanvalidation", - "library": "spring-boot", - "useBeanValidation": true -} diff --git a/bin/springboot-petstore-server-beanvalidation.sh b/bin/springboot-petstore-server-beanvalidation.sh deleted file mode 100755 index 33b1fdce58b..00000000000 --- a/bin/springboot-petstore-server-beanvalidation.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/springboot-beanvalidation -c bin/springboot-petstore-server-beanvalidation.json --additional-properties hideGenerationTimestamp=true,java8=false $@" - -echo "Removing files and folders under samples/server/petstore/springboot-beanvalidation/src/main" -rm -rf samples/server/petstore/springboot-beanvalidation/src/main -find samples/server/petstore/springboot-beanvalidation -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/springboot-petstore-server-implicitHeaders.json b/bin/springboot-petstore-server-implicitHeaders.json deleted file mode 100644 index 8b76ddb5d26..00000000000 --- a/bin/springboot-petstore-server-implicitHeaders.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "implicitHeaders": true -} \ No newline at end of file diff --git a/bin/springboot-petstore-server-implicitHeaders.sh b/bin/springboot-petstore-server-implicitHeaders.sh deleted file mode 100755 index 277c57fcbdd..00000000000 --- a/bin/springboot-petstore-server-implicitHeaders.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id springboot-implicitHeaders -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -c bin/springboot-petstore-server-implicitHeaders.json -o samples/server/petstore/springboot-implicitHeaders --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/springboot-implicitHeaders/src/main" -rm -rf samples/server/petstore/springboot-implicitHeaders/src/main -find samples/server/petstore/springboot-implicitHeaders -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/springboot-petstore-server-reactive.sh b/bin/springboot-petstore-server-reactive.sh deleted file mode 100755 index 6cc531e66e2..00000000000 --- a/bin/springboot-petstore-server-reactive.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/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 --artifact-id springboot-reactive -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/springboot-reactive --additional-properties reactive=true,delegatePattern=true,hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/springboot-reactive/src/main" -rm -rf samples/server/petstore/springboot-reactive/src/main -find samples/server/petstore/springboot-reactive -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/springboot-petstore-server-useOptional.json b/bin/springboot-petstore-server-useOptional.json deleted file mode 100644 index 5a0c80d6b9c..00000000000 --- a/bin/springboot-petstore-server-useOptional.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "artifactId": "spring-boot-useoptional", - "useOptional": true -} diff --git a/bin/springboot-petstore-server-useOptional.sh b/bin/springboot-petstore-server-useOptional.sh deleted file mode 100755 index 029f923862a..00000000000 --- a/bin/springboot-petstore-server-useOptional.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -c bin/springboot-petstore-server-useOptional.json -o samples/server/petstore/springboot-useoptional --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/springboot-useoptional/src/main" -rm -rf samples/server/petstore/springboot-useoptional/src/main -find samples/server/petstore/springboot-useoptional -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/springboot-petstore-server.sh b/bin/springboot-petstore-server.sh deleted file mode 100755 index b1f408e5f3e..00000000000 --- a/bin/springboot-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id springboot -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/springboot --additional-properties hideGenerationTimestamp=true,snapshotVersion=true $@" - -echo "Removing files and folders under samples/server/petstore/springboot/src/main" -rm -rf samples/server/petstore/springboot/src/main -find samples/server/petstore/springboot -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/springboot-virtualan-petstore-server.json b/bin/springboot-virtualan-petstore-server.json deleted file mode 100644 index d02799fde62..00000000000 --- a/bin/springboot-virtualan-petstore-server.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "artifactId": "springboot-virtualan", - "library": "spring-boot", - "virtualService": true, - "modelPackage" : "org.openapitools.virtualan.model", - "apiPackage" : "org.openapitools.virtualan.api" -} diff --git a/bin/springboot-virtualan-petstore-server.sh b/bin/springboot-virtualan-petstore-server.sh deleted file mode 100755 index a8471cf1998..00000000000 --- a/bin/springboot-virtualan-petstore-server.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/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 --artifact-id springboot-virtualan -t modules/openapi-generator/src/main/resources/JavaSpring -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples/server/petstore/springboot-virtualan -c bin/springboot-virtualan-petstore-server.json --additional-properties hideGenerationTimestamp=true $@" - -echo "Removing files and folders under samples/server/petstore/springboot-virtualan/src/main" -rm -rf samples/server/petstore/springboot-virtualan/src/main -find samples/server/petstore/springboot-virtualan -maxdepth 1 -type f ! -name "README.md" -exec rm {} + -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/supportPython2.json b/bin/supportPython2.json deleted file mode 100644 index 8fc7eca95ec..00000000000 --- a/bin/supportPython2.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "supportPython2": true -} diff --git a/bin/swift5-all.sh b/bin/swift5-all.sh deleted file mode 100755 index 0fabcabab42..00000000000 --- a/bin/swift5-all.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./bin/swift5-petstore-all.sh -./bin/swift5-test.sh diff --git a/bin/swift5-petstore-alamofire.json b/bin/swift5-petstore-alamofire.json deleted file mode 100644 index f6cc7270be6..00000000000 --- a/bin/swift5-petstore-alamofire.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "library": "alamofire" -} diff --git a/bin/swift5-petstore-alamofire.sh b/bin/swift5-petstore-alamofire.sh deleted file mode 100755 index 6c8ef2c5f80..00000000000 --- a/bin/swift5-petstore-alamofire.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-alamofire.json -o samples/client/petstore/swift5/alamofireLibrary --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/alamofireLibrary - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/alamofireLibrary - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-all.sh b/bin/swift5-petstore-all.sh deleted file mode 100755 index c3f468af031..00000000000 --- a/bin/swift5-petstore-all.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -./bin/swift5-petstore.sh -./bin/swift5-petstore-promisekit.sh -./bin/swift5-petstore-result.sh -./bin/swift5-petstore-rxswift.sh -./bin/swift5-petstore-objcCompatible.sh -./bin/swift5-petstore-nonPublicApi.sh -./bin/swift5-petstore-urlsession.sh -./bin/swift5-petstore-alamofire.sh -./bin/swift5-petstore-combine.sh -./bin/swift5-petstore-readonlyProperties.sh -./bin/swift5-petstore-deprecated.sh diff --git a/bin/swift5-petstore-combine.json b/bin/swift5-petstore-combine.json deleted file mode 100644 index ef420f56e2e..00000000000 --- a/bin/swift5-petstore-combine.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "responseAs": "Combine" -} diff --git a/bin/swift5-petstore-combine.sh b/bin/swift5-petstore-combine.sh deleted file mode 100755 index 71ca667a9ad..00000000000 --- a/bin/swift5-petstore-combine.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-combine.json -o samples/client/petstore/swift5/combineLibrary --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/combineLibrary - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/combineLibrary - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-deprecated.json b/bin/swift5-petstore-deprecated.json deleted file mode 100644 index 59bd94f43ef..00000000000 --- a/bin/swift5-petstore-deprecated.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient" -} diff --git a/bin/swift5-petstore-deprecated.sh b/bin/swift5-petstore-deprecated.sh deleted file mode 100755 index b26f1c430f8..00000000000 --- a/bin/swift5-petstore-deprecated.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/3_0/petstore-with-depreacted-fields.yaml -g swift5 -c ./bin/swift5-petstore-deprecated.json -o samples/client/petstore/swift5/deprecated --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/deprecated - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/deprecated - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-nonPublicApi.json b/bin/swift5-petstore-nonPublicApi.json deleted file mode 100644 index f20305dec05..00000000000 --- a/bin/swift5-petstore-nonPublicApi.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "nonPublicApi": true, - "sortParamsByRequiredFlag": false -} diff --git a/bin/swift5-petstore-nonPublicApi.sh b/bin/swift5-petstore-nonPublicApi.sh deleted file mode 100755 index fc4035bfca6..00000000000 --- a/bin/swift5-petstore-nonPublicApi.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-nonPublicApi.json -o samples/client/petstore/swift5/nonPublicApi --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/nonPublicApi - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/nonPublicApi - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-objcCompatible.json b/bin/swift5-petstore-objcCompatible.json deleted file mode 100644 index c24c7abf69c..00000000000 --- a/bin/swift5-petstore-objcCompatible.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "objcCompatible": true -} diff --git a/bin/swift5-petstore-objcCompatible.sh b/bin/swift5-petstore-objcCompatible.sh deleted file mode 100755 index 39d53ff8e65..00000000000 --- a/bin/swift5-petstore-objcCompatible.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-objcCompatible.json -o samples/client/petstore/swift5/objcCompatible --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/objcCompatible - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/objcCompatible - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-promisekit.json b/bin/swift5-petstore-promisekit.json deleted file mode 100644 index 48137f1f280..00000000000 --- a/bin/swift5-petstore-promisekit.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "responseAs": "PromiseKit" -} diff --git a/bin/swift5-petstore-promisekit.sh b/bin/swift5-petstore-promisekit.sh deleted file mode 100755 index f864088e9b2..00000000000 --- a/bin/swift5-petstore-promisekit.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-promisekit.json -o samples/client/petstore/swift5/promisekitLibrary --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/promisekitLibrary - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/promisekitLibrary - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-readOnlyProperties.sh b/bin/swift5-petstore-readOnlyProperties.sh deleted file mode 100755 index fe838af1d3c..00000000000 --- a/bin/swift5-petstore-readOnlyProperties.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-readonlyProperties.json -o samples/client/petstore/swift5/readonlyProperties --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/readonlyProperties - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/readonlyProperties - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-readonlyProperties.json b/bin/swift5-petstore-readonlyProperties.json deleted file mode 100644 index 3993a3c26aa..00000000000 --- a/bin/swift5-petstore-readonlyProperties.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "readonlyProperties": true -} diff --git a/bin/swift5-petstore-result.json b/bin/swift5-petstore-result.json deleted file mode 100644 index 31543386786..00000000000 --- a/bin/swift5-petstore-result.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "responseAs": "Result" -} diff --git a/bin/swift5-petstore-result.sh b/bin/swift5-petstore-result.sh deleted file mode 100755 index 803c79a4f7c..00000000000 --- a/bin/swift5-petstore-result.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-result.json -o samples/client/petstore/swift5/resultLibrary --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/resultLibrary - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/resultLibrary - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-rxswift.json b/bin/swift5-petstore-rxswift.json deleted file mode 100644 index eb8b11dde55..00000000000 --- a/bin/swift5-petstore-rxswift.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "responseAs": "RxSwift" -} diff --git a/bin/swift5-petstore-rxswift.sh b/bin/swift5-petstore-rxswift.sh deleted file mode 100755 index 9c8398248eb..00000000000 --- a/bin/swift5-petstore-rxswift.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-rxswift.json -o samples/client/petstore/swift5/rxswiftLibrary --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/rxswiftLibrary - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/rxswiftLibrary - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore-urlsession.json b/bin/swift5-petstore-urlsession.json deleted file mode 100644 index db0f6c9fbfb..00000000000 --- a/bin/swift5-petstore-urlsession.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient", - "library": "urlsession" -} diff --git a/bin/swift5-petstore-urlsession.sh b/bin/swift5-petstore-urlsession.sh deleted file mode 100755 index 76a674d4315..00000000000 --- a/bin/swift5-petstore-urlsession.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore-urlsession.json -o samples/client/petstore/swift5/urlsessionLibrary --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/urlsessionLibrary - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/urlsessionLibrary - swiftlint autocorrect -fi \ No newline at end of file diff --git a/bin/swift5-petstore.json b/bin/swift5-petstore.json deleted file mode 100644 index 59bd94f43ef..00000000000 --- a/bin/swift5-petstore.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "podSummary": "PetstoreClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "PetstoreClient" -} diff --git a/bin/swift5-petstore.sh b/bin/swift5-petstore.sh deleted file mode 100755 index f2752acc1a0..00000000000 --- a/bin/swift5-petstore.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift/petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c ./bin/swift5-petstore.json -o samples/client/petstore/swift5/default --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/default - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/petstore/swift5/default - swiftlint autocorrect -fi diff --git a/bin/swift5-test.json b/bin/swift5-test.json deleted file mode 100644 index 9341b740a2a..00000000000 --- a/bin/swift5-test.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "podSummary": "TestClient", - "podHomepage": "https://github.com/openapitools/openapi-generator", - "podAuthors": "", - "projectName": "TestClient" -} diff --git a/bin/swift5-test.sh b/bin/swift5-test.sh deleted file mode 100755 index 1620ea6e270..00000000000 --- a/bin/swift5-test.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/swift5 -i modules/openapi-generator/src/test/resources/2_0/swift5Test.json -g swift5 -c ./bin/swift5-test.json -o samples/client/test/swift5/default --generate-alias-as-model $@" - -java $JAVA_OPTS -jar $executable $ags - -if type "xcodegen" > /dev/null 2>&1; then - cd samples/client/test/swift5/default - xcodegen generate -fi - -if type "swiftlint" > /dev/null 2>&1; then - cd samples/client/test/swift5/default - swiftlint autocorrect -fi diff --git a/bin/typescript-angular-petstore-all.sh b/bin/typescript-angular-petstore-all.sh deleted file mode 100755 index 55ed856f34e..00000000000 --- a/bin/typescript-angular-petstore-all.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -./bin/typescript-angular-v6-petstore-not-provided-in-root.sh -./bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.sh -./bin/typescript-angular-v6-petstore-provided-in-root.sh -./bin/typescript-angular-v6-petstore-provided-in-root-with-npm.sh -./bin/typescript-angular-v7-petstore-not-provided-in-root.sh -./bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.sh -./bin/typescript-angular-v7-petstore-provided-in-root.sh -./bin/typescript-angular-v7-petstore-provided-in-root-with-npm.sh -./bin/typescript-angular-v8-petstore-provided-in-root-with-npm.sh -./bin/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.sh -./bin/typescript-angular-v8-petstore-single-request-parameter.sh diff --git a/bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.json b/bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.json deleted file mode 100644 index 535bffbd45e..00000000000 --- a/bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-angular-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.sh b/bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.sh deleted file mode 100755 index 981e55dbc28..00000000000 --- a/bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v6-petstore-not-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/with-npm --additional-properties ngVersion=6.0.0,providedInRoot=false $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v6-petstore-not-provided-in-root.sh b/bin/typescript-angular-v6-petstore-not-provided-in-root.sh deleted file mode 100755 index f00826e050f..00000000000 --- a/bin/typescript-angular-v6-petstore-not-provided-in-root.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v6-not-provided-in-root/builds/default --additional-properties ngVersion=6.0.0,providedInRoot=false $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v6-petstore-provided-in-root-with-npm.json b/bin/typescript-angular-v6-petstore-provided-in-root-with-npm.json deleted file mode 100644 index 535bffbd45e..00000000000 --- a/bin/typescript-angular-v6-petstore-provided-in-root-with-npm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-angular-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-angular-v6-petstore-provided-in-root-with-npm.sh b/bin/typescript-angular-v6-petstore-provided-in-root-with-npm.sh deleted file mode 100755 index e1da8eba288..00000000000 --- a/bin/typescript-angular-v6-petstore-provided-in-root-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v6-petstore-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v6-provided-in-root/builds/with-npm --additional-properties ngVersion=6.0.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v6-petstore-provided-in-root.sh b/bin/typescript-angular-v6-petstore-provided-in-root.sh deleted file mode 100755 index 7ef2f721528..00000000000 --- a/bin/typescript-angular-v6-petstore-provided-in-root.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v6-provided-in-root/builds/default --additional-properties ngVersion=6.0.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.json b/bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.json deleted file mode 100644 index 9c939c67ae4..00000000000 --- a/bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-angular-petstore", - "npmVersion": "1.0.0", - "stringEnums": true, - "npmRepository": "https://skimdb.npmjs.com/registry", - "snapshot": false -} diff --git a/bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.sh b/bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.sh deleted file mode 100755 index f74cb16b02a..00000000000 --- a/bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v7-petstore-not-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/with-npm --additional-properties ngVersion=7.0.0,providedInRoot=false $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v7-petstore-not-provided-in-root.sh b/bin/typescript-angular-v7-petstore-not-provided-in-root.sh deleted file mode 100755 index 46eb22cbc4d..00000000000 --- a/bin/typescript-angular-v7-petstore-not-provided-in-root.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v7-not-provided-in-root/builds/default --additional-properties ngVersion=7.0.0,providedInRoot=false $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v7-petstore-provided-in-root-with-npm.json b/bin/typescript-angular-v7-petstore-provided-in-root-with-npm.json deleted file mode 100644 index 535bffbd45e..00000000000 --- a/bin/typescript-angular-v7-petstore-provided-in-root-with-npm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-angular-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-angular-v7-petstore-provided-in-root-with-npm.sh b/bin/typescript-angular-v7-petstore-provided-in-root-with-npm.sh deleted file mode 100755 index 5d9f0d738e5..00000000000 --- a/bin/typescript-angular-v7-petstore-provided-in-root-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v7-petstore-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v7-provided-in-root/builds/with-npm --additional-properties ngVersion=7.0.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v7-petstore-provided-in-root.sh b/bin/typescript-angular-v7-petstore-provided-in-root.sh deleted file mode 100755 index 222f35fd98a..00000000000 --- a/bin/typescript-angular-v7-petstore-provided-in-root.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -o samples/client/petstore/typescript-angular-v7-provided-in-root/builds/default --additional-properties ngVersion=7.0.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json b/bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json deleted file mode 100644 index 11141667cfe..00000000000 --- a/bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-angular-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false, - "ngVersion": "8.0.0" -} diff --git a/bin/typescript-angular-v8-petstore-provided-in-root-with-npm.sh b/bin/typescript-angular-v8-petstore-provided-in-root-with-npm.sh deleted file mode 100755 index c34db65d2d0..00000000000 --- a/bin/typescript-angular-v8-petstore-provided-in-root-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-npm --additional-properties ngVersion=8.0.0 $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.sh b/bin/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.sh deleted file mode 100755 index 993a143da6d..00000000000 --- a/bin/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v8-provided-in-root/builds/with-prefixed-module-name --additional-properties ngVersion=8.0.0,apiModulePrefix=PetStore $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angular-v8-petstore-single-request-parameter.sh b/bin/typescript-angular-v8-petstore-single-request-parameter.sh deleted file mode 100755 index 9f25d467d21..00000000000 --- a/bin/typescript-angular-v8-petstore-single-request-parameter.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angular -c bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json -o samples/client/petstore/typescript-angular-v8-provided-in-root/builds/single-request-parameter --additional-properties ngVersion=8.0.0,useSingleRequestParameter=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-angularjs-petstore.sh b/bin/typescript-angularjs-petstore.sh deleted file mode 100755 index 72c8aac266d..00000000000 --- a/bin/typescript-angularjs-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-angularjs -o samples/client/petstore/typescript-angularjs $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-aurelia-petstore.sh b/bin/typescript-aurelia-petstore.sh deleted file mode 100755 index a9f40e6f76e..00000000000 --- a/bin/typescript-aurelia-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-aurelia -o samples/client/petstore/typescript-aurelia/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-all.sh b/bin/typescript-axios-petstore-all.sh deleted file mode 100755 index c66b3eba307..00000000000 --- a/bin/typescript-axios-petstore-all.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -./bin/typescript-axios-petstore-target-es6.sh -./bin/typescript-axios-petstore-with-npm-version.sh -./bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.sh -./bin/typescript-axios-petstore-with-complex-headers.sh -./bin/typescript-axios-petstore-with-single-request-parameters.sh -./bin/typescript-axios-petstore-interfaces.sh -./bin/typescript-axios-petstore-composed-schemas.sh -./bin/typescript-axios-petstore.sh diff --git a/bin/typescript-axios-petstore-composed-schemas.sh b/bin/typescript-axios-petstore-composed-schemas.sh deleted file mode 100755 index 8ed378b6f34..00000000000 --- a/bin/typescript-axios-petstore-composed-schemas.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/composed-schemas.yaml -g typescript-axios -o samples/client/petstore/typescript-axios/builds/composed-schemas $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-interfaces.sh b/bin/typescript-axios-petstore-interfaces.sh deleted file mode 100755 index 84a65e0aba3..00000000000 --- a/bin/typescript-axios-petstore-interfaces.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-axios -o samples/client/petstore/typescript-axios/builds/with-interfaces --additional-properties withInterfaces=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-target-es6.json b/bin/typescript-axios-petstore-target-es6.json deleted file mode 100755 index 9d429900bfe..00000000000 --- a/bin/typescript-axios-petstore-target-es6.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-axios-petstore", - "npmVersion": "1.0.0", - "npmRepository": "https://skimdb.npmjs.com/registry", - "snapshot": false, - "supportsES6": true -} diff --git a/bin/typescript-axios-petstore-target-es6.sh b/bin/typescript-axios-petstore-target-es6.sh deleted file mode 100755 index fc5ec66aead..00000000000 --- a/bin/typescript-axios-petstore-target-es6.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-axios -c bin/typescript-axios-petstore-target-es6.json -o samples/client/petstore/typescript-axios/builds/es6-target $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-with-complex-headers.sh b/bin/typescript-axios-petstore-with-complex-headers.sh deleted file mode 100755 index 385f9684c1a..00000000000 --- a/bin/typescript-axios-petstore-with-complex-headers.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties" -ags="generate -i modules/openapi-generator/src/test/resources/3_0/petstore-with-complex-headers.yaml -g typescript-axios -o samples/client/petstore/typescript-axios/builds/with-complex-headers $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.json b/bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.json deleted file mode 100755 index db558308ab7..00000000000 --- a/bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "npmName": "@openapitools/typescript-axios-petstore", - "npmVersion": "1.0.0", - "npmRepository": "https://skimdb.npmjs.com/registry", - "snapshot": false, - "withSeparateModelsAndApi": true, - "modelPackage": "model.some.levels.deep", - "apiPackage": "api.another.level" -} diff --git a/bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.sh b/bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.sh deleted file mode 100755 index 12337bf7433..00000000000 --- a/bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-axios -c bin/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.json -o samples/client/petstore/typescript-axios/builds/with-npm-version-and-separate-models-and-api $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-with-npm-version.json b/bin/typescript-axios-petstore-with-npm-version.json deleted file mode 100755 index f3ad549beee..00000000000 --- a/bin/typescript-axios-petstore-with-npm-version.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-axios-petstore", - "npmVersion": "1.0.0", - "npmRepository": "https://skimdb.npmjs.com/registry", - "snapshot": false -} diff --git a/bin/typescript-axios-petstore-with-npm-version.sh b/bin/typescript-axios-petstore-with-npm-version.sh deleted file mode 100755 index c836c3159f4..00000000000 --- a/bin/typescript-axios-petstore-with-npm-version.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-axios -c bin/typescript-axios-petstore-with-npm-version.json -o samples/client/petstore/typescript-axios/builds/with-npm-version $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore-with-single-request-parameters.sh b/bin/typescript-axios-petstore-with-single-request-parameters.sh deleted file mode 100755 index 25a7a60ce29..00000000000 --- a/bin/typescript-axios-petstore-with-single-request-parameters.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore-with-operations-without-required-params.yaml -g typescript-axios -o samples/client/petstore/typescript-axios/builds/with-single-request-parameters --additional-properties useSingleRequestParameter=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-axios-petstore.sh b/bin/typescript-axios-petstore.sh deleted file mode 100755 index 10071fb50c6..00000000000 --- a/bin/typescript-axios-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-axios -o samples/client/petstore/typescript-axios/builds/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-fetch-petstore-all.sh b/bin/typescript-fetch-petstore-all.sh deleted file mode 100755 index 7258b830a72..00000000000 --- a/bin/typescript-fetch-petstore-all.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -./bin/typescript-fetch-petstore-target-es6.sh -./bin/typescript-fetch-petstore-with-npm-version.sh -./bin/typescript-fetch-petstore-interfaces.sh -./bin/typescript-fetch-petstore.sh -./bin/typescript-fetch-petstore-multiple-parameters.sh -./bin/typescript-fetch-petstore-prefix-parameter-interfaces.sh -./bin/typescript-fetch-petstore-typescript-three-plus.sh diff --git a/bin/typescript-fetch-petstore-interfaces.sh b/bin/typescript-fetch-petstore-interfaces.sh deleted file mode 100755 index 412d778b4f9..00000000000 --- a/bin/typescript-fetch-petstore-interfaces.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -o samples/client/petstore/typescript-fetch/builds/with-interfaces --additional-properties withInterfaces=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-fetch-petstore-multiple-parameters.json b/bin/typescript-fetch-petstore-multiple-parameters.json deleted file mode 100644 index c165a82a503..00000000000 --- a/bin/typescript-fetch-petstore-multiple-parameters.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "snapshot" : false, - "useSingleRequestParameter": false -} \ No newline at end of file diff --git a/bin/typescript-fetch-petstore-multiple-parameters.sh b/bin/typescript-fetch-petstore-multiple-parameters.sh deleted file mode 100755 index 6dfa018ef37..00000000000 --- a/bin/typescript-fetch-petstore-multiple-parameters.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-multiple-parameters.json -o samples/client/petstore/typescript-fetch/builds/multiple-parameters $@" - -java $JAVA_OPTS -jar $executable $ags -cp CI/samples.ci/client/petstore/typescript-fetch/builds/multiple-parameters/pom.xml samples/client/petstore/typescript-fetch/builds/multiple-parameters/pom.xml -cp CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml samples/client/petstore/typescript-fetch/tests/default/pom.xml \ No newline at end of file diff --git a/bin/typescript-fetch-petstore-prefix-parameter-interfaces.json b/bin/typescript-fetch-petstore-prefix-parameter-interfaces.json deleted file mode 100644 index 5694785550c..00000000000 --- a/bin/typescript-fetch-petstore-prefix-parameter-interfaces.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-fetch-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false, - "prefixParameterInterfaces": true -} diff --git a/bin/typescript-fetch-petstore-prefix-parameter-interfaces.sh b/bin/typescript-fetch-petstore-prefix-parameter-interfaces.sh deleted file mode 100755 index 9ba84b2cc47..00000000000 --- a/bin/typescript-fetch-petstore-prefix-parameter-interfaces.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-prefix-parameter-interfaces.json -o samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces $@" - -java $JAVA_OPTS -jar $executable $ags - -cp CI/samples.ci/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/pom.xml samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/pom.xml diff --git a/bin/typescript-fetch-petstore-target-es6.json b/bin/typescript-fetch-petstore-target-es6.json deleted file mode 100644 index 4eefe39000a..00000000000 --- a/bin/typescript-fetch-petstore-target-es6.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-fetch-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false, - "supportsES6": true -} diff --git a/bin/typescript-fetch-petstore-target-es6.sh b/bin/typescript-fetch-petstore-target-es6.sh deleted file mode 100755 index 9edd6f2e257..00000000000 --- a/bin/typescript-fetch-petstore-target-es6.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-target-es6.json -o samples/client/petstore/typescript-fetch/builds/es6-target $@" - -java $JAVA_OPTS -jar $executable $ags -cp CI/samples.ci/client/petstore/typescript-fetch/builds/es6-target/pom.xml samples/client/petstore/typescript-fetch/builds/es6-target/pom.xml -cp CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml samples/client/petstore/typescript-fetch/tests/default/pom.xml \ No newline at end of file diff --git a/bin/typescript-fetch-petstore-typescript-three-plus.json b/bin/typescript-fetch-petstore-typescript-three-plus.json deleted file mode 100644 index b8952aa6e8b..00000000000 --- a/bin/typescript-fetch-petstore-typescript-three-plus.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-fetch-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false, - "typescriptThreePlus": true -} diff --git a/bin/typescript-fetch-petstore-typescript-three-plus.sh b/bin/typescript-fetch-petstore-typescript-three-plus.sh deleted file mode 100755 index 91776dd94f0..00000000000 --- a/bin/typescript-fetch-petstore-typescript-three-plus.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-typescript-three-plus.json -o samples/client/petstore/typescript-fetch/builds/typescript-three-plus $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-fetch-petstore-with-npm-version.json b/bin/typescript-fetch-petstore-with-npm-version.json deleted file mode 100644 index 1e64bb7ff3e..00000000000 --- a/bin/typescript-fetch-petstore-with-npm-version.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-fetch-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-fetch-petstore-with-npm-version.sh b/bin/typescript-fetch-petstore-with-npm-version.sh deleted file mode 100755 index 16d60e5f465..00000000000 --- a/bin/typescript-fetch-petstore-with-npm-version.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-with-npm-version.json -o samples/client/petstore/typescript-fetch/builds/with-npm-version $@" - -java $JAVA_OPTS -jar $executable $ags -cp CI/samples.ci/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml samples/client/petstore/typescript-fetch/builds/with-npm-version/pom.xml -cp CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml samples/client/petstore/typescript-fetch/tests/default/pom.xml \ No newline at end of file diff --git a/bin/typescript-fetch-petstore.sh b/bin/typescript-fetch-petstore.sh deleted file mode 100755 index 2b3f34a20f2..00000000000 --- a/bin/typescript-fetch-petstore.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-fetch -o samples/client/petstore/typescript-fetch/builds/default $@" - -java $JAVA_OPTS -jar $executable $ags -cp CI/samples.ci/client/petstore/typescript-fetch/builds/default/pom.xml samples/client/petstore/typescript-fetch/builds/default/pom.xml -cp CI/samples.ci/client/petstore/typescript-fetch/tests/default/pom.xml samples/client/petstore/typescript-fetch/tests/default/pom.xml \ No newline at end of file diff --git a/bin/typescript-inversify-petstore.sh b/bin/typescript-inversify-petstore.sh deleted file mode 100755 index f79dbaf0de9..00000000000 --- a/bin/typescript-inversify-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-inversify -o samples/client/petstore/typescript-inversify $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-jquery-petstore-all.sh b/bin/typescript-jquery-petstore-all.sh deleted file mode 100755 index 16b8a70dd3a..00000000000 --- a/bin/typescript-jquery-petstore-all.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./bin/typescript-jquery-petstore.sh -./bin/typescript-jquery-petstore-with-npm.sh diff --git a/bin/typescript-jquery-petstore-npm.json b/bin/typescript-jquery-petstore-npm.json deleted file mode 100644 index 846a80ad479..00000000000 --- a/bin/typescript-jquery-petstore-npm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/jquery-typescript-petstore", - "npmVersion": "0.0.1", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-jquery-petstore-with-npm.sh b/bin/typescript-jquery-petstore-with-npm.sh deleted file mode 100755 index 0bb443c6ee2..00000000000 --- a/bin/typescript-jquery-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-jquery -c bin/typescript-jquery-petstore-npm.json -o samples/client/petstore/typescript-jquery/npm $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-jquery-petstore.sh b/bin/typescript-jquery-petstore.sh deleted file mode 100755 index d45e06275ac..00000000000 --- a/bin/typescript-jquery-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-jquery -o samples/client/petstore/typescript-jquery/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-node-petstore-all.sh b/bin/typescript-node-petstore-all.sh deleted file mode 100755 index 08ba781a00e..00000000000 --- a/bin/typescript-node-petstore-all.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -./bin/typescript-node-petstore-with-npm.sh -./bin/typescript-node-petstore.sh diff --git a/bin/typescript-node-petstore-npm.json b/bin/typescript-node-petstore-npm.json deleted file mode 100644 index 773813fb41b..00000000000 --- a/bin/typescript-node-petstore-npm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/node-typescript-petstore", - "npmVersion": "0.0.1", - "npmRepository": "https://skimdb.npmjs.com/registry", - "snapshot": false -} diff --git a/bin/typescript-node-petstore-with-npm.sh b/bin/typescript-node-petstore-with-npm.sh deleted file mode 100755 index c494752f5e5..00000000000 --- a/bin/typescript-node-petstore-with-npm.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-node -c bin/typescript-node-petstore-npm.json -o samples/client/petstore/typescript-node/npm $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-node-petstore.sh b/bin/typescript-node-petstore.sh deleted file mode 100755 index 4554636e482..00000000000 --- a/bin/typescript-node-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-node -o samples/client/petstore/typescript-node/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-petstore-npm.json b/bin/typescript-petstore-npm.json deleted file mode 100644 index 2f5bf810ecc..00000000000 --- a/bin/typescript-petstore-npm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/angular2-typescript-petstore", - "npmVersion": "0.0.1", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-redux-query-petstore-with-npm-version.json b/bin/typescript-redux-query-petstore-with-npm-version.json deleted file mode 100644 index fd8e859f352..00000000000 --- a/bin/typescript-redux-query-petstore-with-npm-version.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-redux-query-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-redux-query-petstore-with-npm-version.sh b/bin/typescript-redux-query-petstore-with-npm-version.sh deleted file mode 100755 index 262e4b69c1a..00000000000 --- a/bin/typescript-redux-query-petstore-with-npm-version.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/typescript-redux-query -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-redux-query -c bin/typescript-redux-query-petstore-with-npm-version.json -o samples/client/petstore/typescript-redux-query/builds/with-npm-version $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-redux-query-petstore.sh b/bin/typescript-redux-query-petstore.sh deleted file mode 100755 index 4b8d347849a..00000000000 --- a/bin/typescript-redux-query-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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 -t modules/openapi-generator/src/main/resources/typescript-redux-query -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -g typescript-redux-query -o samples/client/petstore/typescript-redux-query/builds/default $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-rxjs-petstore-all.sh b/bin/typescript-rxjs-petstore-all.sh deleted file mode 100755 index 2391a66637b..00000000000 --- a/bin/typescript-rxjs-petstore-all.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -./bin/typescript-rxjs-petstore-target-es6.sh -./bin/typescript-rxjs-petstore-with-npm-version.sh -./bin/typescript-rxjs-petstore-interfaces.sh -./bin/typescript-rxjs-petstore.sh diff --git a/bin/typescript-rxjs-petstore-interfaces.sh b/bin/typescript-rxjs-petstore-interfaces.sh deleted file mode 100755 index c7b52aca526..00000000000 --- a/bin/typescript-rxjs-petstore-interfaces.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-rxjs -o samples/client/petstore/typescript-rxjs/builds/with-interfaces --additional-properties withInterfaces=true $@" - -java $JAVA_OPTS -jar $executable $ags diff --git a/bin/typescript-rxjs-petstore-target-es6.json b/bin/typescript-rxjs-petstore-target-es6.json deleted file mode 100644 index f9537dc8c59..00000000000 --- a/bin/typescript-rxjs-petstore-target-es6.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "npmName": "@openapitools/typescript-rxjs-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false, - "supportsES6": true -} diff --git a/bin/typescript-rxjs-petstore-target-es6.sh b/bin/typescript-rxjs-petstore-target-es6.sh deleted file mode 100755 index 1a5f9e1b005..00000000000 --- a/bin/typescript-rxjs-petstore-target-es6.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-rxjs -c bin/typescript-rxjs-petstore-target-es6.json -o samples/client/petstore/typescript-rxjs/builds/es6-target $@" - -java $JAVA_OPTS -jar $executable $ags \ No newline at end of file diff --git a/bin/typescript-rxjs-petstore-with-npm-version.json b/bin/typescript-rxjs-petstore-with-npm-version.json deleted file mode 100644 index 08ff54292bc..00000000000 --- a/bin/typescript-rxjs-petstore-with-npm-version.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "npmName": "@openapitools/typescript-rxjs-petstore", - "npmVersion": "1.0.0", - "npmRepository" : "https://skimdb.npmjs.com/registry", - "snapshot" : false -} diff --git a/bin/typescript-rxjs-petstore-with-npm-version.sh b/bin/typescript-rxjs-petstore-with-npm-version.sh deleted file mode 100755 index 1026bbcf651..00000000000 --- a/bin/typescript-rxjs-petstore-with-npm-version.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-rxjs -c bin/typescript-rxjs-petstore-with-npm-version.json -o samples/client/petstore/typescript-rxjs/builds/with-npm-version $@" - -java $JAVA_OPTS -jar $executable $ags \ No newline at end of file diff --git a/bin/typescript-rxjs-petstore.sh b/bin/typescript-rxjs-petstore.sh deleted file mode 100755 index f0e7865d650..00000000000 --- a/bin/typescript-rxjs-petstore.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/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/2_0/petstore.yaml -g typescript-rxjs -o samples/client/petstore/typescript-rxjs/builds/default $@" - -java $JAVA_OPTS -jar $executable $ags \ No newline at end of file diff --git a/bin/utils/ensure-up-to-date b/bin/utils/ensure-up-to-date index ea74226e31f..efe99bd76a5 100755 --- a/bin/utils/ensure-up-to-date +++ b/bin/utils/ensure-up-to-date @@ -6,87 +6,21 @@ declare cwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" declare root="$(cd "$cwd" && cd ../../ && pwd)" declare executable="${root}/modules/openapi-generator-cli/target/openapi-generator-cli.jar" -declare batch_mode="false" echo "# START SCRIPT: $0" echo "IMPORTANT: this script should be run by the CI (e.g. Shippable) to ensure that the 'samples/' folder is up to date." -if [ "--batch" = "$1" ]; then - batch_mode="true" - echo "Running in 'batch mode' (single JVM, mutliple threads)." -else - echo "When running locally execute with argument --batch." -fi echo "Please press CTRL+C to stop or the script will continue in 5 seconds." sleep 5 -declare -a samples=( -"${root}/bin/ruby-client-petstore.sh" -"${root}/bin/ruby-client-petstore-faraday.sh" -"${root}/bin/java-petstore-all.sh" -"${root}/bin/java-jaxrs-petstore-server-all.sh" -"${root}/bin/java-msf4j-petstore-server.sh" -"${root}/bin/openapi3/jaxrs-jersey-petstore.sh" -"${root}/bin/spring-all-petstore.sh" -"${root}/bin/javascript-petstore-all.sh" -"${root}/bin/kotlin-client-all.sh" -"${root}/bin/kotlin-server-petstore.sh" -"${root}/bin/kotlin-springboot-petstore-server.sh" -"${root}/bin/kotlin-springboot-petstore-server-reactive.sh" -"${root}/bin/mysql-schema-petstore.sh" -"${root}/bin/nim-client-petstore.sh" -"${root}/bin/python-petstore-all.sh" -"${root}/bin/python-server-all.sh" -"${root}/bin/openapi3/python-petstore.sh" -"${root}/bin/openapi3/python-experimental-petstore.sh" -"${root}/bin/php-petstore.sh" -"${root}/bin/php-silex-petstore-server.sh" -"${root}/bin/php-symfony-petstore.sh" -"${root}/bin/php-lumen-petstore-server.sh" -"${root}/bin/php-slim-server-petstore.sh" -#"${root}/bin/php-slim4-server-petstore.sh" -"${root}/bin/php-ze-ph-petstore-server.sh" -"${root}/bin/openapi3/php-petstore.sh" -"${root}/bin/typescript-angularjs-petstore.sh" -"${root}/bin/typescript-angular-petstore-all.sh" -"${root}/bin/typescript-aurelia-petstore.sh" -"${root}/bin/typescript-axios-petstore-all.sh" -"${root}/bin/typescript-fetch-petstore-all.sh" -"${root}/bin/typescript-inversify-petstore.sh" -"${root}/bin/typescript-jquery-petstore-all.sh" -"${root}/bin/typescript-node-petstore-all.sh" -"${root}/bin/typescript-rxjs-petstore-all.sh" -"${root}/bin/rust-server-petstore.sh" -"${root}/bin/r-petstore.sh" -"${root}/bin/haskell-http-client-petstore.sh" -"${root}/bin/csharp-petstore.sh" -"${root}/bin/csharp-netcore-petstore-all.sh" -"${root}/bin/elixir-petstore.sh" -"${root}/bin/openapi3/go-petstore.sh" -"${root}/bin/openapi3/go-experimental-petstore.sh" -"${root}/bin/go-experimental-petstore.sh" -"${root}/bin/go-petstore.sh" -"${root}/bin/go-petstore-withxml.sh" -"${root}/bin/go-petstore-server.sh" -"${root}/bin/go-gin-petstore-server.sh" -"${root}/bin/groovy-petstore.sh" -"${root}/bin/apex-petstore.sh" -"${root}/bin/perl-petstore-all.sh" -"${root}/bin/dart-jaguar-petstore.sh" -#"${root}/bin/dart-dio-petstore.sh" -"${root}/bin/dart-petstore.sh" -"${root}/bin/dart2-petstore.sh" -"${root}/bin/java-play-framework-petstore-server-all.sh" -"${root}/bin/openapi3/elm.sh" -"${root}/bin/typescript-redux-query-petstore-with-npm-version.sh" -"${root}/bin/cpp-restsdk-petstore.sh" -"${root}/bin/cpp-qt5-qhttpengine-server-petstore.sh" -#"${root}/bin/openapi3/powershell-experimental-petstore.sh" -"${root}/bin/scala-akka-petstore.sh" -"${root}/bin/scala-sttp-petstore.sh" -"${root}/bin/lua-petstore.sh" -) +"${root}/bin/generate-samples.sh" + +status=$? +if [ $status -ne 0 ]; then + echo "ERROR: One or more generators failed to generate. Halting ensure-up-to-date scripts." >&2 + exit $status +fi # Some special case generators may expect to be run as a stanalone process (e.g. modifying classpath) # Docs should always be run, regardless of batch or operation. @@ -97,27 +31,9 @@ declare -a always_iterate=( "${root}/bin/utils/export_generators_readme.sh" ) -export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.defaultLogLevel=warn" -if [ "true" = "$batch_mode" ]; then - if [ ! -f "$executable" ]; then - (cd "${root}" && mvn -B --no-snapshot-updates clean package -DskipTests=true -Dmaven.javadoc.skip=true) - fi - - # shellcheck disable=SC2086 - java $JAVA_OPTS -jar "$executable" batch --includes-base-dir "${root}" --fail-fast -- "${root}"/bin/ci/* -else - for script in "${samples[@]}"; do - if eval "$script" > /dev/null 2>&1; then - echo "Executed $script successfully!" - else - echo "ERROR: Failed to run $script" - exit 1 - fi - done -fi - for i in "${always_iterate[@]}"; do - if eval "$i" > /dev/null 2>&1; then + echo "Starting $i ..." + if eval "$i"; then echo "Executed $i successfully!" else echo "ERROR: Failed to run $i" diff --git a/bin/windows/android-petstore-all.bat b/bin/windows/android-petstore-all.bat deleted file mode 100755 index 65862f5f0b2..00000000000 --- a/bin/windows/android-petstore-all.bat +++ /dev/null @@ -1,2 +0,0 @@ -call .\bin\windows\android-petstore-volley.bat -call .\bin\windows\android-petstore-httpclient.bat diff --git a/bin/windows/android-petstore-httpclient.bat b/bin/windows/android-petstore-httpclient.bat deleted file mode 100755 index 181ec906a49..00000000000 --- a/bin/windows/android-petstore-httpclient.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g android -o samples\client\petstore\android\httpclient -Dlibrary=httpclient - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/android-petstore-volley.bat b/bin/windows/android-petstore-volley.bat deleted file mode 100755 index c4d2e4ac988..00000000000 --- a/bin/windows/android-petstore-volley.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g android -o samples\client\petstore\android\volley - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/android-petstore.bat b/bin/windows/android-petstore.bat deleted file mode 100755 index b2183d8459b..00000000000 --- a/bin/windows/android-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g android -o samples\client\petstore\android\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/apache2-petstore-config.bat b/bin/windows/apache2-petstore-config.bat deleted file mode 100644 index 135ddabc573..00000000000 --- a/bin/windows/apache2-petstore-config.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\apache2\ -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g apache2 -o samples\config\petstore\apache2\ - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/apex-petstore.bat b/bin/windows/apex-petstore.bat deleted file mode 100755 index fb23607cb8c..00000000000 --- a/bin/windows/apex-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g apex -o samples\client\petstore\apex - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/asciidoc-documentation-petstore.bat b/bin/windows/asciidoc-documentation-petstore.bat deleted file mode 100644 index 476fcb2bc93..00000000000 --- a/bin/windows/asciidoc-documentation-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "asciidoc-petstore-documentation" -t modules\openapi-generator\src\main\resources\asciidoc-documentation --additional-properties=specDir=modules\openapi-generator\src\main\resources\asciidoc-documentation,snippetDir=. -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g asciidoc -o samples\documentation\asciidoc - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/aspnetcore-petstore-server.bat b/bin/windows/aspnetcore-petstore-server.bat deleted file mode 100755 index ee7f8b0f347..00000000000 --- a/bin/windows/aspnetcore-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g aspnetcore -o samples\server\petstore\aspnetcore\ --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/aspnetcore3-petstore-server.bat b/bin/windows/aspnetcore3-petstore-server.bat deleted file mode 100644 index 8e5e78ad400..00000000000 --- a/bin/windows/aspnetcore3-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g aspnetcore -o samples\server\petstore\aspnetcore3\ --additional-properties packageGuid={3C799344-F285-4669-8FD5-7ED9B795D5C5} --additional-properties aspnetCoreVersion=3.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/c-petstore.bat b/bin/windows/c-petstore.bat deleted file mode 100755 index a3928e7c404..00000000000 --- a/bin/windows/c-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g c -o samples\client\petstore\c - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/clojure-petstore.bat b/bin/windows/clojure-petstore.bat deleted file mode 100755 index bddf851b5f3..00000000000 --- a/bin/windows/clojure-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.json -g clojure -o samples\client\petstore\clojure - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-pistache-server-petstore.bat b/bin/windows/cpp-pistache-server-petstore.bat deleted file mode 100644 index 3f9e53029b5..00000000000 --- a/bin/windows/cpp-pistache-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-pistache-server -o samples\server\petstore\cpp-pistache\ - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-qt5-petstore.bat b/bin/windows/cpp-qt5-petstore.bat deleted file mode 100755 index eb49309ca8d..00000000000 --- a/bin/windows/cpp-qt5-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-qt5-client -o samples\client\petstore\cpp-qt5 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-qt5-qhttpengine-server-petstore.bat b/bin/windows/cpp-qt5-qhttpengine-server-petstore.bat deleted file mode 100644 index 3128febff60..00000000000 --- a/bin/windows/cpp-qt5-qhttpengine-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-qt5-qhttpengine-server -o samples\server\petstore\cpp-qt5-qhttpengine-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-restbed-petstore-server.bat b/bin/windows/cpp-restbed-petstore-server.bat deleted file mode 100644 index e3a76db3f91..00000000000 --- a/bin/windows/cpp-restbed-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-restbed-server -o samples\server\petstore\cpp-restbed\ - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-restsdk-petstore.bat b/bin/windows/cpp-restsdk-petstore.bat deleted file mode 100755 index 074bef98668..00000000000 --- a/bin/windows/cpp-restsdk-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-restsdk -o samples\client\petstore\cpp-restsdk\client - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-tizen-petstore.bat b/bin/windows/cpp-tizen-petstore.bat deleted file mode 100755 index 969f87e6b1e..00000000000 --- a/bin/windows/cpp-tizen-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-tizen -o samples\client\petstore\cpp-tizen - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/cpp-ue4-petstore.bat b/bin/windows/cpp-ue4-petstore.bat deleted file mode 100644 index 726c92dc1ac..00000000000 --- a/bin/windows/cpp-ue4-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g cpp-ue4 -o samples\client\petstore\cpp-ue4 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/csharp-dotnet2-petstore.bat b/bin/windows/csharp-dotnet2-petstore.bat deleted file mode 100755 index f5bc77332e6..00000000000 --- a/bin/windows/csharp-dotnet2-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set 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% diff --git a/bin/windows/csharp-netcore-petstore-all.bat b/bin/windows/csharp-netcore-petstore-all.bat deleted file mode 100644 index 5396937bafd..00000000000 --- a/bin/windows/csharp-netcore-petstore-all.bat +++ /dev/null @@ -1,7 +0,0 @@ - -REM C# Petstore API client .NET Standard 2.0 -call .\bin\windows\csharp-netcore-petstore.bat - -REM C# Petstore API client .NET Core 2.0 -call .\bin\windows\csharp-netcore-petstore-netcore.bat - diff --git a/bin/windows/csharp-netcore-petstore-netcore.bat b/bin/windows/csharp-netcore-petstore-netcore.bat deleted file mode 100644 index 9130c2d8e24..00000000000 --- a/bin/windows/csharp-netcore-petstore-netcore.bat +++ /dev/null @@ -1,15 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples\client\petstore\csharp-netcore\OpenAPIClientCore --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true,targetFramework=netcoreapp2.0 - -java %JAVA_OPTS% -jar %executable% %ags% - -REM restore csproj file -echo "restore csproject file: CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj" -copy /b/v/y CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp-netcore\OpenAPIClientCore\src\Org.OpenAPITools.Test\ - diff --git a/bin/windows/csharp-netcore-petstore.bat b/bin/windows/csharp-netcore-petstore.bat deleted file mode 100644 index b182ba34194..00000000000 --- a/bin/windows/csharp-netcore-petstore.bat +++ /dev/null @@ -1,15 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp-netcore -o samples\client\petstore\csharp-netcore\OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C},useCompareNetObjects=true - -java %JAVA_OPTS% -jar %executable% %ags% - -REM restore csproj file -echo "restore csproject file: CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj" -copy /b/v/y CI\samples.ci\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp-netcore\OpenAPIClient\src\Org.OpenAPITools.Test\ - diff --git a/bin/windows/csharp-petstore-all.bat b/bin/windows/csharp-petstore-all.bat deleted file mode 100755 index 20808357fa5..00000000000 --- a/bin/windows/csharp-petstore-all.bat +++ /dev/null @@ -1,18 +0,0 @@ -REM C# Petstore API client -call .\bin\windows\csharp-petstore.bat - -REM C# Petstore API client with PropertyChanged -call .\bin\windows\csharp-property-changed-petstore.bat - -REM C# Petstore API client (v5.0 for .net standarnd 1.3+) -call .\bin\windows\csharp-petstore-netstandard.bat - -call .\bin\windows\csharp-dotnet2-petstore.bat - -call .\bin\windows\csharp-petstore-netcore-project.bat - -call .\bin\windows\csharp-property-changed-petstore.bat - -call .\bin\windows\csharp-petstore-net-40.bat - -call .\bin\windows\csharp-petstore-net-35.bat diff --git a/bin/windows/csharp-petstore-net-35.bat b/bin/windows/csharp-petstore-net-35.bat deleted file mode 100644 index 555ff79cc35..00000000000 --- a/bin/windows/csharp-petstore-net-35.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples/client/petstore/csharp/OpenApiClientNet35 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c ./bin/csharp-petstore-net-35.json - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/csharp-petstore-net-40.bat b/bin/windows/csharp-petstore-net-40.bat deleted file mode 100644 index 08f49c4c766..00000000000 --- a/bin/windows/csharp-petstore-net-40.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples\client\petstore\csharp\OpenApiClientNet40 --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} -c .\bin\csharp-petstore-net-40.json - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/csharp-petstore-netcore-project.bat b/bin/windows/csharp-petstore-netcore-project.bat deleted file mode 100644 index 5538f292b97..00000000000 --- a/bin/windows/csharp-petstore-netcore-project.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples\client\petstore\csharp\OpenApiClientNetCoreProject --additional-properties targetFramework=v5.0,packageGuid={67035b31-f8e5-41a4-9673-954035084f7d},netCoreProjectFile=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/csharp-petstore-netstandard.bat b/bin/windows/csharp-petstore-netstandard.bat deleted file mode 100644 index b2abd6bfa02..00000000000 --- a/bin/windows/csharp-petstore-netstandard.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples\client\petstore\csharp\OpenApiClientNetStandard --additional-properties targetFramework=v5.0,packageGuid={3AB1F259-1769-484B-9411-84505FCCBD55} - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/csharp-petstore.bat b/bin/windows/csharp-petstore.bat deleted file mode 100755 index f231c5848c5..00000000000 --- a/bin/windows/csharp-petstore.bat +++ /dev/null @@ -1,15 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test/resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples\client\petstore\csharp\OpenAPIClient --additional-properties packageGuid={321C8C3F-0156-40C1-AE42-D59761FB9B6C} - -java %JAVA_OPTS% -jar %executable% %ags% - -REM restore csproj file -echo "restore csproject file: CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj" -copy /b/v/y CI\samples.ci\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\Org.OpenAPITools.Test.csproj samples\client\petstore\csharp\OpenAPIClient\src\Org.OpenAPITools.Test\ - diff --git a/bin/windows/csharp-property-changed-petstore.bat b/bin/windows/csharp-property-changed-petstore.bat deleted file mode 100644 index 48cdf749f01..00000000000 --- a/bin/windows/csharp-property-changed-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g csharp -o samples\client\petstore\csharp\OpenApiClientWithPropertyChanged --additional-properties=generatePropertyChanged=true,optionalEmitDefaultValues=true,packageGuid={5CD900DE-8266-412F-A758-28E1F9C623D5} - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/dart-client-petstore.bat b/bin/windows/dart-client-petstore.bat deleted file mode 100755 index c7a062603f7..00000000000 --- a/bin/windows/dart-client-petstore.bat +++ /dev/null @@ -1,12 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g dart-jaguar -o samples\client\petstore\dart-jaguar\openapi --additional-properties hideGenerationTimestamp=true,browserClient=false -java %JAVA_OPTS% -jar %executable% %ags% - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g dart-jaguar -o samples\client\petstore\dart-jaguar\flutter_petstore\openapi --additional-properties hideGenerationTimestamp=true -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/dart-dio-petstore.bat b/bin/windows/dart-dio-petstore.bat deleted file mode 100755 index 6905d655468..00000000000 --- a/bin/windows/dart-dio-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g dart-dio -o samples\client\petstore\dart-dio --additional-properties hideGenerationTimestamp=true -java %JAVA_OPTS% -jar %executable% %ags% - diff --git a/bin/windows/dart-petstore.bat b/bin/windows/dart-petstore.bat deleted file mode 100755 index bda54a28195..00000000000 --- a/bin/windows/dart-petstore.bat +++ /dev/null @@ -1,15 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g dart -o samples\client\petstore\dart\openapi --additional-properties hideGenerationTimestamp=true,browserClient=false -java %JAVA_OPTS% -jar %executable% %ags% - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g dart -o samples\client\petstore\dart\openapi-browser-client --additional-properties hideGenerationTimestamp=true,browserClient=true -java %JAVA_OPTS% -jar %executable% %ags% - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g dart -o samples\client\petstore\dart\flutter_petstore\openapi --additional-properties hideGenerationTimestamp=true,browserClient=false -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/dynamic-html-petstore.bat b/bin/windows/dynamic-html-petstore.bat deleted file mode 100755 index 885308fdb8a..00000000000 --- a/bin/windows/dynamic-html-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g dynamic-html -o samples\client\petstore\dynamic-html - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/eiffel-petstore.bat b/bin/windows/eiffel-petstore.bat deleted file mode 100644 index 707ad13b3fa..00000000000 --- a/bin/windows/eiffel-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g eiffel -o samples\client\petstore\eiffel - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/elm-petstore.bat b/bin/windows/elm-petstore.bat deleted file mode 100755 index d881f60bba8..00000000000 --- a/bin/windows/elm-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g elm -o samples\client\petstore\elm - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/erlang-petstore-client.bat b/bin/windows/erlang-petstore-client.bat deleted file mode 100755 index 88d0c61506d..00000000000 --- a/bin/windows/erlang-petstore-client.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\erlang-client -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g erlang-client -o samples\client\petstore\erlang-client - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/erlang-petstore-server.bat b/bin/windows/erlang-petstore-server.bat deleted file mode 100755 index 9b53c9f606c..00000000000 --- a/bin/windows/erlang-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\erlang-server -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g erlang-server -o samples\server\petstore\erlang-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/flash-petstore.bat b/bin/windows/flash-petstore.bat deleted file mode 100755 index 67b04a732ed..00000000000 --- a/bin/windows/flash-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g flash -o samples\client\petstore\flash -c bin\flash-petstore.json - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/fsharp-functions-server-petstore.bat b/bin/windows/fsharp-functions-server-petstore.bat deleted file mode 100644 index 560697ffe1b..00000000000 --- a/bin/windows/fsharp-functions-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "fsharp-functions-petstore-server" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g fsharp-functions -o samples\server\petstore\fsharp-functions - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/fsharp-giraffe-server-petstore.bat b/bin/windows/fsharp-giraffe-server-petstore.bat deleted file mode 100644 index 98b516e11aa..00000000000 --- a/bin/windows/fsharp-giraffe-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "fsharp-giraffe-petstore-server" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g fsharp-giraffe-server -o samples\server\petstore\fsharp-giraffe - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/go-experimental-petstore.bat b/bin/windows/go-experimental-petstore.bat deleted file mode 100755 index 1a62e273e5d..00000000000 --- a/bin/windows/go-experimental-petstore.bat +++ /dev/null @@ -1,21 +0,0 @@ -setlocal - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set SPEC=modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -set GENERATOR=go-experimental -set STUB_DIR=samples\client\petstore\go-experimental\go-petstore - -echo Removing files and folders under %STUB_DIR% -del /F /S /Q %STUB_DIR% - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\%GENERATOR% -i %SPEC% -g %GENERATOR% -o %STUB_DIR% -DpackageName=petstore - -java %JAVA_OPTS% -jar %executable% %ags% - -endlocal diff --git a/bin/windows/go-gin-petstore-server.bat b/bin/windows/go-gin-petstore-server.bat deleted file mode 100644 index 1085b4e9418..00000000000 --- a/bin/windows/go-gin-petstore-server.bat +++ /dev/null @@ -1,21 +0,0 @@ -setlocal - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set SPEC=modules\openapi-generator\src\test\resources\3_0\petstore.yaml -set GENERATOR=go-gin-server -set STUB_DIR=samples\server\petstore\go-gin-api-server - -echo Removing files and folders under %STUB_DIR% -del /F /S /Q %STUB_DIR%\go - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i %SPEC% -g %GENERATOR% -o %STUB_DIR% --additional-properties packageName=petstoreserver - -java %JAVA_OPTS% -jar %executable% %ags% - -endlocal diff --git a/bin/windows/go-petstore-server.bat b/bin/windows/go-petstore-server.bat deleted file mode 100644 index 32ab6977d2f..00000000000 --- a/bin/windows/go-petstore-server.bat +++ /dev/null @@ -1,21 +0,0 @@ -setlocal - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set SPEC=modules\openapi-generator\src\test\resources\3_0\petstore.yaml -set GENERATOR=go-server -set STUB_DIR=samples\server\petstore\go-api-server - -echo Removing files and folders under %STUB_DIR% -del /F /S /Q %STUB_DIR%\go - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i %SPEC% -g %GENERATOR% -o %STUB_DIR% --additional-properties packageName=petstoreserver - -java %JAVA_OPTS% -jar %executable% %ags% - -endlocal diff --git a/bin/windows/go-petstore-withxml.bat b/bin/windows/go-petstore-withxml.bat deleted file mode 100644 index e24f3798f8f..00000000000 --- a/bin/windows/go-petstore-withxml.bat +++ /dev/null @@ -1,21 +0,0 @@ -setlocal - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set SPEC=modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -set GENERATOR=go -set STUB_DIR=samples\client\petstore\go\go-petstore-withXml - -echo Removing files and folders under %STUB_DIR% -del /F /S /Q %STUB_DIR% - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\go -i %SPEC% -g %GENERATOR% -o %STUB_DIR% --additional-properties packageName=petstore,withXml=true - -java %JAVA_OPTS% -jar %executable% %ags% - -endlocal \ No newline at end of file diff --git a/bin/windows/go-petstore.bat b/bin/windows/go-petstore.bat deleted file mode 100755 index 8f00f7070a1..00000000000 --- a/bin/windows/go-petstore.bat +++ /dev/null @@ -1,21 +0,0 @@ -setlocal - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set SPEC=modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -set GENERATOR=go -set STUB_DIR=samples\client\petstore\go\go-petstore - -echo Removing files and folders under %STUB_DIR% -del /F /S /Q %STUB_DIR% - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\go -i %SPEC% -g %GENERATOR% -o %STUB_DIR% --additional-properties packageName=petstore - -java %JAVA_OPTS% -jar %executable% %ags% - -endlocal \ No newline at end of file diff --git a/bin/windows/graphql-nodejs-express-petstore-server.bat b/bin/windows/graphql-nodejs-express-petstore-server.bat deleted file mode 100755 index 1cb7b3a8e73..00000000000 --- a/bin/windows/graphql-nodejs-express-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\graphql-nodejs-express-server -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g graphql-nodejs-express-server -o samples\server\petstore\graphql-nodejs-express-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/graphql-schema-petstore.bat b/bin/windows/graphql-schema-petstore.bat deleted file mode 100755 index ad9d5c5fde9..00000000000 --- a/bin/windows/graphql-schema-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\graphql-schema -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g graphql-schema -o samples\config\petstore\graphql-schema - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/groovy-petstore.bat b/bin/windows/groovy-petstore.bat deleted file mode 100644 index 67be72e6134..00000000000 --- a/bin/windows/groovy-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "groovy-petstore-client" -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g groovy -o samples\client\petstore\nim - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/haskell-http-client-petstore.bat b/bin/windows/haskell-http-client-petstore.bat deleted file mode 100755 index 5bce7b5e8c0..00000000000 --- a/bin/windows/haskell-http-client-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g haskell-http-client -o samples\client\petstore\haskell-http-client - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/html-petstore.bat b/bin/windows/html-petstore.bat deleted file mode 100755 index c6720eb10b8..00000000000 --- a/bin/windows/html-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g html -o samples\documentation\html - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/html2-petstore.bat b/bin/windows/html2-petstore.bat deleted file mode 100644 index bc278013c6e..00000000000 --- a/bin/windows/html2-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g html2 -o samples\documentation\html2 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-all.bat b/bin/windows/java-petstore-all.bat deleted file mode 100644 index bb661a9fa1c..00000000000 --- a/bin/windows/java-petstore-all.bat +++ /dev/null @@ -1,20 +0,0 @@ -call .\bin\windows\java-petstore-feign-10x.bat -call .\bin\windows\java-petstore-google-api-client.bat -call .\bin\windows\java-petstore-jersey1.bat -call .\bin\windows\java-petstore-jersey2-java8.bat -call .\bin\windows\java-petstore-native.bat -call .\bin\windows\java-petstore-okhttp-gson-parcelable.bat -call .\bin\windows\java-petstore-okhttp-gson.bat -call .\bin\windows\java-petstore-rest-assured.bat -call .\bin\windows\java-petstore-rest-assured-jackson.bat -call .\bin\windows\java-petstore-resteasy.bat -call .\bin\windows\java-petstore-resttemplate-withxml.bat -call .\bin\windows\java-petstore-resttemplate.bat -call .\bin\windows\java-petstore-retrofit2-play24.bat -call .\bin\windows\java-petstore-retrofit2-play25.bat -call .\bin\windows\java-petstore-retrofit2-play26.bat -call .\bin\windows\java-petstore-retrofit2.bat -call .\bin\windows\java-petstore-retrofit2rx.bat -call .\bin\windows\java-petstore-retrofit2rx2.bat -call .\bin\windows\java-petstore-vertx.bat -call .\bin\windows\java-petstore-webclient.bat diff --git a/bin/windows/java-petstore-feign-10x.bat b/bin/windows/java-petstore-feign-10x.bat deleted file mode 100644 index d9163fdac99..00000000000 --- a/bin/windows/java-petstore-feign-10x.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\feign -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-feign-10x.json -o samples\client\petstore\java\feign10x --additional-properties hideGenerationTimestamp=true,booleanGetterPrefix=is - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-google-api-client.bat b/bin/windows/java-petstore-google-api-client.bat deleted file mode 100644 index c9d2d761b66..00000000000 --- a/bin/windows/java-petstore-google-api-client.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\google-api-client -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-google-api-client.json -o samples\client\petstore\java\google-api-client --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-jersey1.bat b/bin/windows/java-petstore-jersey1.bat deleted file mode 100644 index b862cb16d9f..00000000000 --- a/bin/windows/java-petstore-jersey1.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate --artifact-id petstore-java-client-jersey1 -t modules\openapi-generator\src\main\resources\Java -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -o samples\client\petstore\java\jersey1 --additional-properties hideGenerationTimestamp=true --library=jersey1 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-jersey2-java8.bat b/bin/windows/java-petstore-jersey2-java8.bat deleted file mode 100644 index 5880a6554f3..00000000000 --- a/bin/windows/java-petstore-jersey2-java8.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-jersey2-java8.json -o samples\client\petstore\java\jersey2-java8 --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-microprofile.bat b/bin/windows/java-petstore-microprofile.bat deleted file mode 100755 index 4367768ea1b..00000000000 --- a/bin/windows/java-petstore-microprofile.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "microprofile-rest-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g java --library microprofile -o samples\client\petstore\java\microprofile-rest-client - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-native.bat b/bin/windows/java-petstore-native.bat deleted file mode 100644 index e7301e90679..00000000000 --- a/bin/windows/java-petstore-native.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\native -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-native.json -o samples\client\petstore\java\native --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-okhttp-gson-parcelable.bat b/bin/windows/java-petstore-okhttp-gson-parcelable.bat deleted file mode 100644 index 402a3cda7f9..00000000000 --- a/bin/windows/java-petstore-okhttp-gson-parcelable.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate --artifact-id petstore-okhttp-gson-parcelableModel -t modules\openapi-generator\src\main\resources\Java\libraries\okhttp-gson -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-okhttp-gson.json -o samples\client\petstore\java\okhttp-gson-parcelableModel --additional-properties hideGenerationTimestamp=true,parcelableModel=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-okhttp-gson.bat b/bin/windows/java-petstore-okhttp-gson.bat deleted file mode 100755 index 80581ca14d4..00000000000 --- a/bin/windows/java-petstore-okhttp-gson.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\okhttp-gson -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-okhttp-gson.json -o samples\client\petstore\java\okhttp-gson --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-rest-assured-jackson.bat b/bin/windows/java-petstore-rest-assured-jackson.bat deleted file mode 100644 index 8104df8b771..00000000000 --- a/bin/windows/java-petstore-rest-assured-jackson.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set 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-jackson.json -o samples\client\petstore\java\rest-assured-jackson --additional-properties hideGenerationTimestamp=true,booleanGetterPrefix=is,java8=true,dateLibrary=java8,serializationLibrary=jackson,useBeanValidation=true,performBeanValidation=true, - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-rest-assured.bat b/bin/windows/java-petstore-rest-assured.bat deleted file mode 100644 index 758af247586..00000000000 --- a/bin/windows/java-petstore-rest-assured.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set 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 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-resttemplate-resteasy.bat b/bin/windows/java-petstore-resttemplate-resteasy.bat deleted file mode 100644 index 9cf81f4e109..00000000000 --- a/bin/windows/java-petstore-resttemplate-resteasy.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-resteasy.json -o samples\client\petstore\java\resteasy --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-resttemplate-webclient.bat b/bin/windows/java-petstore-resttemplate-webclient.bat deleted file mode 100644 index 3330fc590ab..00000000000 --- a/bin/windows/java-petstore-resttemplate-webclient.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-webclient.json -o samples\client\petstore\java\webclient --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-resttemplate-withxml.bat b/bin/windows/java-petstore-resttemplate-withxml.bat deleted file mode 100644 index ee67b4cd43f..00000000000 --- a/bin/windows/java-petstore-resttemplate-withxml.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate --artifact-id petstore-resttemplate-withxml -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-resttemplate.json -o samples\client\petstore\java\resttemplate-withXml --additional-properties hideGenerationTimestamp=true,withXml=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-resttemplate.bat b/bin/windows/java-petstore-resttemplate.bat deleted file mode 100644 index 50de951c129..00000000000 --- a/bin/windows/java-petstore-resttemplate.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-resttemplate.json -o samples\client\petstore\java\resttemplate --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-retrofit2-all.bat b/bin/windows/java-petstore-retrofit2-all.bat deleted file mode 100644 index bb6d0dee4da..00000000000 --- a/bin/windows/java-petstore-retrofit2-all.bat +++ /dev/null @@ -1,6 +0,0 @@ -call .\bin\windows\java-petstore-retrofit2-play24.bat -call .\bin\windows\java-petstore-retrofit2-play25.bat -call .\bin\windows\java-petstore-retrofit2-play26.bat -call .\bin\windows\java-petstore-retrofit2.bat -call .\bin\windows\java-petstore-retrofit2rx.bat -call .\bin\windows\java-petstore-retrofit2rx2.bat diff --git a/bin/windows/java-petstore-retrofit2-play24.bat b/bin/windows/java-petstore-retrofit2-play24.bat deleted file mode 100644 index bfb57e1bb6f..00000000000 --- a/bin/windows/java-petstore-retrofit2-play24.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate --artifact-id petstore-java-client-retrofit2-play24 -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-retrofit2-play24.json -o samples\client\petstore\java\retrofit2-play24 --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-retrofit2-play25.bat b/bin/windows/java-petstore-retrofit2-play25.bat deleted file mode 100644 index d76bb00e1ea..00000000000 --- a/bin/windows/java-petstore-retrofit2-play25.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate --artifact-id petstore-java-client-retrofit2-play25 -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-retrofit2-play25.json -o samples\client\petstore\java\retrofit2-play25 --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-retrofit2-play26.bat b/bin/windows/java-petstore-retrofit2-play26.bat deleted file mode 100644 index 2e740ac67d7..00000000000 --- a/bin/windows/java-petstore-retrofit2-play26.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate --artifact-id petstore-java-client-retrofit2-play26 -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-retrofit2-play26.json -o samples\client\petstore\java\retrofit2-play26 --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-retrofit2.bat b/bin/windows/java-petstore-retrofit2.bat deleted file mode 100644 index e0d57dfdaa2..00000000000 --- a/bin/windows/java-petstore-retrofit2.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\retrofit2 -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-retrofit2.json -o samples\client\petstore\java\retrofit2 --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-retrofit2rx.bat b/bin/windows/java-petstore-retrofit2rx.bat deleted file mode 100644 index e3801c9b7cd..00000000000 --- a/bin/windows/java-petstore-retrofit2rx.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\retrofit2 -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-retrofit2rx.json -o samples\client\petstore\java\retrofit2rx --additional-properties useRxJava=true,hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-retrofit2rx2.bat b/bin/windows/java-petstore-retrofit2rx2.bat deleted file mode 100644 index 29899b36960..00000000000 --- a/bin/windows/java-petstore-retrofit2rx2.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\retrofit2 -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-retrofit2rx2.json -o samples\client\petstore\java\retrofit2rx2 --additional-properties useRxJava2=true,hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-vertx.bat b/bin/windows/java-petstore-vertx.bat deleted file mode 100644 index 151d1ac1fb3..00000000000 --- a/bin/windows/java-petstore-vertx.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\Java\libraries\vertx -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin\java-petstore-vertx.json -o samples\client\petstore\java\vertx --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-petstore-webclient.bat b/bin/windows/java-petstore-webclient.bat deleted file mode 100644 index 17fb94b012a..00000000000 --- a/bin/windows/java-petstore-webclient.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml -g java -c bin/java-petstore-webclient.json -o samples/client/petstore/java/webclient --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-pkmst-petstore-server.bat b/bin/windows/java-pkmst-petstore-server.bat deleted file mode 100644 index ace44650ed4..00000000000 --- a/bin/windows/java-pkmst-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g java-pkmst -o samples\server\petstore\java-pkmst --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-play-framework-petstore-server.bat b/bin/windows/java-play-framework-petstore-server.bat deleted file mode 100644 index 887fdd25709..00000000000 --- a/bin/windows/java-play-framework-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g java-play-framework -o samples\server\petstore\java-play-framework --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-vertx-async-petstore-server.bat b/bin/windows/java-vertx-async-petstore-server.bat deleted file mode 100644 index 5200b705a5d..00000000000 --- a/bin/windows/java-vertx-async-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g java-vertx -o samples\server\petstore\java-vertx\async --additional-properties vertxSwaggerRouterVersion=1.2.0,hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/java-vertx-rx-petstore-server.bat b/bin/windows/java-vertx-rx-petstore-server.bat deleted file mode 100644 index b107bd837e3..00000000000 --- a/bin/windows/java-vertx-rx-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g java-vertx -o samples\server\petstore\java-vertx\rx --additional-properties vertxSwaggerRouterVersion=1.2.0,rxInterface=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/javascript-apollo-petstore.bat b/bin/windows/javascript-apollo-petstore.bat deleted file mode 100755 index 144ada50e46..00000000000 --- a/bin/windows/javascript-apollo-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g javascript-apollo -o samples\client\petstore\javascript-apollo --additional-properties appName=PetstoreClient - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/javascript-es6-petstore.bat b/bin/windows/javascript-es6-petstore.bat deleted file mode 100644 index d7ef07a8400..00000000000 --- a/bin/windows/javascript-es6-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-es6 - -java %JAVA_OPTS% -jar %executable% %ags% --additional-properties appName=PetstoreClient diff --git a/bin/windows/javascript-petstore-all.bat b/bin/windows/javascript-petstore-all.bat deleted file mode 100755 index 0775478ae9e..00000000000 --- a/bin/windows/javascript-petstore-all.bat +++ /dev/null @@ -1,2 +0,0 @@ -call .\bin\windows\javascript-es6-petstore.bat -call .\bin\windows\javascript-promise-es6-petstore.bat diff --git a/bin/windows/javascript-promise-es6-petstore.bat b/bin/windows/javascript-promise-es6-petstore.bat deleted file mode 100644 index 86f71f55ce5..00000000000 --- a/bin/windows/javascript-promise-es6-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-promise-es6 --additional-properties appName=PetstoreClient,usePromises=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/javascript-promise-petstore.bat b/bin/windows/javascript-promise-petstore.bat deleted file mode 100755 index 57756146e65..00000000000 --- a/bin/windows/javascript-promise-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g javascript -o samples\client\petstore\javascript-promise --additional-properties usePromises=true,useES6=false,appName=PetstoreClient - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-cxf-cdi-petstore-server.bat b/bin/windows/jaxrs-cxf-cdi-petstore-server.bat deleted file mode 100644 index 48aadc36fec..00000000000 --- a/bin/windows/jaxrs-cxf-cdi-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf\log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\JavaJaxRS\cxf-cdi -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g jaxrs-cxf-cdi -o samples\server\petstore\jaxrs-cxf-cdi --additional-properties hideGenerationTimestamp=true %* - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-cxf-client-petstore.bat b/bin/windows/jaxrs-cxf-client-petstore.bat deleted file mode 100755 index 2fb0ad0a827..00000000000 --- a/bin/windows/jaxrs-cxf-client-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "jaxrs-cxf-client-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g jaxrs-cxf-client -o samples\client\petstore\jaxrs-cxf-client %* - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-cxf-petstore-server-annotated-base-path.bat b/bin/windows/jaxrs-cxf-petstore-server-annotated-base-path.bat deleted file mode 100644 index 6df7234a239..00000000000 --- a/bin/windows/jaxrs-cxf-petstore-server-annotated-base-path.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id cxf-annotated-basepath -t modules\openapi-generator\src\main\resources\JavaJaxRS\cxf -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g jaxrs-cxf -o samples\server\petstore\jaxrs-cxf-annotated-base-path --additional-properties hideGenerationTimestamp=true,useAnnotatedBasePath=true,serverPort=8082 %* - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-cxf-petstore-server-non-spring-application.bat b/bin/windows/jaxrs-cxf-petstore-server-non-spring-application.bat deleted file mode 100644 index b239011963b..00000000000 --- a/bin/windows/jaxrs-cxf-petstore-server-non-spring-application.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id cxf-server-non-spring -t modules\openapi-generator\src\main\resources\JavaJaxRS\cxf -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g jaxrs-cxf -o samples\server\petstore\jaxrs-cxf-non-spring-app --additional-properties hideGenerationTimestamp=true,generateNonSpringApplication=true,serverPort=8082 %* - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-cxf-petstore-server-test-data.bat b/bin/windows/jaxrs-cxf-petstore-server-test-data.bat deleted file mode 100644 index ac42b6c0474..00000000000 --- a/bin/windows/jaxrs-cxf-petstore-server-test-data.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id cxf-test-data -t modules\openapi-generator\src\main\resources\JavaJaxRS\cxf-ext -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-cxf-extended -o samples\server\petstore\jaxrs-cxf-test-data --additional-properties hideGenerationTimestamp=true,useAnnotatedBasePath=true --generate-alias-as-model --additional-properties java8=true,generateSpringApplication=true,generateSpringBootApplication=true,generateOperationBody=true,loadTestDataFromFile=true %* - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-cxf-petstore-server.bat b/bin/windows/jaxrs-cxf-petstore-server.bat deleted file mode 100644 index 82880f59590..00000000000 --- a/bin/windows/jaxrs-cxf-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\JavaJaxRS\cxf -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-cxf -o samples\server\petstore\jaxrs-cxf --additional-properties hideGenerationTimestamp=true %* - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-spec-petstore-server-interface.bat b/bin/windows/jaxrs-spec-petstore-server-interface.bat deleted file mode 100644 index 41c29d41cc4..00000000000 --- a/bin/windows/jaxrs-spec-petstore-server-interface.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "jaxrs-cxf-client-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-spec -o samples\server\petstore\jaxrs-spec-interface --additional-properties hideGenerationTimestamp=true,serializableModel=true,interfaceOnly=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/jaxrs-spec-petstore-server.bat b/bin/windows/jaxrs-spec-petstore-server.bat deleted file mode 100644 index eeb11da17fa..00000000000 --- a/bin/windows/jaxrs-spec-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "jaxrs-cxf-client-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g jaxrs-spec -o samples\server\petstore\jaxrs-spec --additional-properties hideGenerationTimestamp=true,serializableModel=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/k6-petstore.bat b/bin/windows/k6-petstore.bat deleted file mode 100755 index 098a050214e..00000000000 --- a/bin/windows/k6-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g k6 -o samples\client\petstore\k6 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-all.bat b/bin/windows/kotlin-client-all.bat deleted file mode 100644 index d4dd27a9f64..00000000000 --- a/bin/windows/kotlin-client-all.bat +++ /dev/null @@ -1,11 +0,0 @@ -call powershell -command "& '%~dp0\kotlin-client-gson.bat'" -call powershell -command "& '%~dp0\kotlin-client-moshi-codegen.bat'" -call powershell -command "& '%~dp0\kotlin-client-nonpublic.bat'" -call powershell -command "& '%~dp0\kotlin-client-okhttp3.bat'" -call powershell -command "& '%~dp0\kotlin-client-petstore-multiplatform.bat'" -call powershell -command "& '%~dp0\kotlin-client-petstore.bat'" -call powershell -command "& '%~dp0\kotlin-client-string.bat'" -call powershell -command "& '%~dp0\kotlin-client-threetenbp.bat'" -call powershell -command "& '%~dp0\kotlin-client-nullable.bat'" -call powershell -command "& '%~dp0\kotlin-client-json-request-string.bat'" -call powershell -command "& '%~dp0\kotlin-client-retrofit2.bat'" \ No newline at end of file diff --git a/bin/windows/kotlin-client-gson.bat b/bin/windows/kotlin-client-gson.bat deleted file mode 100644 index 30eeaf423f7..00000000000 --- a/bin/windows/kotlin-client-gson.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-gson" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=gson -o samples\client\petstore\kotlin-gson - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-json-request-string.bat b/bin/windows/kotlin-client-json-request-string.bat deleted file mode 100644 index 1b257af0202..00000000000 --- a/bin/windows/kotlin-client-json-request-string.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-json-request-string" -i modules\openapi-generator\src\test\resources\2_0\petstore-with-date-field.yaml -g kotlin --additional-properties requestDateConverter=toString -o samples\client\petstore\kotlin-json-request-string - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-moshi-codegen.bat b/bin/windows/kotlin-client-moshi-codegen.bat deleted file mode 100644 index 5a2ff14ac75..00000000000 --- a/bin/windows/kotlin-client-moshi-codegen.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-moshi-codegen" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties serializationLibrary=moshi,moshiCodeGen=true -o samples\client\petstore\kotlin-moshi-codegen - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-nonpublic.bat b/bin/windows/kotlin-client-nonpublic.bat deleted file mode 100644 index 899d4318060..00000000000 --- a/bin/windows/kotlin-client-nonpublic.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-nonpublic" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --additional-properties nonPublicApi=true -o samples\client\petstore\kotlin-nonpublic - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-nullable.bat b/bin/windows/kotlin-client-nullable.bat deleted file mode 100644 index cdbfa49839c..00000000000 --- a/bin/windows/kotlin-client-nullable.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --artifact-id "kotlin-petstore-nullable" --additional-properties nullableReturnType=true,serializableModel=true -o samples\client\petstore\kotlin-nullable - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-okhttp3.bat b/bin/windows/kotlin-client-okhttp3.bat deleted file mode 100644 index 8c16e37fe05..00000000000 --- a/bin/windows/kotlin-client-okhttp3.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-okhttp3" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-okhttp3 -o samples\client\petstore\kotlin-okhttp3 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-petstore-multiplatform.bat b/bin/windows/kotlin-client-petstore-multiplatform.bat deleted file mode 100644 index 628170d6007..00000000000 --- a/bin/windows/kotlin-client-petstore-multiplatform.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-client-petstore-multiplatform" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library multiplatform -o samples\client\petstore\kotlin-multiplatform - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-petstore.bat b/bin/windows/kotlin-client-petstore.bat deleted file mode 100644 index a193d7c6a3e..00000000000 --- a/bin/windows/kotlin-client-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin -o samples\client\petstore\kotlin --additional-properties dateLibrary=java8,serializableModel=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-retrofit2.bat b/bin/windows/kotlin-client-retrofit2.bat deleted file mode 100644 index 123c8c28dc8..00000000000 --- a/bin/windows/kotlin-client-retrofit2.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-retrofit2" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --library jvm-retrofit2 -o samples\client\petstore\kotlin-retrofit2 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-string.bat b/bin/windows/kotlin-client-string.bat deleted file mode 100644 index 6e0310ecadf..00000000000 --- a/bin/windows/kotlin-client-string.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --artifact-id "kotlin-petstore-string" --additional-properties dateLibrary=string,serializableModel=true,sortParamsByRequiredFlag=false,sortModelPropertiesByRequiredFlag=false -o samples\client\petstore\kotlin-string - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-client-threetenbp.bat b/bin/windows/kotlin-client-threetenbp.bat deleted file mode 100644 index adc5c68e01a..00000000000 --- a/bin/windows/kotlin-client-threetenbp.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin --artifact-id "kotlin-petstore-threetenbp" --additional-properties dateLibrary=threetenbp -o samples\client\petstore\kotlin-threetenbp - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-server-petstore.bat b/bin/windows/kotlin-server-petstore.bat deleted file mode 100644 index 7ed79a0448b..00000000000 --- a/bin/windows/kotlin-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-petstore-server" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin-server --library=ktor -o samples\server\petstore\kotlin - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-springboot-petstore-server.bat b/bin/windows/kotlin-springboot-petstore-server.bat deleted file mode 100644 index 4133a780d4a..00000000000 --- a/bin/windows/kotlin-springboot-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin-spring -o samples\server\petstore\kotlin-springboot --additional-properties=library=spring-boot,beanValidations=true,swaggerAnnotations=true,serviceImplementation=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/kotlin-vertx-server-petstore.bat b/bin/windows/kotlin-vertx-server-petstore.bat deleted file mode 100644 index 6fd12f43d82..00000000000 --- a/bin/windows/kotlin-vertx-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "kotlin-vertx-petstore-server" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g kotlin-vertx -o samples\server\petstore\kotlin\vertx - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/lua-petstore.bat b/bin/windows/lua-petstore.bat deleted file mode 100755 index fe06bd229a5..00000000000 --- a/bin/windows/lua-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g lua -o samples\client\petstore\lua - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/markdown-documentation-petstore.bat b/bin/windows/markdown-documentation-petstore.bat deleted file mode 100644 index 716ddb8fc46..00000000000 --- a/bin/windows/markdown-documentation-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "markdown-petstore-documentation" -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g markdown -o samples\documentation\petstore\markdown - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/mysql-schema-petstore.bat b/bin/windows/mysql-schema-petstore.bat deleted file mode 100755 index 7590d2c0a7e..00000000000 --- a/bin/windows/mysql-schema-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-fake-endpoints-models-for-testing.yaml -g mysql-schema -o samples\schema\petstore\mysql - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/nancyfx-petstore-server.bat b/bin/windows/nancyfx-petstore-server.bat deleted file mode 100644 index 49460ca6c4d..00000000000 --- a/bin/windows/nancyfx-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g csharp-nancyfx -o samples\server\petstore\nancyfx\ - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/nim-client-petstore.bat b/bin/windows/nim-client-petstore.bat deleted file mode 100644 index 875bff9fe8b..00000000000 --- a/bin/windows/nim-client-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "nim-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml --additional-properties packageName=petstore -g nim -o samples\client\petstore\nim - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/objc-petstore.bat b/bin/windows/objc-petstore.bat deleted file mode 100755 index d5264e33c37..00000000000 --- a/bin/windows/objc-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g objc -o samples\client\petstore\objc\default --additional-properties appName=PetstoreClient - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/ocaml-petstore.bat b/bin/windows/ocaml-petstore.bat deleted file mode 100755 index 09c04a83016..00000000000 --- a/bin/windows/ocaml-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g ocaml -o samples\client\petstore\ocaml - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/perl-petstore.bat b/bin/windows/perl-petstore.bat deleted file mode 100755 index ce307bfee51..00000000000 --- a/bin/windows/perl-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g perl -o samples\client\petstore\perl - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-lumen-petstore-server.bat b/bin/windows/php-lumen-petstore-server.bat deleted file mode 100644 index d5aa42ba790..00000000000 --- a/bin/windows/php-lumen-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php-lumen -o samples\server\petstore\php-lumen - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-petstore.bat b/bin/windows/php-petstore.bat deleted file mode 100755 index ba088beade2..00000000000 --- a/bin/windows/php-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php -o samples\client\petstore\php\OpenAPIClient-php - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-silex-petstore-server.bat b/bin/windows/php-silex-petstore-server.bat deleted file mode 100644 index fcacba12e37..00000000000 --- a/bin/windows/php-silex-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g php-silex-deprecated -o samples\server\petstore\php-silex\OpenAPIServer - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-slim-server-petstore.bat b/bin/windows/php-slim-server-petstore.bat deleted file mode 100755 index 4e896f0184e..00000000000 --- a/bin/windows/php-slim-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php-slim-deprecated -o samples\server\petstore\php-slim - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-slim4-server-petstore.bat b/bin/windows/php-slim4-server-petstore.bat deleted file mode 100644 index c1ac0ef7325..00000000000 --- a/bin/windows/php-slim4-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php-slim4 -o samples\server\petstore\php-slim4 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-symfony-petstore-server.bat b/bin/windows/php-symfony-petstore-server.bat deleted file mode 100644 index 5a7ce4f2184..00000000000 --- a/bin/windows/php-symfony-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g php-symfony -o samples\server\petstore\php-symfony\SymfonyBundle-php - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/php-ze-ph-petstore-server.bat b/bin/windows/php-ze-ph-petstore-server.bat deleted file mode 100644 index da5eacc3639..00000000000 --- a/bin/windows/php-ze-ph-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php-ze-ph -o samples\server\petstore\php-ze-ph - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/plantuml-documentation-petstore.bat b/bin/windows/plantuml-documentation-petstore.bat deleted file mode 100644 index 4a0f9d611f2..00000000000 --- a/bin/windows/plantuml-documentation-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -t modules\openapi-generator\src\main\resources\plantuml -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g plantuml -o samples\documentation\petstore\plantuml - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/powershell-petstore.bat b/bin/windows/powershell-petstore.bat deleted file mode 100755 index f5ea2c5f910..00000000000 --- a/bin/windows/powershell-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore.yaml -g powershell -o samples\client\petstorep\powershell --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% diff --git a/bin/windows/protobuf-schema-petstore.bat b/bin/windows/protobuf-schema-petstore.bat deleted file mode 100755 index 089b714681e..00000000000 --- a/bin/windows/protobuf-schema-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\protobuf-schema -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g protobuf-schema -o samples\config\petstore\protobuf-schema - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/python-experimental-petstore.bat b/bin/windows/python-experimental-petstore.bat deleted file mode 100644 index 2680649d00f..00000000000 --- a/bin/windows/python-experimental-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\python-client-experimental\petstore-with-fake-endpoints-models-for-testing.yaml -g python-experimental -o samples\client\petstore\python-experimental --additional-properties packageName=petstore_api - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/python-petstore.bat b/bin/windows/python-petstore.bat deleted file mode 100755 index c09fd3a44b0..00000000000 --- a/bin/windows/python-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g python -o samples\client\petstore\python --additional-properties packageName=petstore_api - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/python2-flask-petstore.bat b/bin/windows/python2-flask-petstore.bat deleted file mode 100755 index 54189a7d193..00000000000 --- a/bin/windows/python2-flask-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g python-flask -o samples\server\petstore\python-flask-python2 -c bin\supportPython2.json - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/python3-flask-petstore.bat b/bin/windows/python3-flask-petstore.bat deleted file mode 100755 index 56205cf151a..00000000000 --- a/bin/windows/python3-flask-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g python-flask -o samples\server\petstore\python-flask - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/r-petstore.bat b/bin/windows/r-petstore.bat deleted file mode 100755 index b1799427f04..00000000000 --- a/bin/windows/r-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g r -o samples\client\petstore\R --additional-properties packageName=petstore,returnExceptionOnFailure=false,exceptionPackage=default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/rails5-petstore-server.bat b/bin/windows/rails5-petstore-server.bat deleted file mode 100755 index 4f142b59c6a..00000000000 --- a/bin/windows/rails5-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g ruby-on-rails -o samples\server\petstore\rails5\ - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/ruby-client-petstore.bat b/bin/windows/ruby-client-petstore.bat deleted file mode 100755 index aab6582f688..00000000000 --- a/bin/windows/ruby-client-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g ruby -o samples\client\petstore\ruby - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/run-all-petstore.cmd b/bin/windows/run-all-petstore.cmd deleted file mode 100644 index 9a8bdab6821..00000000000 --- a/bin/windows/run-all-petstore.cmd +++ /dev/null @@ -1,15 +0,0 @@ -REM this batch file will loop through all the .bat files under bin\windows\ -REM execute the script and check the error level to see if there's any error - -echo IMPORTANT: this script should be run by the CI (e.g. appveyor) only. There's no need to run this script to update Petstore samples for all generators. -echo Please press CTRL+C to stop or the script will continue in 10 seconds. - -timeout 10 - -for /f "delims=" %%i in ('dir /b ".\bin\windows\*.bat"') do ( - - CALL .\bin\windows\%%i - - IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 exit /b 1 - -) diff --git a/bin/windows/rust-petstore.bat b/bin/windows/rust-petstore.bat deleted file mode 100644 index 8a051c6b19f..00000000000 --- a/bin/windows/rust-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g rust -o samples\client\petstore\rust - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/rust-server-petstore.bat b/bin/windows/rust-server-petstore.bat deleted file mode 100755 index 4654e010913..00000000000 --- a/bin/windows/rust-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g rust-server -o samples\server\petstore\rust-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/scala-akka-http-server-petstore.bat b/bin/windows/scala-akka-http-server-petstore.bat deleted file mode 100644 index d59f6fb47b6..00000000000 --- a/bin/windows/scala-akka-http-server-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "scala-akka-http-petstore-server" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g scala-akka-http-server -o samples\server\petstore\scala-akka-http-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/scala-akka-petstore.bat b/bin/windows/scala-akka-petstore.bat deleted file mode 100755 index 131859e4ec1..00000000000 --- a/bin/windows/scala-akka-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -DloggerPath=conf/log4j.properties -set ags=generate --artifact-id "scala-akka-petstore-client" -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g scala-akka -o samples\client\petstore\scala-akka - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/scala-gatling-petstore.sh b/bin/windows/scala-gatling-petstore.sh deleted file mode 100755 index f8b0168fd51..00000000000 --- a/bin/windows/scala-gatling-petstore.sh +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -t modules\openapi-generator\src\main\resources\scala-gatling -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g scala-gatling -o samples\client\petstore\scala-gatling - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/scala-httpclient-petstore.bat b/bin/windows/scala-httpclient-petstore.bat deleted file mode 100755 index 077c5cdc62e..00000000000 --- a/bin/windows/scala-httpclient-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g scala-httpclient-deprecated -o samples\client\petstore\scala-httpclient - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/scala-lagom-petstore.bat b/bin/windows/scala-lagom-petstore.bat deleted file mode 100644 index 16e91a9e0bd..00000000000 --- a/bin/windows/scala-lagom-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g scala-lagom-server -o samples\server\petstore\scala-lagom-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/scala-play-framework-petstore.bat b/bin/windows/scala-play-framework-petstore.bat deleted file mode 100755 index 11e49896373..00000000000 --- a/bin/windows/scala-play-framework-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g scala-play-server -o samples\server\petstore\scala-play-server - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/spring-mvc-petstore-j8-async-server.bat b/bin/windows/spring-mvc-petstore-j8-async-server.bat deleted file mode 100644 index e87ba8ed7de..00000000000 --- a/bin/windows/spring-mvc-petstore-j8-async-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g spring --library=spring-mvc -o samples\server\petstore\spring-mvc-j8-async -c bin\spring-mvc-petstore-j8-async.json --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/spring-mvc-petstore-server.bat b/bin/windows/spring-mvc-petstore-server.bat deleted file mode 100644 index 02783f339cf..00000000000 --- a/bin/windows/spring-mvc-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -c bin\spring-mvc-petstore-server.json -g spring --library=spring-mvc -o samples\server\petstore\spring-mvc --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/springboot-petstore-server.bat b/bin/windows/springboot-petstore-server.bat deleted file mode 100644 index af0e4c2ba10..00000000000 --- a/bin/windows/springboot-petstore-server.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g spring -o samples\server\petstore\springboot --additional-properties hideGenerationTimestamp=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-all.bat b/bin/windows/swift5-all.bat deleted file mode 100755 index 663df4e22de..00000000000 --- a/bin/windows/swift5-all.bat +++ /dev/null @@ -1,2 +0,0 @@ -call .\bin\windows\swift5-petstore-all.bat -call .\bin\windows\swift5-test.bat diff --git a/bin/windows/swift5-petstore-alamofire.bat b/bin/windows/swift5-petstore-alamofire.bat deleted file mode 100755 index b982ea061e1..00000000000 --- a/bin/windows/swift5-petstore-alamofire.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-alamofire.json -o samples\client\petstore\swift5\alamofireLibrary - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-all.bat b/bin/windows/swift5-petstore-all.bat deleted file mode 100755 index 9d656b1437b..00000000000 --- a/bin/windows/swift5-petstore-all.bat +++ /dev/null @@ -1,10 +0,0 @@ -call .\bin\windows\swift5-petstore.bat -call .\bin\windows\swift5-petstore-promisekit.bat -call .\bin\windows\swift5-petstore-result.bat -call .\bin\windows\swift5-petstore-rxswift.bat -call .\bin\windows\swift5-petstore-objcCompatible.bat -call .\bin\windows\swift5-petstore-nonPublicApi.bat -call .\bin\windows\swift5-petstore-urlsession.bat -call .\bin\windows\swift5-petstore-alamofire.bat -call .\bin\windows\swift5-petstore-combine.bat -call .\bin\windows\swift5-petstore-readonlyProperties.bat diff --git a/bin/windows/swift5-petstore-combine.bat b/bin/windows/swift5-petstore-combine.bat deleted file mode 100755 index 5ea7cc88db9..00000000000 --- a/bin/windows/swift5-petstore-combine.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-combine.json -o samples\client\petstore\swift5\combineLibrary - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-nonPublicApi.bat b/bin/windows/swift5-petstore-nonPublicApi.bat deleted file mode 100755 index 68533369018..00000000000 --- a/bin/windows/swift5-petstore-nonPublicApi.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-nonPublicApi.json -o samples\client\petstore\swift5\nonPublicApi - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-objcCompatible.bat b/bin/windows/swift5-petstore-objcCompatible.bat deleted file mode 100755 index 7d9b7047b4f..00000000000 --- a/bin/windows/swift5-petstore-objcCompatible.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-objcCompatible.json -o samples\client\petstore\swift5\objcCompatible - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-promisekit.bat b/bin/windows/swift5-petstore-promisekit.bat deleted file mode 100755 index cfd9ff41eff..00000000000 --- a/bin/windows/swift5-petstore-promisekit.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-promisekit.json -o samples\client\petstore\swift5\promisekitLibrary - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-readonlyProperties.bat b/bin/windows/swift5-petstore-readonlyProperties.bat deleted file mode 100644 index cc297bd1a4f..00000000000 --- a/bin/windows/swift5-petstore-readonlyProperties.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-readonlyProperties.json -o samples\client\petstore\swift5\readonlyProperties - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-result.bat b/bin/windows/swift5-petstore-result.bat deleted file mode 100755 index 4aabf28d504..00000000000 --- a/bin/windows/swift5-petstore-result.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-result.json -o samples\client\petstore\swift5\resultLibrary - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-rxswift.bat b/bin/windows/swift5-petstore-rxswift.bat deleted file mode 100755 index 862c1820676..00000000000 --- a/bin/windows/swift5-petstore-rxswift.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-rxswift.json -o samples\client\petstore\swift5\rxswiftLibrary - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore-urlSession.bat b/bin/windows/swift5-petstore-urlSession.bat deleted file mode 100755 index 594317a3fa1..00000000000 --- a/bin/windows/swift5-petstore-urlSession.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -c bin\swift5-petstore-urlsession.json -o samples\client\petstore\swift5\urlsessionLibrary - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-petstore.bat b/bin/windows/swift5-petstore.bat deleted file mode 100755 index 26cee2940f4..00000000000 --- a/bin/windows/swift5-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g swift5 -o samples\client\petstore\swift5\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/swift5-test.bat b/bin/windows/swift5-test.bat deleted file mode 100755 index 60d74aabcf6..00000000000 --- a/bin/windows/swift5-test.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\swift5Test.json -g swift5 -c bin\swift5-test.json -o samples\client\test\swift5\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-petstore-all.bat b/bin/windows/typescript-angular-petstore-all.bat deleted file mode 100644 index aa3a4fa2f96..00000000000 --- a/bin/windows/typescript-angular-petstore-all.bat +++ /dev/null @@ -1,11 +0,0 @@ -call .\bin\windows\typescript-angular-v6-provided-in-root.bat -call .\bin\windows\typescript-angular-v6-provided-in-root-with-npm.bat -call .\bin\windows\typescript-angular-v6-not-provided-in-root.bat -call .\bin\windows\typescript-angular-v6-not-provided-in-root-with-npm.bat -call .\bin\windows\typescript-angular-v7-provided-in-root.bat -call .\bin\windows\typescript-angular-v7-provided-in-root-with-npm.bat -call .\bin\windows\typescript-angular-v7-not-provided-in-root.bat -call .\bin\windows\typescript-angular-v7-not-provided-in-root-with-npm.bat -call .\bin\windows\typescript-angular-v8-provided-in-root-with-npm.bat -call .\bin\windows\typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.bat -call .\bin\windows\typescript-angular-v8-single-request-parameter.bat diff --git a/bin/windows/typescript-angular-v6-not-provided-in-root-with-npm.bat b/bin/windows/typescript-angular-v6-not-provided-in-root-with-npm.bat deleted file mode 100644 index 4e3e38dff45..00000000000 --- a/bin/windows/typescript-angular-v6-not-provided-in-root-with-npm.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin\typescript-angular-v6-petstore-not-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v6-not-provided-in-root\builds\with-npm --additional-properties providedInRoot=false --additional-properties ngVersion=6.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v6-not-provided-in-root.bat b/bin/windows/typescript-angular-v6-not-provided-in-root.bat deleted file mode 100644 index d5550355dff..00000000000 --- a/bin/windows/typescript-angular-v6-not-provided-in-root.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -o samples\client\petstore\typescript-angular-v6-not-provided-in-root\builds\default --additional-properties providedInRoot=false --additional-properties ngVersion=6.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v6-provided-in-root-with-npm.bat b/bin/windows/typescript-angular-v6-provided-in-root-with-npm.bat deleted file mode 100644 index a821b0babcf..00000000000 --- a/bin/windows/typescript-angular-v6-provided-in-root-with-npm.bat +++ /dev/null @@ -1,9 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin/typescript-angular-v6-petstore-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v6-provided-in-root\builds\with-npm --additional-properties ngVersion=6.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v6-provided-in-root.bat b/bin/windows/typescript-angular-v6-provided-in-root.bat deleted file mode 100644 index 74650e72d1c..00000000000 --- a/bin/windows/typescript-angular-v6-provided-in-root.bat +++ /dev/null @@ -1,9 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -o samples\client\petstore\typescript-angular-v6-provided-in-root\builds\default --additional-properties ngVersion=6.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v7-not-provided-in-root-with-npm.bat b/bin/windows/typescript-angular-v7-not-provided-in-root-with-npm.bat deleted file mode 100644 index 5a133e10265..00000000000 --- a/bin/windows/typescript-angular-v7-not-provided-in-root-with-npm.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin\typescript-angular-v7-petstore-not-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v7-not-provided-in-root\builds\with-npm --additional-properties providedInRoot=false --additional-properties ngVersion=7.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v7-not-provided-in-root.bat b/bin/windows/typescript-angular-v7-not-provided-in-root.bat deleted file mode 100644 index b9a18244d0f..00000000000 --- a/bin/windows/typescript-angular-v7-not-provided-in-root.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -o samples\client\petstore\typescript-angular-v7-not-provided-in-root\builds\default --additional-properties ngVersion=7.0.0 --additional-properties providedInRoot=false - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v7-provided-in-root-with-npm.bat b/bin/windows/typescript-angular-v7-provided-in-root-with-npm.bat deleted file mode 100644 index 38c98efd01d..00000000000 --- a/bin/windows/typescript-angular-v7-provided-in-root-with-npm.bat +++ /dev/null @@ -1,9 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin/typescript-angular-v7-petstore-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v7-provided-in-root\builds\with-npm --additional-properties ngVersion=7.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v7-provided-in-root.bat b/bin/windows/typescript-angular-v7-provided-in-root.bat deleted file mode 100644 index 2ea04275bc5..00000000000 --- a/bin/windows/typescript-angular-v7-provided-in-root.bat +++ /dev/null @@ -1,9 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -o samples\client\petstore\typescript-angular-v7-provided-in-root\builds\default --additional-properties ngVersion=7.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.bat b/bin/windows/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.bat deleted file mode 100644 index 1929c6542ed..00000000000 --- a/bin/windows/typescript-angular-v8-petstore-provided-in-root-with-prefixed-module-name.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v8-provided-in-root\builds\with-prefixed-module-name --additional-properties ngVersion=8.0.0,apiModulePrefix=PetStore - - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v8-provided-in-root-with-npm.bat b/bin/windows/typescript-angular-v8-provided-in-root-with-npm.bat deleted file mode 100644 index 142c2ac85e7..00000000000 --- a/bin/windows/typescript-angular-v8-provided-in-root-with-npm.bat +++ /dev/null @@ -1,9 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v8-provided-in-root\builds\with-npm --additional-properties ngVersion=8.0.0 - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angular-v8-single-request-parameter.bat b/bin/windows/typescript-angular-v8-single-request-parameter.bat deleted file mode 100644 index c963702b04c..00000000000 --- a/bin/windows/typescript-angular-v8-single-request-parameter.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angular -c bin/typescript-angular-v8-petstore-provided-in-root-with-npm.json -o samples\client\petstore\typescript-angular-v8-provided-in-root\builds\single-request-parameter --additional-properties ngVersion=8.0.0,useSingleRequestParameter=true - - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-angularjs.bat b/bin/windows/typescript-angularjs.bat deleted file mode 100755 index d2e04463269..00000000000 --- a/bin/windows/typescript-angularjs.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-angularjs -o samples\client\petstore\typescript-angularjs - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-aurelia-petstore.bat b/bin/windows/typescript-aurelia-petstore.bat deleted file mode 100644 index 6721b4499f0..00000000000 --- a/bin/windows/typescript-aurelia-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-aurelia -o samples\client\petstore\typescript-aurelia\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-all.bat b/bin/windows/typescript-axios-petstore-all.bat deleted file mode 100644 index 8e9a25ddaf1..00000000000 --- a/bin/windows/typescript-axios-petstore-all.bat +++ /dev/null @@ -1,10 +0,0 @@ -@ECHO OFF - -call bin\windows\typescript-axios-petstore.bat -call bin\windows\typescript-axios-petstore-target-es6.bat -call bin\windows\typescript-axios-petstore-with-complex-headers.bat -call bin\windows\typescript-axios-petstore-with-single-request-parameters.bat -call bin\windows\typescript-axios-petstore-with-npm-version.bat -call bin\windows\typescript-axios-petstore-interfaces.bat -call bin\windows\typescript-axios-petstore-composed-schemas.bat -call bin\windows\typescript-axios-petstore-with-npm-version-and-separate-models-and-api.bat \ No newline at end of file diff --git a/bin/windows/typescript-axios-petstore-composed-schemas.bat b/bin/windows/typescript-axios-petstore-composed-schemas.bat deleted file mode 100644 index ae70255c20b..00000000000 --- a/bin/windows/typescript-axios-petstore-composed-schemas.bat +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M - -echo -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\composed-schemas.yaml -g typescript-axios -o samples\client\petstore\typescript-axios\builds\composed-schemas - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-interfaces.bat b/bin/windows/typescript-axios-petstore-interfaces.bat deleted file mode 100644 index 2c34eba5c7a..00000000000 --- a/bin/windows/typescript-axios-petstore-interfaces.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-axios -o samples\client\petstore\typescript-axios\builds\with-interfaces --additional-properties withInterfaces=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-target-es6.bat b/bin/windows/typescript-axios-petstore-target-es6.bat deleted file mode 100644 index e6a971420fb..00000000000 --- a/bin/windows/typescript-axios-petstore-target-es6.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-axios -c bin\typescript-axios-petstore-target-es6.json -o samples\client\petstore\typescript-axios\builds\es6-target - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-with-complex-headers.bat b/bin/windows/typescript-axios-petstore-with-complex-headers.bat deleted file mode 100755 index 9cf113587ea..00000000000 --- a/bin/windows/typescript-axios-petstore-with-complex-headers.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\3_0\petstore-with-complex-headers.yaml -g typescript-axios -o samples\client\petstore\typescript-axios\builds\with-complex-headers - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.bat b/bin/windows/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.bat deleted file mode 100644 index d67cc90b5bc..00000000000 --- a/bin/windows/typescript-axios-petstore-with-npm-version-and-separate-models-and-api.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-axios -c bin\typescript-axios-petstore-with-npm-version-and-separate-models-and-api.json -o samples\client\petstore\typescript-axios\builds\with-npm-version-and-separate-models-and-api - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-with-npm-version.bat b/bin/windows/typescript-axios-petstore-with-npm-version.bat deleted file mode 100644 index a3ae2644e9f..00000000000 --- a/bin/windows/typescript-axios-petstore-with-npm-version.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-axios -c bin\typescript-axios-petstore-with-npm-version.json -o samples\client\petstore\typescript-axios\builds\with-npm-version - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore-with-single-request-parameters.bat b/bin/windows/typescript-axios-petstore-with-single-request-parameters.bat deleted file mode 100755 index efe0284cb87..00000000000 --- a/bin/windows/typescript-axios-petstore-with-single-request-parameters.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-operations-without-required-params.yaml -g typescript-axios -o samples\client\petstore\typescript-axios\builds\with-single-request-parameters --additional-properties useSingleRequestParameter=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-axios-petstore.bat b/bin/windows/typescript-axios-petstore.bat deleted file mode 100644 index 7b21e6b66e9..00000000000 --- a/bin/windows/typescript-axios-petstore.bat +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M - -echo -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-axios -o samples\client\petstore\typescript-axios\builds\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore-all.bat b/bin/windows/typescript-fetch-petstore-all.bat deleted file mode 100644 index d525bc0559f..00000000000 --- a/bin/windows/typescript-fetch-petstore-all.bat +++ /dev/null @@ -1,9 +0,0 @@ -@ECHO OFF - -call bin\windows\typescript-fetch-petstore.bat -call bin\windows\typescript-fetch-petstore-target-es6.bat -call bin\windows\typescript-fetch-petstore-with-npm-version.bat -call bin\windows\typescript-fetch-petstore-interfaces.bat -call bin\windows\typescript-fetch-petstore-multiple-parameters.bat -call bin\windows\typescript-fetch-petstore-prefix-parameter-interfaces.bat -call bin\windows\typescript-fetch-petstore-typescript-three-plus.bat \ No newline at end of file diff --git a/bin/windows/typescript-fetch-petstore-interfaces.bat b/bin/windows/typescript-fetch-petstore-interfaces.bat deleted file mode 100644 index e25d23badb7..00000000000 --- a/bin/windows/typescript-fetch-petstore-interfaces.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -o samples\client\petstore\typescript-fetch\builds\with-interfaces --additional-properties withInterfaces=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore-multiple-parameters.bat b/bin/windows/typescript-fetch-petstore-multiple-parameters.bat deleted file mode 100644 index 095fdb3e5d6..00000000000 --- a/bin/windows/typescript-fetch-petstore-multiple-parameters.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -c bin\typescript-fetch-petstore-multiple-parameters.json -o samples\client\petstore\typescript-fetch\builds\multiple-parameters - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore-prefix-parameter-interfaces.bat b/bin/windows/typescript-fetch-petstore-prefix-parameter-interfaces.bat deleted file mode 100644 index f96184e5d22..00000000000 --- a/bin/windows/typescript-fetch-petstore-prefix-parameter-interfaces.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -c bin\typescript-fetch-petstore-prefix-parameter-interfaces.json -o samples\client\petstore\typescript-fetch\builds\prefix-parameter-interfaces - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore-target-es6.bat b/bin/windows/typescript-fetch-petstore-target-es6.bat deleted file mode 100644 index afa259575f1..00000000000 --- a/bin/windows/typescript-fetch-petstore-target-es6.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -c bin\typescript-fetch-petstore-target-es6.json -o samples\client\petstore\typescript-fetch\builds\es6-target - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore-typescript-three-plus.bat b/bin/windows/typescript-fetch-petstore-typescript-three-plus.bat deleted file mode 100644 index 001a75f2986..00000000000 --- a/bin/windows/typescript-fetch-petstore-typescript-three-plus.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -c bin/typescript-fetch-petstore-typescript-three-plus.json -o samples\client\petstore\typescript-fetch\builds\typescript-three-plus - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore-with-npm-version.bat b/bin/windows/typescript-fetch-petstore-with-npm-version.bat deleted file mode 100644 index dc0331d9ce0..00000000000 --- a/bin/windows/typescript-fetch-petstore-with-npm-version.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -c bin\typescript-fetch-petstore-with-npm-version.json -o samples\client\petstore\typescript-fetch\builds\with-npm-version - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-fetch-petstore.bat b/bin/windows/typescript-fetch-petstore.bat deleted file mode 100644 index b08fa66d0de..00000000000 --- a/bin/windows/typescript-fetch-petstore.bat +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M - -echo -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-fetch -o samples\client\petstore\typescript-fetch\builds\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-inversify-petstore.bat b/bin/windows/typescript-inversify-petstore.bat deleted file mode 100644 index e29c0dda782..00000000000 --- a/bin/windows/typescript-inversify-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-inversify -o samples\client\petstore\typescript-inversify - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-jquery-with-npm.bat b/bin/windows/typescript-jquery-with-npm.bat deleted file mode 100644 index a72a03b5419..00000000000 --- a/bin/windows/typescript-jquery-with-npm.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-jquery-petstore-npm.json -g typescript-jquery -o samples\client\petstore\typescript-jquery\npm - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-jquery.bat b/bin/windows/typescript-jquery.bat deleted file mode 100644 index d92ab3800f7..00000000000 --- a/bin/windows/typescript-jquery.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-jquery -o samples\client\petstore\typescript-jquery\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-node-petstore-all.bat b/bin/windows/typescript-node-petstore-all.bat deleted file mode 100644 index 3a690974e9d..00000000000 --- a/bin/windows/typescript-node-petstore-all.bat +++ /dev/null @@ -1,2 +0,0 @@ -call .\bin\windows\typescript-node-petstore.bat -call .\bin\windows\typescript-node-petstore-with-npm.bat diff --git a/bin/windows/typescript-node-petstore-with-npm.bat b/bin/windows/typescript-node-petstore-with-npm.bat deleted file mode 100755 index 6f0a62e708b..00000000000 --- a/bin/windows/typescript-node-petstore-with-npm.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-node-petstore-npm.json -g typescript-node -o samples\client\petstore\typescript-node\npm - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-node-petstore.bat b/bin/windows/typescript-node-petstore.bat deleted file mode 100755 index e2df9d5dd6a..00000000000 --- a/bin/windows/typescript-node-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-node -o samples\client\petstore\typescript-node\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-redux-query-petstore-with-npm.bat b/bin/windows/typescript-redux-query-petstore-with-npm.bat deleted file mode 100755 index 7ec9a262027..00000000000 --- a/bin/windows/typescript-redux-query-petstore-with-npm.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -c bin\typescript-redux-query-petstore-with-npm-version.json -g typescript-redux-query -o samples\client\petstore\typescript-redux-query\builds\with-npm-version - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-redux-query-petstore.bat b/bin/windows/typescript-redux-query-petstore.bat deleted file mode 100644 index 560fe919666..00000000000 --- a/bin/windows/typescript-redux-query-petstore.bat +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M - -echo -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-redux-query -o samples\client\petstore\typescript-redux-query\builds\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-rxjs-petstore-all.bat b/bin/windows/typescript-rxjs-petstore-all.bat deleted file mode 100644 index d86cf0d574d..00000000000 --- a/bin/windows/typescript-rxjs-petstore-all.bat +++ /dev/null @@ -1,6 +0,0 @@ -@ECHO OFF - -call bin\windows\typescript-rxjs-petstore.bat -call bin\windows\typescript-rxjs-petstore-target-es6.bat -call bin\windows\typescript-rxjs-petstore-with-npm-version.bat -call bin\windows\typescript-rxjs-petstore-interfaces.bat diff --git a/bin/windows/typescript-rxjs-petstore-interfaces.bat b/bin/windows/typescript-rxjs-petstore-interfaces.bat deleted file mode 100644 index b2232e82cd3..00000000000 --- a/bin/windows/typescript-rxjs-petstore-interfaces.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-rxjs -o samples\client\petstore\typescript-rxjs\builds\with-interfaces --additional-properties withInterfaces=true - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-rxjs-petstore-target-es6.bat b/bin/windows/typescript-rxjs-petstore-target-es6.bat deleted file mode 100644 index 7a7151fdc3f..00000000000 --- a/bin/windows/typescript-rxjs-petstore-target-es6.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-rxjs -c bin\typescript-rxjs-petstore-target-es6.json -o samples\client\petstore\typescript-rxjs\builds\es6-target - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-rxjs-petstore-with-npm-version.bat b/bin/windows/typescript-rxjs-petstore-with-npm-version.bat deleted file mode 100644 index 2bd3875d73c..00000000000 --- a/bin/windows/typescript-rxjs-petstore-with-npm-version.bat +++ /dev/null @@ -1,12 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-rxjs -c bin\typescript-rxjs-petstore-with-npm-version.json -o samples\client\petstore\typescript-rxjs\builds\with-npm-version - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/typescript-rxjs-petstore.bat b/bin/windows/typescript-rxjs-petstore.bat deleted file mode 100644 index 025b967addb..00000000000 --- a/bin/windows/typescript-rxjs-petstore.bat +++ /dev/null @@ -1,14 +0,0 @@ -@ECHO OFF - -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M - -echo -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore.yaml -g typescript-rxjs -o samples\client\petstore\typescript-rxjs\builds\default - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/bin/windows/ze-ph-petstore.bat b/bin/windows/ze-ph-petstore.bat deleted file mode 100644 index da5eacc3639..00000000000 --- a/bin/windows/ze-ph-petstore.bat +++ /dev/null @@ -1,10 +0,0 @@ -set executable=.\modules\openapi-generator-cli\target\openapi-generator-cli.jar - -If Not Exist %executable% ( - mvn clean package -) - -REM set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M -set ags=generate -i modules\openapi-generator\src\test\resources\2_0\petstore-with-fake-endpoints-models-for-testing.yaml -g php-ze-ph -o samples\server\petstore\php-ze-ph - -java %JAVA_OPTS% -jar %executable% %ags% diff --git a/docs/customization.md b/docs/customization.md index fbdc5a890cd..fe40349f31e 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -90,7 +90,8 @@ You can use this as additional dependency of the `openapi-generator-maven-plugin If you publish your artifact to a distant maven repository, do not forget to add this repository as `pluginRepository` for your project. ## Selective generation -You may not want to generate *all* models in your project. Likewise you may want just one or two apis to be written. If that's the case, you can use system properties to control the output: + +You may not want to generate *all* models in your project. Likewise, you may want just one or two apis to be written. If that's the case, you can use system properties or [global properties](./global-properties.md) to control the output. The default is generate *everything* supported by the specific library. Once you enable a feature, it will restrict the contents generated: @@ -142,7 +143,13 @@ When using selective generation, _only_ the templates needed for the specific ge To skip models defined as the form parameters in "requestBody", please use `skipFormModel` (default to false) (this option is introduced at v3.2.2) ```sh -java -DskipFormModel=true +java -DskipFormModel=true generate … +``` + +or + +```sh +java generate --global-property skipFormModel=true … ``` This option will be helpful to skip model generation due to the form parameter, which is defined differently in OAS3 as there's no form parameter in OAS3 diff --git a/docs/faq-contributing.md b/docs/faq-contributing.md index 4652194e9d7..704758bb443 100644 --- a/docs/faq-contributing.md +++ b/docs/faq-contributing.md @@ -45,9 +45,9 @@ Please refer to http://rypress.com/tutorials/git/rebasing, or follow the steps b (To setup `upstream` pointing to the official repo, please run `git remote add upstream https://github.com/openapitools/openapi-generator.git`) -## How can I update commits that are not linked to my Github account? +## How can I update commits that are not linked to my GitHub account? -Please refer to https://stackoverflow.com/questions/3042437/how-to-change-the-commit-author-for-one-specific-commit or you can simply add the email address in the commit as your secondary email address in your Github account. +Please refer to https://stackoverflow.com/questions/3042437/how-to-change-the-commit-author-for-one-specific-commit or you can simply add the email address in the commit as your secondary email address in your GitHub account. ## Any useful git tips to share? diff --git a/docs/generators/csharp.md b/docs/generators/csharp.md index 6928ef5f9e1..ebb98caaa81 100644 --- a/docs/generators/csharp.md +++ b/docs/generators/csharp.md @@ -23,7 +23,7 @@ sidebar_label: csharp |returnICollection|Return ICollection<T> instead of the concrete type.| |false| |sortParamsByRequiredFlag|Sort method arguments to place required parameters before optional parameters.| |true| |sourceFolder|source folder for generated code| |src| -|targetFramework|The target .NET framework version.|
**v3.5**
.NET Framework 3.5 compatible
**v4.0**
.NET Framework 4.0 compatible
**v4.5**
.NET Framework 4.5 compatible
**v4.5.2**
.NET Framework 4.5.2+ compatible
**v5.0**
.NET Standard 1.3 compatible (DEPRECATED. Please use `csharp-netcore` generator instead)
**uwp**
Universal Windows Platform (DEPRECATED. Please use `csharp-netcore` generator instead)
|v4.5| +|targetFramework|The target .NET framework version.|
**v3.5**
.NET Framework 3.5 compatible
**v4.0**
.NET Framework 4.0 compatible
**v4.5**
.NET Framework 4.5 compatible
**v4.5.2**
.NET Framework 4.5.2+ compatible
**netstandard1.3**
.NET Standard 1.3 compatible (DEPRECATED. Please use `csharp-netcore` generator instead)
**uwp**
Universal Windows Platform (DEPRECATED. Please use `csharp-netcore` generator instead)
|v4.5| |useCollection|Deserialize array types to Collection<T> instead of List<T>.| |false| |useCompareNetObjects|Use KellermanSoftware.CompareNetObjects for deep recursive object comparison. WARNING: this option incurs potential performance impact.| |false| |useDateTimeOffset|Use DateTimeOffset to model date-time properties| |false| diff --git a/docs/generators/go-experimental.md b/docs/generators/go-experimental.md index d5298fd44f1..5866c95004e 100644 --- a/docs/generators/go-experimental.md +++ b/docs/generators/go-experimental.md @@ -12,6 +12,7 @@ sidebar_label: go-experimental |packageVersion|Go package version.| |1.0.0| |prependFormOrBodyParameters|Add form or body parameters to the beginning of the parameter list.| |false| |structPrefix|whether to prefix struct with the class name. e.g. DeletePetOpts => PetApiDeletePetOpts| |false| +|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and onlye one match in oneOf's schemas) will be skipped.| |false| |withAWSV4Signature|whether to include AWS v4 signature support| |false| |withGoCodegenComment|whether to include Go codegen comment to disable Go Lint and collapse by default in GitHub PRs and diffs| |false| |withXml|whether to include support for application/xml content type and include XML annotations in the model (works with libraries that provide support for JSON and XML)| |false| diff --git a/docs/generators/kotlin-spring.md b/docs/generators/kotlin-spring.md index b088f30ba11..cbb8afe1d22 100644 --- a/docs/generators/kotlin-spring.md +++ b/docs/generators/kotlin-spring.md @@ -33,6 +33,7 @@ sidebar_label: kotlin-spring |swaggerAnnotations|generate swagger annotations to go alongside controllers and models| |false| |title|server title name or client service name| |OpenAPI Kotlin Spring| |useBeanValidation|Use BeanValidation API annotations to validate data types| |true| +|useTags|Whether to use tags for creating interface and controller class names| |false| ## IMPORT MAPPING diff --git a/docs/generators/powershell.md b/docs/generators/powershell.md index 2ce5aad8675..2b16a319698 100644 --- a/docs/generators/powershell.md +++ b/docs/generators/powershell.md @@ -11,6 +11,7 @@ sidebar_label: powershell |packageName|Client package name (e.g. PSTwitter).| |PSOpenAPITools| |packageVersion|Package version (e.g. 0.1.2).| |0.1.2| |powershellGalleryUrl|URL to the module in PowerShell Gallery (e.g. https://www.powershellgallery.com/packages/PSTwitter/).| |null| +|useOneOfDiscriminatorLookup|Use the discriminator's mapping in oneOf to speed up the model lookup. IMPORTANT: Validation (e.g. one and onlye one match in oneOf's schemas) will be skipped.| |null| ## IMPORT MAPPING diff --git a/docs/generators/rust.md b/docs/generators/rust.md index b59b31471f0..951aa94f55a 100644 --- a/docs/generators/rust.md +++ b/docs/generators/rust.md @@ -6,10 +6,10 @@ sidebar_label: rust | Option | Description | Values | Default | | ------ | ----------- | ------ | ------- | |hideGenerationTimestamp|Hides the generation timestamp when files are generated.| |true| -|library|library template (sub-template) to use.|
**hyper**
HTTP client: Hyper.
**reqwest**
HTTP client: Reqwest.
|hyper| +|library|library template (sub-template) to use.|
**hyper**
HTTP client: Hyper.
**reqwest**
HTTP client: Reqwest.
|reqwest| |packageName|Rust package name (convention: lowercase).| |openapi| |packageVersion|Rust package version.| |1.0.0| -|supportAsync|If set, generate async function call instead| |false| +|supportAsync|If set, generate async function call instead. This option is for 'reqwest' library only| |true| |useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.| |false| ## IMPORT MAPPING diff --git a/docs/global-properties.md b/docs/global-properties.md new file mode 100644 index 00000000000..c2c0aab6478 --- /dev/null +++ b/docs/global-properties.md @@ -0,0 +1,43 @@ +--- +id: globals +title: Global Properties +--- + +## Available Global Properties + +| Property | Description | Acceptable value | +| -------- | ------------| ---------------- | +| debugOpenAPI | Dumps JSON formatted and fully parsed OpenAPI document during generation | none | +| debugModels | Dumps JSON formatted template-bound model information during generation | none | +| debugOperations | Dumps JSON formatted template-bound operation information during generation | none | +| debugSupportingFiles | Dumps JSON formatted Supporting File information during generation | none | +| verbose | Defines the verbosity | `true` or `false` | +| generateAliasAsModel | Defines whether primitive types defined at the model/schema level will be wrapped in a model | `true` or `false` | +| org.openapitools.codegen.utils.oncelogger.enabled | Enable/disable the "OnceLogger" which reduces noise for select repeated logs | `true` or `false` | +| supportingFiles | Allows the user to define which supporting files will be generated. Prefer using the more robust `.openapi-generator-ignore`. | no value, or a comma-separated string of file names | +| models | Allows the user to define which models will be generated. Prefer using the more robust `.openapi-generator-ignore`. | no value, or a comma-separated string of model names | +| apis | Allows the user to define which apis will be generated. Prefer using the more robust `.openapi-generator-ignore`. | no value, or a comma-separated string of api names | +| apiDocs | Allows the user to define if api docs will be generated. Prefer using the more robust `.openapi-generator-ignore`. | `true` or `false` | +| modelDocs | Allows the user to define if model docs will be generated. Prefer using the more robust `.openapi-generator-ignore`. | `true` or `false` | +| apiTests | Allows the user to define if api tests will be generated. Prefer using the more robust `.openapi-generator-ignore`. | `true` or `false` | +| modelTests | Allows the user to define if model tests will be generated. Prefer using the more robust `.openapi-generator-ignore`. | `true` or `false` | +| withXml | Allows the user to control support of XML generated constructs, where supported | none | + + +## Note on Global Property declaration + +There are _two ways_ to provide selective generation properties or "global properties". First, these can be passed as Java System Properties. Second, these can be passed via the global property tooling option (`--global-property` in CLI and `globalProperty` in Maven and Gradle configurations). This differentiation is new in version 5.0 with the removal of the `-D` CLI option and the renaming of `systemProperties`. If you're upgrading to OpenAPI Generator 5.0+ + +While the examples seen in [Customization](./customization.md) use the Java System Property syntax, keep in mind that the following are equivalent: + +```sh +java -Dmodels {jar} generate {opts} +``` + +and + +```sh +java {jar} generate {opts} --global-property=models +``` + +Why the two differing ways to provide the same properties? We previously accepted a `-D` tooling option which resembled Java System Property declaration. In older versions of OpenAPI Generator, the option modified the SystemProperties collection directly and was truly a "system property". This option changed during the 4.x release in an effort to make OpenAPI Generator thread-safe and isolate its configuration via thread locals. We no longer mutate System Properties. In the 4.x release and earlier, specifying the tooling `-D` option with system properties intended for other tools like swagger-parser rather than passing them as true Java System Properties would lead to unexpected behavior for the user; if our tool set the system property _after_ invoking certain code, it would seem to the user like Java System Properties weren't working! \ No newline at end of file diff --git a/docs/installation.md b/docs/installation.md index 274024c9478..697764a1470 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -8,11 +8,11 @@ Installing OpenAPI Generator's CLI tool allows users to generate all available g Some of the following are cross-platform options and some are not, these are called out where possible. -## NPM +## npm > **Platform(s)**: Linux, macOS, Windows -The [NPM package wrapper](https://github.com/openapitools/openapi-generator-cli) is cross-platform wrapper around the .jar artifact. It works by providing a CLI wrapper atop the JAR's command line options. This gives a simple interface layer which normalizes usage of the command line across operating systems, removing some differences in how options or switches are passed to the tool (depending on OS). +The [npm package wrapper](https://github.com/openapitools/openapi-generator-cli) is cross-platform wrapper around the .jar artifact. It works by providing a CLI wrapper atop the JAR's command line options. This gives a simple interface layer which normalizes usage of the command line across operating systems, removing some differences in how options or switches are passed to the tool (depending on OS). **Install** the latest version of the tool globally, exposing the CLI on the command line: ```bash @@ -33,7 +33,7 @@ npm install @openapitools/openapi-generator-cli -D Then, **generate** a ruby client from a valid [petstore.yaml](https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/2_0/petstore.yaml) doc: ```bash -npx openapi-generator generate -i petstore.yaml -g ruby -o /tmp/test/ +npx @openapitools/openapi-generator-cli generate -i petstore.yaml -g ruby -o /tmp/test/ ``` > `npx` will execute a globally available `openapi-generator`, and if not found it will fall back to project-local commands. The result is that the above command will work regardless of which installation method you've chosen. diff --git a/docs/integration.md b/docs/integration.md index fdf2898646d..8b5b2ca5219 100644 --- a/docs/integration.md +++ b/docs/integration.md @@ -2,7 +2,7 @@ id: integrations title: Workflow Integrations --- -## Workflow Integration (Maven, Github, CI/CD) +## Workflow Integration (Maven, GitHub, CI/CD) ### Gradle Integration @@ -39,7 +39,7 @@ To push the auto-generated SDK to GitHub, we provide `git_push.sh` to streamline -i modules/openapi-generator/src/test/resources/2_0/petstore.json -g perl \ --git-user-id "wing328" \ --git-repo-id "petstore-perl" \ - --release-note "Github integration demo" \ + --release-note "GitHub integration demo" \ -o /var/tmp/perl/petstore ``` 3) Push the SDK to GitHub diff --git a/docs/usage.md b/docs/usage.md index 4522d551009..68e022e5fbf 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -261,14 +261,14 @@ SYNOPSIS [(-a | --auth )] [--api-name-suffix ] [--api-package ] [--artifact-id ] [--artifact-version ] - [(-c | --config )] - [-D ...] [--dry-run] + [(-c | --config )] [--dry-run] [(-e | --engine )] [--enable-post-process-file] [(-g | --generator-name )] [--generate-alias-as-model] [--git-host ] [--git-repo-id ] [--git-user-id ] - [--group-id ] [--http-user-agent ] + [--global-property ...] [--group-id ] + [--http-user-agent ] (-i | --input-spec ) [--ignore-file-override ] [--import-mappings ...] @@ -324,10 +324,6 @@ OPTIONS different for each language. Run config-help -g {generator name} command for language-specific config options. - -D - sets specified system properties in the format of - name=value,name=value (or multiple options, each with name=value) - --dry-run Try things out and report on potential changes (without actually making changes). @@ -343,11 +339,11 @@ OPTIONS --generate-alias-as-model Generate model implementation for aliases to map and array schemas. - An 'alias' is an array, map, or list which is defined inline in a - OpenAPI document and becomes a model in the generated code. - A 'map' schema is an object that can have undeclared properties, - i.e. the 'additionalproperties' attribute is set on that object. - An 'array' schema is a list of sub schemas in a OAS document. + An 'alias' is an array, map, or list which is defined inline in a + OpenAPI document and becomes a model in the generated code. A 'map' + schema is an object that can have undeclared properties, i.e. the + 'additionalproperties' attribute is set on that object. An 'array' + schema is a list of sub schemas in a OAS document --git-host Git host, e.g. gitlab.com. @@ -358,6 +354,11 @@ OPTIONS --git-user-id Git user ID, e.g. openapitools. + --global-property + sets specified global properties (previously called 'system + properties') in the format of name=value,name=value (or multiple + options, each with name=value) + --group-id groupId in generated pom.xml diff --git a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java index 084026f5552..3387a404748 100644 --- a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java +++ b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java @@ -71,9 +71,8 @@ public class Generate extends OpenApiGeneratorCommand { + "Pass in a URL-encoded string of name:header with a comma separating multiple values") private String auth; - // TODO: Remove -D short option in 5.0 @Option( - name = {"-D", "--global-property"}, + name = {"--global-property"}, title = "global properties", description = "sets specified global properties (previously called 'system properties') in " + "the format of name=value,name=value (or multiple options, each with name=value)") @@ -231,7 +230,7 @@ public class Generate extends OpenApiGeneratorCommand { @Option(name = {"--log-to-stderr"}, title = "Log to STDERR", description = "write all log messages (not just errors) to STDOUT." - + " Useful for piping the JSON output of debug options (e.g. `-DdebugOperations`) to an external parser directly while testing a generator.") + + " Useful for piping the JSON output of debug options (e.g. `--global-property debugOperations`) to an external parser directly while testing a generator.") private Boolean logToStderr; @Option(name = {"--enable-post-process-file"}, title = "enable post-process file", description = CodegenConstants.ENABLE_POST_PROCESS_FILE_DESC) @@ -408,7 +407,6 @@ public class Generate extends OpenApiGeneratorCommand { } if (globalProperties != null && !globalProperties.isEmpty()) { - System.err.println("[DEPRECATED] -D arguments after 'generate' are application arguments and not Java System Properties, please consider changing to --global-property, apply your system properties to JAVA_OPTS, or move the -D arguments before the jar option."); applyGlobalPropertiesKvpList(globalProperties, configurator); } applyInstantiationTypesKvpList(instantiationTypes, configurator); diff --git a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java index 90bdec1f3f0..1e9a4dbb247 100644 --- a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java +++ b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/GenerateBatch.java @@ -28,6 +28,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode; import io.airlift.airline.Arguments; import io.airlift.airline.Command; import io.airlift.airline.Option; +import org.apache.commons.lang3.StringUtils; import org.openapitools.codegen.ClientOptInput; import org.openapitools.codegen.CodegenConfig; import org.openapitools.codegen.DefaultGenerator; @@ -47,13 +48,15 @@ import java.util.Locale; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; import java.util.stream.Stream; @SuppressWarnings({"unused", "MismatchedQueryAndUpdateOfCollection", "java:S106"}) @Command(name = "batch", description = "Generate code in batch via external configs.", hidden = true) public class GenerateBatch extends OpenApiGeneratorCommand { - + private static AtomicInteger failures = new AtomicInteger(0); + private static AtomicInteger successes = new AtomicInteger(0); private static final Logger LOGGER = LoggerFactory.getLogger(GenerateBatch.class); @Option(name = {"-v", "--verbose"}, description = "verbose mode") @@ -151,7 +154,13 @@ public class GenerateBatch extends OpenApiGeneratorCommand { executor.awaitTermination(awaitFor, TimeUnit.MINUTES); - System.out.println("COMPLETE."); + int failCount = failures.intValue(); + if (failCount > 0) { + System.err.println(String.format(Locale.ROOT, "[FAIL] Completed with %d failures, %d successes", failCount, successes.intValue())); + System.exit(1); + } else { + System.out.println(String.format(Locale.ROOT, "[SUCCESS] Batch generation finished %d generators successfully.", successes.intValue())); + } } catch (InterruptedException e) { e.printStackTrace(); // re-interrupt @@ -183,12 +192,13 @@ public class GenerateBatch extends OpenApiGeneratorCommand { */ @Override public void run() { + String name = ""; try { GlobalSettings.reset(); ClientOptInput opts = configurator.toClientOptInput(); CodegenConfig config = opts.getConfig(); - String name = config.getName(); + name = config.getName(); Path target = Paths.get(config.getOutputDir()); Path updated = rootDir.resolve(target); @@ -202,8 +212,14 @@ public class GenerateBatch extends OpenApiGeneratorCommand { defaultGenerator.generate(); System.out.printf(Locale.ROOT, "[%s] Finished generating %s…%n", Thread.currentThread().getName(), name); + successes.incrementAndGet(); } catch (Throwable e) { - System.err.printf(Locale.ROOT, "[%s] Generation failed: (%s) %s%n", Thread.currentThread().getName(), e.getClass().getSimpleName(), e.getMessage()); + failures.incrementAndGet(); + String failedOn = name; + if (StringUtils.isEmpty(failedOn)) { + failedOn = "unspecified"; + } + System.err.printf(Locale.ROOT, "[%s] Generation failed for %s: (%s) %s%n", Thread.currentThread().getName(), failedOn, e.getClass().getSimpleName(), e.getMessage()); e.printStackTrace(System.err); if (exitOnError) { System.exit(1); diff --git a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Meta.java b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Meta.java index 9fa400098fb..0c4a8f7cf18 100644 --- a/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Meta.java +++ b/modules/openapi-generator-cli/src/main/java/org/openapitools/codegen/cmd/Meta.java @@ -30,6 +30,11 @@ import org.apache.commons.io.FileUtils; import org.openapitools.codegen.CodegenConfig; import org.openapitools.codegen.DefaultGenerator; import org.openapitools.codegen.SupportingFile; +import org.openapitools.codegen.TemplateManager; +import org.openapitools.codegen.api.TemplatePathLocator; +import org.openapitools.codegen.templating.MustacheEngineAdapter; +import org.openapitools.codegen.templating.TemplateManagerOptions; +import org.openapitools.codegen.templating.CommonTemplateContentLocator; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -136,52 +141,38 @@ public class Meta extends OpenApiGeneratorCommand { */ private static Converter processFiles(final File targetDir, final Map data) { - return new Converter() { - private DefaultGenerator generator = new DefaultGenerator(); + return support -> { + try { + File destinationFolder = + new File(new File(targetDir.getAbsolutePath()), support.folder); + File outputFile = new File(destinationFolder, support.destinationFilename); - @Override - public File convert(SupportingFile support) { - try { - File destinationFolder = - new File(new File(targetDir.getAbsolutePath()), support.folder); - File outputFile = new File(destinationFolder, support.destinationFilename); + TemplateManager templateProcessor = new TemplateManager( + new TemplateManagerOptions(false, false), + new MustacheEngineAdapter(), + new TemplatePathLocator[]{ new CommonTemplateContentLocator("codegen") } + ); - String template = - generator.readTemplate(new File(TEMPLATE_DIR_CLASSPATH, - support.templateFile).getPath()); - String formatted = template; + String template = templateProcessor.readTemplate(new File(TEMPLATE_DIR_CLASSPATH, support.templateFile).getPath()); - if (support.templateFile.endsWith(MUSTACHE_EXTENSION)) { - LOGGER.info("writing file to {}", outputFile.getAbsolutePath()); - formatted = - Mustache.compiler().withLoader(loader(generator)).defaultValue("") - .compile(template).execute(data); - } else { - LOGGER.info("copying file to {}", outputFile.getAbsolutePath()); - } + String formatted = template; - FileUtils.writeStringToFile(outputFile, formatted, StandardCharsets.UTF_8); - return outputFile; + Mustache.TemplateLoader loader = name -> templateProcessor.getTemplateReader(name.concat(MUSTACHE_EXTENSION)); - } catch (IOException e) { - throw new RuntimeException("Can't generate project", e); + if (support.templateFile.endsWith(MUSTACHE_EXTENSION)) { + LOGGER.info("writing file to {}", outputFile.getAbsolutePath()); + formatted = + Mustache.compiler().withLoader(loader).defaultValue("") + .compile(template).execute(data); + } else { + LOGGER.info("copying file to {}", outputFile.getAbsolutePath()); } - } - }; - } - /** - * Creates mustache loader for template using classpath loader - * - * @param generator - class with reader getter - * @return loader for template - */ - private static Mustache.TemplateLoader loader(final DefaultGenerator generator) { - return new Mustache.TemplateLoader() { - @Override - public Reader getTemplate(String name) { - return generator.getTemplateReader(TEMPLATE_DIR_CLASSPATH + File.separator - + name.concat(MUSTACHE_EXTENSION)); + FileUtils.writeStringToFile(outputFile, formatted, StandardCharsets.UTF_8); + return outputFile; + + } catch (IOException e) { + throw new RuntimeException("Can't generate project", e); } }; } diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatePathLocator.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatePathLocator.java new file mode 100644 index 00000000000..9bcd4e2cc8b --- /dev/null +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatePathLocator.java @@ -0,0 +1,14 @@ +package org.openapitools.codegen.api; + +/** + * Provides means for searching for "actual" template location based on relative template file. + */ +public interface TemplatePathLocator { + /** + * Get the full path to a relative template file. + * + * @param relativeTemplateFile Template file + * @return String Full template file path + */ + String getFullTemplatePath(String relativeTemplateFile); +} diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplateProcessor.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplateProcessor.java new file mode 100644 index 00000000000..6f105167605 --- /dev/null +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplateProcessor.java @@ -0,0 +1,57 @@ +package org.openapitools.codegen.api; + +import java.io.File; +import java.io.IOException; +import java.nio.file.Path; +import java.util.Map; + +/** + * Interface for abstractions around writing templated data to a file. + */ +public interface TemplateProcessor { + /** + * Writes data to a compiled template + * + * @param data Input data + * @param template Input template location + * @param target The targeted file output location + * + * @return The actual file + * @throws IOException If file cannot be written. + */ + File write(Map data, String template, File target) throws IOException; + + /** + * Write bytes to a file + * + * @param filename The name of file to write + * @param contents The contents bytes. Typically this is a UTF-8 formatted string. + * @return File representing the written file. + * @throws IOException If file cannot be written. + */ + File writeToFile(String filename, byte[] contents) throws IOException; + + /** + * Allow a caller to mark a path as ignored with accompanying reason + * + * @param path The ignored path + * @param context The reason for ignoring this path + */ + void ignore(Path path, String context); + + /** + * Allow a caller to mark a path as skipped with accompanying reason + * + * @param path The skipped path + * @param context The reason for skipping this path + */ + void skip(Path path, String context); + + /** + * Allow a caller to mark a path having errored during processing with accompanying reason + * + * @param path The path which has caused an error + * @param context The reason for the error + */ + default void error(Path path, String context) { }; +} diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java index 7fceac5246a..c7240cfe6c2 100644 --- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingEngineAdapter.java @@ -36,18 +36,6 @@ public interface TemplatingEngineAdapter { */ String getIdentifier(); - /** - * Compiles a template into a string - * - * @param generator From where we can fetch the templates content (e.g. an instance of DefaultGenerator) - * @param bundle The map of values to pass to the template - * @param templateFile The name of the template (e.g. model.mustache ) - * @return the processed template result - * @throws IOException an error ocurred in the template processing - */ - String compileTemplate(TemplatingGenerator generator, Map bundle, - String templateFile) throws IOException; - /** * During generation, if a supporting file has a file extension that is * inside that array, then it is considered a templated supporting file @@ -57,6 +45,18 @@ public interface TemplatingEngineAdapter { */ String[] getFileExtensions(); + /** + * Compiles a template into a string + * + * @param executor From where we can fetch the templates content (e.g. an instance of DefaultGenerator) + * @param bundle The map of values to pass to the template + * @param templateFile The name of the template (e.g. model.mustache ) + * @return the processed template result + * @throws IOException an error ocurred in the template processing + */ + String compileTemplate(TemplatingExecutor executor, Map bundle, + String templateFile) throws IOException; + /** * Determines whether the template file with supported extensions exists. This may be on the filesystem, * external filesystem, or classpath (implementation is up to TemplatingGenerator). @@ -65,7 +65,7 @@ public interface TemplatingEngineAdapter { * @param templateFile The original target filename * @return True if the template is available in the template search path, false if it can not be found */ - default boolean templateExists(TemplatingGenerator generator, String templateFile) { + default boolean templateExists(TemplatingExecutor generator, String templateFile) { return Arrays.stream(getFileExtensions()).anyMatch(ext -> { int idx = templateFile.lastIndexOf("."); String baseName; diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingExecutor.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingExecutor.java new file mode 100644 index 00000000000..d0fbb86b5db --- /dev/null +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingExecutor.java @@ -0,0 +1,26 @@ +package org.openapitools.codegen.api; + +import java.nio.file.Path; + +/** + * interface to the full template content + * implementers might take into account the -t cli option, + * look in the resources for a generator specific template, etc + */ +public interface TemplatingExecutor { + /** + * returns the template content by name + * + * @param name the template name (e.g. model.mustache) + * @return the contents of that template + */ + String getFullTemplateContents(String name); + + /** + * Returns the path of a template, allowing access to the template where consuming literal contents aren't desirable or possible. + * + * @param name the template name (e.g. model.mustache) + * @return The {@link Path} to the template + */ + Path getFullTemplatePath(String name); +} \ No newline at end of file diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java index 268cda6cdfb..30927307e96 100644 --- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/api/TemplatingGenerator.java @@ -16,28 +16,15 @@ package org.openapitools.codegen.api; -import java.nio.file.Path; - +// TODO: 6.0 Remove /** * interface to the full template content * implementers might take into account the -t cli option, * look in the resources for a language specific template, etc + * + * @deprecated as of 5.0, replaced by {@link TemplatingExecutor}. */ -public interface TemplatingGenerator { +@Deprecated() +public interface TemplatingGenerator extends TemplatingExecutor { - /** - * returns the template content by name - * - * @param name the template name (e.g. model.mustache) - * @return the contents of that template - */ - String getFullTemplateContents(String name); - - /** - * Returns the path of a template, allowing access to the template where consuming literal contents aren't desirable or possible. - * - * @param name the template name (e.g. model.mustache) - * @return The {@link Path} to the template - */ - Path getFullTemplatePath(String name); } diff --git a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java index 2a0c9ac572a..61516ec694c 100644 --- a/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java +++ b/modules/openapi-generator-core/src/main/java/org/openapitools/codegen/config/WorkflowSettings.java @@ -46,8 +46,9 @@ public class WorkflowSettings { public static final boolean DEFAULT_ENABLE_POST_PROCESS_FILE = false; public static final boolean DEFAULT_ENABLE_MINIMAL_UPDATE = false; public static final boolean DEFAULT_STRICT_SPEC_BEHAVIOR = true; + public static final boolean DEFAULT_GENERATE_ALIAS_AS_MODEL = false; public static final String DEFAULT_TEMPLATING_ENGINE_NAME = "mustache"; - public static final ImmutableMap DEFAULT_SYSTEM_PROPERTIES = ImmutableMap.of(); + public static final ImmutableMap DEFAULT_GLOBAL_PROPERTIES = ImmutableMap.of(); private String inputSpec; private String outputDir = DEFAULT_OUTPUT_DIR; @@ -59,10 +60,11 @@ public class WorkflowSettings { private boolean enablePostProcessFile = DEFAULT_ENABLE_POST_PROCESS_FILE; private boolean enableMinimalUpdate = DEFAULT_ENABLE_MINIMAL_UPDATE; private boolean strictSpecBehavior = DEFAULT_STRICT_SPEC_BEHAVIOR; + private boolean generateAliasAsModel = DEFAULT_GENERATE_ALIAS_AS_MODEL; private String templateDir; private String templatingEngineName = DEFAULT_TEMPLATING_ENGINE_NAME; private String ignoreFileOverride; - private ImmutableMap systemProperties = DEFAULT_SYSTEM_PROPERTIES; + private ImmutableMap globalProperties = DEFAULT_GLOBAL_PROPERTIES; private WorkflowSettings(Builder builder) { this.inputSpec = builder.inputSpec; @@ -78,15 +80,8 @@ public class WorkflowSettings { this.templateDir = builder.templateDir; this.templatingEngineName = builder.templatingEngineName; this.ignoreFileOverride = builder.ignoreFileOverride; - // TODO: rename to globalProperties for 5.0 - this.systemProperties = ImmutableMap.copyOf(builder.systemProperties); - if (this.systemProperties.size() > 0) { - // write no more than every 5s. This is temporary until version 5.0 as once(Logger) is not accessible here. - // thread contention may cause this to write more than once, but this is just an attempt to reduce noise - if (System.currentTimeMillis() - lastWarning.getAndUpdate(x -> System.currentTimeMillis()) > 5000) { - LOGGER.warn("systemProperties will be renamed to globalProperties in version 5.0"); - } - } + this.globalProperties = ImmutableMap.copyOf(builder.globalProperties); + this.generateAliasAsModel = builder.generateAliasAsModel; } /** @@ -112,12 +107,13 @@ public class WorkflowSettings { builder.validateSpec = copy.isValidateSpec(); builder.enablePostProcessFile = copy.isEnablePostProcessFile(); builder.enableMinimalUpdate = copy.isEnableMinimalUpdate(); + builder.generateAliasAsModel = copy.isGenerateAliasAsModel(); builder.strictSpecBehavior = copy.isStrictSpecBehavior(); builder.templatingEngineName = copy.getTemplatingEngineName(); builder.ignoreFileOverride = copy.getIgnoreFileOverride(); // this, and any other collections, must be mutable in the builder. - builder.systemProperties = new HashMap<>(copy.getSystemProperties()); + builder.globalProperties = new HashMap<>(copy.getGlobalProperties()); // force builder "with" methods to invoke side effects builder.withTemplateDir(copy.getTemplateDir()); @@ -220,6 +216,15 @@ public class WorkflowSettings { return enableMinimalUpdate; } + /** + * Indicates whether or not the generation should convert aliases (primitives defined as schema for use within documents) as models. + * + * @return true if generate-alias-as-model is enabled, otherwise false. + */ + public boolean isGenerateAliasAsModel() { + return generateAliasAsModel; + } + /** * Indicates whether or not 'MUST' and 'SHALL' wording in the api specification is strictly adhered to. * For example, when false, no automatic 'fixes' will be applied to documents which pass validation but don't follow the spec. @@ -264,8 +269,8 @@ public class WorkflowSettings { * * @return the system properties */ - public Map getSystemProperties() { - return systemProperties; + public Map getGlobalProperties() { + return globalProperties; } /** @@ -283,12 +288,13 @@ public class WorkflowSettings { private Boolean enablePostProcessFile = DEFAULT_ENABLE_POST_PROCESS_FILE; private Boolean enableMinimalUpdate = DEFAULT_ENABLE_MINIMAL_UPDATE; private Boolean strictSpecBehavior = DEFAULT_STRICT_SPEC_BEHAVIOR; + private Boolean generateAliasAsModel = DEFAULT_GENERATE_ALIAS_AS_MODEL; private String templateDir; private String templatingEngineName = DEFAULT_TEMPLATING_ENGINE_NAME; private String ignoreFileOverride; // NOTE: All collections must be mutable in the builder, and copied to a new immutable collection in .build() - private Map systemProperties = new HashMap<>();; + private Map globalProperties = new HashMap<>();; private Builder() { } @@ -410,6 +416,18 @@ public class WorkflowSettings { return this; } + /** + * Sets the {@code generateAliasAsModel} and returns a reference to this Builder so that the methods can be chained together. + * An 'alias' is a primitive type defined as a schema, and this option will attempt to construct a model for that primitive. + * + * @param generateAliasAsModel the {@code generateAliasAsModel} to set + * @return a reference to this Builder + */ + public Builder withGenerateAliasAsModel(Boolean generateAliasAsModel) { + this.generateAliasAsModel = generateAliasAsModel != null ? generateAliasAsModel : Boolean.valueOf(DEFAULT_GENERATE_ALIAS_AS_MODEL); + return this; + } + /** * Sets the {@code templateDir} and returns a reference to this Builder so that the methods can be chained together. * @@ -469,30 +487,30 @@ public class WorkflowSettings { } /** - * Sets the {@code systemProperties} and returns a reference to this Builder so that the methods can be chained together. + * Sets the {@code globalProperties} and returns a reference to this Builder so that the methods can be chained together. * - * @param systemProperties the {@code systemProperties} to set + * @param globalProperties the {@code globalProperties} to set * @return a reference to this Builder */ - public Builder withSystemProperties(Map systemProperties) { - if (systemProperties != null) { - this.systemProperties = systemProperties; + public Builder withGlobalProperties(Map globalProperties) { + if (globalProperties != null) { + this.globalProperties = globalProperties; } return this; } /** - * Sets the {@code systemProperties} and returns a reference to this Builder so that the methods can be chained together. + * Sets the {@code globalProperties} and returns a reference to this Builder so that the methods can be chained together. * * @param key The key of a system (global) property to set * @param value The value of a system (global) property to set * @return a reference to this Builder */ - public Builder withSystemProperty(String key, String value) { - if (this.systemProperties == null) { - this.systemProperties = new HashMap<>(); + public Builder withGlobalProperty(String key, String value) { + if (this.globalProperties == null) { + this.globalProperties = new HashMap<>(); } - this.systemProperties.put(key, value); + this.globalProperties.put(key, value); return this; } @@ -526,7 +544,8 @@ public class WorkflowSettings { ", templateDir='" + templateDir + '\'' + ", templatingEngineName='" + templatingEngineName + '\'' + ", ignoreFileOverride='" + ignoreFileOverride + '\'' + - ", systemProperties=" + systemProperties + + ", globalProperties=" + globalProperties + + ", generateAliasAsModel=" + generateAliasAsModel + '}'; } @@ -543,12 +562,13 @@ public class WorkflowSettings { isEnablePostProcessFile() == that.isEnablePostProcessFile() && isEnableMinimalUpdate() == that.isEnableMinimalUpdate() && isStrictSpecBehavior() == that.isStrictSpecBehavior() && + isGenerateAliasAsModel() == that.isGenerateAliasAsModel() && Objects.equals(getInputSpec(), that.getInputSpec()) && Objects.equals(getOutputDir(), that.getOutputDir()) && Objects.equals(getTemplateDir(), that.getTemplateDir()) && Objects.equals(getTemplatingEngineName(), that.getTemplatingEngineName()) && Objects.equals(getIgnoreFileOverride(), that.getIgnoreFileOverride()) && - Objects.equals(getSystemProperties(), that.getSystemProperties()); + Objects.equals(getGlobalProperties(), that.getGlobalProperties()); } @Override @@ -561,13 +581,14 @@ public class WorkflowSettings { isRemoveOperationIdPrefix(), isLogToStderr(), isValidateSpec(), + isGenerateAliasAsModel(), isEnablePostProcessFile(), isEnableMinimalUpdate(), isStrictSpecBehavior(), getTemplateDir(), getTemplatingEngineName(), getIgnoreFileOverride(), - getSystemProperties() + getGlobalProperties() ); } } diff --git a/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/config/WorkflowSettingsTest.java b/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/config/WorkflowSettingsTest.java index 3ab0048677c..33638f76735 100644 --- a/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/config/WorkflowSettingsTest.java +++ b/modules/openapi-generator-core/src/test/java/org/openapitools/codegen/config/WorkflowSettingsTest.java @@ -50,19 +50,19 @@ public class WorkflowSettingsTest { } @Test - public void newBuilderFromCopyShouldMutateSystemProperties(){ + public void newBuilderFromCopyShouldMutateGlobalProperties(){ WorkflowSettings original = WorkflowSettings.newBuilder() .withOutputDir("output") .withVerbose(true) .withSkipOverwrite(false) - .withSystemProperty("first", "1st") + .withGlobalProperty("first", "1st") .build(); WorkflowSettings modified = WorkflowSettings.newBuilder(original) - .withSystemProperty("second", "2nd") + .withGlobalProperty("second", "2nd") .build(); - Map properties = modified.getSystemProperties(); + Map properties = modified.getGlobalProperties(); assertEquals(properties.size(), 2, "System Properties map should allow mutation when invoked via copy constructor"); assertEquals(properties.getOrDefault("first", ""), "1st"); assertEquals(properties.getOrDefault("second", ""), "2nd"); diff --git a/modules/openapi-generator-gradle-plugin/README.adoc b/modules/openapi-generator-gradle-plugin/README.adoc index 7a8cef3596a..2c10b0a8b34 100644 --- a/modules/openapi-generator-gradle-plugin/README.adoc +++ b/modules/openapi-generator-gradle-plugin/README.adoc @@ -135,10 +135,10 @@ apply plugin: 'org.openapi.generator' |None |Adds authorization headers when fetching the OpenAPI definitions remotely. Pass in a URL-encoded string of name:header with a comma separating multiple values. -|systemProperties +|globalProperties |Map(String,String) |None -|Sets specified system properties. +|Sets specified global properties. |configFile |String @@ -346,12 +346,12 @@ For more control over generation of individual files, configure an ignore file a [NOTE] ==== -When configuring `systemProperties` in order to perform selective generation you can disable generation of some parts by providing `"false"` value: +When configuring `globalProperties` in order to perform selective generation you can disable generation of some parts by providing `"false"` value: [source,groovy] ---- openApiGenerate { // other settings omitted - systemProperties = [ + globalProperties = [ modelDocs: "false", apis: "false" ] @@ -362,7 +362,7 @@ When enabling generation of only specific parts you either have to provide CSV l ---- openApiGenerate { // other settings omitted - systemProperties = [ + globalProperties = [ apis: "", models: "User,Pet" ] @@ -609,7 +609,7 @@ task buildKotlinClient(type: org.openapitools.generator.gradle.plugin.tasks.Gene configOptions = [ dateLibrary: "java8" ] - systemProperties = [ + globalProperties = [ modelDocs: "false" ] } diff --git a/modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle b/modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle index 22a21f46c6f..cb99b8838fa 100644 --- a/modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle +++ b/modules/openapi-generator-gradle-plugin/samples/local-spec/build.gradle @@ -42,7 +42,7 @@ openApiGenerate { configOptions = [ dateLibrary: "java8" ] - systemProperties = [ + globalProperties = [ modelDocs: "false" ] skipValidateSpec = true @@ -74,7 +74,7 @@ task buildDotnetSdk(type: org.openapitools.generator.gradle.plugin.tasks.Generat useCompareNetObjects: "true" ] outputDir = "$buildDir/csharp-netcore".toString() - systemProperties = [ + globalProperties = [ models: "", apis : "", ] diff --git a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/OpenApiGeneratorPlugin.kt b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/OpenApiGeneratorPlugin.kt index dcc3ce08915..84caadfad83 100644 --- a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/OpenApiGeneratorPlugin.kt +++ b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/OpenApiGeneratorPlugin.kt @@ -98,7 +98,7 @@ class OpenApiGeneratorPlugin : Plugin { inputSpec.set(generate.inputSpec) templateDir.set(generate.templateDir) auth.set(generate.auth) - systemProperties.set(generate.systemProperties) + globalProperties.set(generate.globalProperties) configFile.set(generate.configFile) skipOverwrite.set(generate.skipOverwrite) packageName.set(generate.packageName) diff --git a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorGenerateExtension.kt b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorGenerateExtension.kt index daed01ae256..4f099db7f6f 100644 --- a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorGenerateExtension.kt +++ b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorGenerateExtension.kt @@ -65,9 +65,9 @@ open class OpenApiGeneratorGenerateExtension(project: Project) { val auth = project.objects.property() /** - * Sets specified system properties. + * Sets specified global properties. */ - val systemProperties = project.objects.mapProperty() + val globalProperties = project.objects.mapProperty() /** * Path to json configuration file. diff --git a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt index 81a7e918c14..500597599b3 100644 --- a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt +++ b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt @@ -97,10 +97,10 @@ open class GenerateTask : DefaultTask() { val auth = project.objects.property() /** - * Sets specified system properties. + * Sets specified global properties. */ @get:Internal - val systemProperties = project.objects.mapProperty() + val globalProperties = project.objects.mapProperty() /** * Path to json configuration file. @@ -415,9 +415,9 @@ open class GenerateTask : DefaultTask() { } else CodegenConfigurator() try { - if (systemProperties.isPresent) { - systemProperties.get().forEach { (key, value) -> - configurator.addSystemProperty(key, value) + if (globalProperties.isPresent) { + globalProperties.get().forEach { (key, value) -> + configurator.addGlobalProperty(key, value) } } @@ -582,10 +582,9 @@ open class GenerateTask : DefaultTask() { } } - if (systemProperties.isPresent) { - // TODO: rename to globalProperties in 5.0 - systemProperties.get().forEach { entry -> - configurator.addSystemProperty(entry.key, entry.value) + if (globalProperties.isPresent) { + globalProperties.get().forEach { entry -> + configurator.addGlobalProperty(entry.key, entry.value) } } diff --git a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/MetaTask.kt b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/MetaTask.kt index 6a4a180665a..9bebdd4f457 100644 --- a/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/MetaTask.kt +++ b/modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/MetaTask.kt @@ -24,10 +24,12 @@ import org.gradle.api.tasks.TaskAction import org.gradle.internal.logging.text.StyledTextOutput import org.gradle.internal.logging.text.StyledTextOutputFactory import org.gradle.kotlin.dsl.property -import org.openapitools.codegen.CodegenConfig -import org.openapitools.codegen.CodegenConstants -import org.openapitools.codegen.DefaultGenerator -import org.openapitools.codegen.SupportingFile +import org.openapitools.codegen.* +import org.openapitools.codegen.api.TemplatePathLocator +import org.openapitools.codegen.templating.CommonTemplateContentLocator +import org.openapitools.codegen.templating.GeneratorTemplateContentLocator +import org.openapitools.codegen.templating.MustacheEngineAdapter +import org.openapitools.codegen.templating.TemplateManagerOptions import java.io.File import java.io.IOException import java.nio.charset.Charset @@ -83,19 +85,28 @@ open class MetaTask : DefaultTask() { "fullyQualifiedGeneratorClass" to "${packageName.get()}.$klass", "openapiGeneratorVersion" to currentVersion) - val generator = DefaultGenerator() supportingFiles.map { try { val destinationFolder = File(File(dir.absolutePath), it.folder) destinationFolder.mkdirs() val outputFile = File(destinationFolder, it.destinationFilename) - val template = generator.readTemplate(File("codegen", it.templateFile).path) + val templateProcessor = TemplateManager( + TemplateManagerOptions(false, false), + MustacheEngineAdapter(), + arrayOf(CommonTemplateContentLocator("codegen")) + ) + + val template = templateProcessor.getFullTemplateContents(it.templateFile) var formatted = template + val loader = Mustache.TemplateLoader { name -> + templateProcessor.getTemplateReader("$name.mustache") + } + if (it.templateFile.endsWith(".mustache")) { formatted = Mustache.compiler() - .withLoader(loader(generator)) + .withLoader(loader) .defaultValue("") .compile(template).execute(data) } @@ -115,12 +126,6 @@ open class MetaTask : DefaultTask() { out.formatln("Created generator %s", klass) } - private fun loader(generator: DefaultGenerator): Mustache.TemplateLoader { - return Mustache.TemplateLoader { name -> - generator.getTemplateReader("codegen${File.separator}$name.mustache") - } - } - private fun String.titleCasedTextOnly(): String = this.split(Regex("[^a-zA-Z0-9]")).joinToString(separator = "", transform = String::capitalize) diff --git a/modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskDslTest.kt b/modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskDslTest.kt index 6aecc119252..5586a1d3fbf 100644 --- a/modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskDslTest.kt +++ b/modules/openapi-generator-gradle-plugin/src/test/kotlin/GenerateTaskDslTest.kt @@ -152,13 +152,14 @@ class GenerateTaskDslTest : TestBase() { // Act val result = GradleRunner.create() .withProjectDir(temp) - .withArguments("openApiGenerate") + .withArguments("openApiGenerate", "--stacktrace") .withPluginClasspath() .buildAndFail() // Assert // rather than write out full handlebars generator templates, we'll just test that the configurator has set handlebars as the engine. - assertTrue(result.output.contains("kotlin-client/model.handlebars (No such file or directory)"), "Build should have attempted to use handlebars.") + assertTrue(result.output.contains("HandlebarsException"), "Stack should expose an exception for missing templates.") + assertTrue(result.output.contains("handlebars"), "Build should have attempted to use handlebars.") assertEquals(TaskOutcome.FAILED, result.task(":openApiGenerate")?.outcome, "Expected a failed run, but found ${result.task(":openApiGenerate")?.outcome}") } diff --git a/modules/openapi-generator-gradle-plugin/src/test/kotlin/MetaTaskDslTest.kt b/modules/openapi-generator-gradle-plugin/src/test/kotlin/MetaTaskDslTest.kt index fe857d1b94a..62e600a92eb 100644 --- a/modules/openapi-generator-gradle-plugin/src/test/kotlin/MetaTaskDslTest.kt +++ b/modules/openapi-generator-gradle-plugin/src/test/kotlin/MetaTaskDslTest.kt @@ -29,7 +29,7 @@ class MetaTaskDslTest : TestBase() { // Act val result = GradleRunner.create() .withProjectDir(temp) - .withArguments("openApiMeta") + .withArguments("openApiMeta", "--stacktrace") .withPluginClasspath() .build() diff --git a/modules/openapi-generator-maven-plugin/examples/kotlin.xml b/modules/openapi-generator-maven-plugin/examples/kotlin.xml index 0bc6ffa7618..130a359b06a 100644 --- a/modules/openapi-generator-maven-plugin/examples/kotlin.xml +++ b/modules/openapi-generator-maven-plugin/examples/kotlin.xml @@ -15,7 +15,7 @@ org.openapitools openapi-generator-maven-plugin - 4.3.0-SNAPSHOT + 5.0.0-SNAPSHOT diff --git a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java index 90703b7f603..628c15390c9 100644 --- a/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java +++ b/modules/openapi-generator-maven-plugin/src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java @@ -85,14 +85,6 @@ public class CodeGenMojo extends AbstractMojo { @Parameter(name = "verbose", defaultValue = "false") private boolean verbose; - // TODO: 5.0 Remove `language` option. - /** - * Client language to generate. - */ - @Parameter(name = "language") - private String language; - - /** * The name of the generator to use. */ @@ -538,20 +530,8 @@ public class CodeGenMojo extends AbstractMojo { configurator.setGenerateAliasAsModel(generateAliasAsModel); } - // TODO: After 3.0.0 release (maybe for 3.1.0): Fully deprecate lang. if (isNotEmpty(generatorName)) { configurator.setGeneratorName(generatorName); - - // check if generatorName & language are set together, inform user this needs to be updated to prevent future issues. - if (isNotEmpty(language)) { - LOGGER.warn("The 'language' option is deprecated and was replaced by 'generatorName'. Both can not be set together"); - throw new MojoExecutionException( - "Illegal configuration: 'language' and 'generatorName' can not be set both, remove 'language' from your configuration"); - } - } else if (isNotEmpty(language)) { - LOGGER.warn( - "The 'language' option is deprecated and may reference language names only in the next major release (4.0). Please use 'generatorName' instead."); - configurator.setGeneratorName(language); } else { LOGGER.error("A generator name (generatorName) is required."); throw new MojoExecutionException("The generator requires 'generatorName'. Refer to documentation for a list of options."); @@ -724,7 +704,7 @@ public class CodeGenMojo extends AbstractMojo { originalEnvironmentVariables.put(key, GlobalSettings.getProperty(key)); String value = environmentVariables.get(key); if (value != null) { - configurator.addSystemProperty(key, value); + configurator.addGlobalProperty(key, value); } } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/AbstractGenerator.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/AbstractGenerator.java deleted file mode 100644 index 3a2fecbc541..00000000000 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/AbstractGenerator.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright 2018 OpenAPI-Generator Contributors (https://openapi-generator.tech) - * Copyright 2018 SmartBear Software - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.openapitools.codegen; - -import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.StandardCopyOption; -import java.util.Arrays; -import org.apache.commons.lang3.StringUtils; -import org.openapitools.codegen.api.TemplatingGenerator; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.*; -import java.nio.file.Paths; -import java.util.HashMap; -import java.util.Map; -import java.util.Scanner; -import java.util.regex.Pattern; - -public abstract class AbstractGenerator implements TemplatingGenerator { - private static final Logger LOGGER = LoggerFactory.getLogger(AbstractGenerator.class); - protected boolean dryRun = false; - protected Map dryRunStatusMap = new HashMap<>(); - - /** - * Is the minimal-file-update option enabled? - * - * @return Option value - */ - public abstract boolean getEnableMinimalUpdate(); - - /** - * Write String to a file, formatting as UTF-8 - * - * @param filename The name of file to write - * @param contents The contents string. - * @return File representing the written file. - * @throws IOException If file cannot be written. - */ - public File writeToFile(String filename, String contents) throws IOException { - return writeToFile(filename, contents.getBytes(StandardCharsets.UTF_8)); - } - - /** - * Write bytes to a file - * - * @param filename The name of file to write - * @param contents The contents bytes. Typically, this is a UTF-8 formatted string. - * @return File representing the written file. - * @throws IOException If file cannot be written. - */ - @SuppressWarnings("static-method") - public File writeToFile(String filename, byte[] contents) throws IOException { - if (getEnableMinimalUpdate()) { - String tempFilename = filename + ".tmp"; - // Use Paths.get here to normalize path (for Windows file separator, space escaping on Linux/Mac, etc) - File outputFile = Paths.get(filename).toFile(); - File tempFile = null; - try { - tempFile = writeToFileRaw(tempFilename, contents); - if (!filesEqual(tempFile, outputFile)) { - LOGGER.info("writing file " + filename); - Files.move(tempFile.toPath(), outputFile.toPath(), StandardCopyOption.REPLACE_EXISTING); - tempFile = null; - } else { - LOGGER.info("skipping unchanged file " + filename); - } - } finally { - if (tempFile != null && tempFile.exists()) { - try { - tempFile.delete(); - } catch (Exception ex) { - LOGGER.error("Error removing temporary file " + tempFile, ex); - } - } - } - return outputFile; - } else { - LOGGER.info("writing file " + filename); - return writeToFileRaw(filename, contents); - } - } - - private boolean filesEqual(File file1, File file2) throws IOException { - return file1.exists() && file2.exists() && Arrays.equals(Files.readAllBytes(file1.toPath()), Files.readAllBytes(file2.toPath())); - } - - private File writeToFileRaw(String filename, byte[] contents) throws IOException { - // Use Paths.get here to normalize path (for Windows file separator, space escaping on Linux/Mac, etc) - File output = Paths.get(filename).toFile(); - if (output.getParent() != null && !new File(output.getParent()).exists()) { - File parent = Paths.get(output.getParent()).toFile(); - parent.mkdirs(); - } - Files.write(output.toPath(), contents); - return output; - } - - public String readTemplate(String name) { - try { - Reader reader = getTemplateReader(name); - if (reader == null) { - throw new RuntimeException("no file found"); - } - Scanner s = new Scanner(reader).useDelimiter("\\A"); - return s.hasNext() ? s.next() : ""; - } catch (Exception e) { - LOGGER.error(e.getMessage()); - } - throw new RuntimeException("can't load template " + name); - } - - @SuppressWarnings("squid:S2095") - // ignored rule as used in the CLI and it's required to return a reader - public Reader getTemplateReader(String name) { - InputStream is = null; - try { - is = this.getClass().getClassLoader().getResourceAsStream(getCPResourcePath(name)); - if (is == null) { - is = new FileInputStream(new File(name)); // May throw but never return a null value - } - return new InputStreamReader(is, "UTF-8"); - } catch (FileNotFoundException | UnsupportedEncodingException e) { - LOGGER.error(e.getMessage()); - throw new RuntimeException("can't load template " + name); - } - } - - private String buildLibraryFilePath(String dir, String library, String file) { - return dir + File.separator + "libraries" + File.separator + library + File.separator + file; - } - - /** - * Get the template file path with template dir prepended, and use the - * library template if exists. - * - * @param config Codegen config - * @param templateFile Template file - * @return String Full template file path - */ - public String getFullTemplateFile(CodegenConfig config, String templateFile) { - //1st the code will check if there's a