diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 6cba564ffbf..962a13584af 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -53,9 +53,9 @@ elif [ "$NODE_INDEX" = "3" ]; then #./configure --enable-optimizations #sudo make altinstall pyenv install --list - pyenv install 3.6.3 + pyenv install 3.7.12 pyenv install 2.7.14 - pyenv global 3.6.3 + pyenv global 3.7.12 # Install node@stable (for angular 6) set +e diff --git a/bin/configs/python-nextgen-aiohttp.yaml b/bin/configs/python-nextgen-aiohttp.yaml new file mode 100644 index 00000000000..4d71a6d3d61 --- /dev/null +++ b/bin/configs/python-nextgen-aiohttp.yaml @@ -0,0 +1,7 @@ +generatorName: python-nextgen +outputDir: samples/openapi3/client/petstore/python-nextgen-aiohttp +inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python-nextgen +library: asyncio +additionalProperties: + packageName: petstore_api diff --git a/bin/configs/python-nextgen.yaml b/bin/configs/python-nextgen.yaml new file mode 100644 index 00000000000..c2c09ee0147 --- /dev/null +++ b/bin/configs/python-nextgen.yaml @@ -0,0 +1,8 @@ +generatorName: python-nextgen +outputDir: samples/openapi3/client/petstore/python-nextgen +inputSpec: modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml +templateDir: modules/openapi-generator/src/main/resources/python-nextgen +additionalProperties: + packageName: petstore_api + useOneOfDiscriminatorLookup: "true" + disallowAdditionalPropertiesIfNotPresent: false diff --git a/docs/generators.md b/docs/generators.md index cd0466f9ad5..f05f73224e4 100644 --- a/docs/generators.md +++ b/docs/generators.md @@ -52,6 +52,7 @@ The following generators are available: * [powershell (beta)](generators/powershell.md) * [python](generators/python.md) * [python-legacy](generators/python-legacy.md) +* [python-nextgen (beta)](generators/python-nextgen.md) * [python-prior](generators/python-prior.md) * [r](generators/r.md) * [ruby](generators/ruby.md) diff --git a/docs/generators/python-legacy.md b/docs/generators/python-legacy.md index 0af42bd30b9..3d0b1165a61 100644 --- a/docs/generators/python-legacy.md +++ b/docs/generators/python-legacy.md @@ -45,6 +45,8 @@ These options may be applied as additional-properties (cli) or configOptions (pl ## LANGUAGE PRIMITIVES