File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/python-pydantic-v1
samples/openapi3/client/petstore/python-pydantic-v1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ generatorName: python-pydantic-v1
22outputDir : samples/openapi3/client/petstore/python-pydantic-v1
33inputSpec : modules/openapi-generator/src/test/resources/3_0/python/petstore-with-fake-endpoints-models-for-testing.yaml
44templateDir : modules/openapi-generator/src/main/resources/python-pydantic-v1
5+ gitHost : GIT_HOST
6+ gitUserId : GIT_USER_ID
7+ gitRepoId : GIT_REPO_ID
58additionalProperties :
69 packageName : petstore_api
710 useOneOfDiscriminatorLookup : " true"
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description = "{{{appName}}}"
55authors = ["{ {infoName} }{ {^infoName} }OpenAPI Generator Community{ {/infoName} } <{ {infoEmail} }{ {^infoEmail} }team@openapitools.org{ {/infoEmail} }>"]
66license = "{ {{licenseInfo} }}{ {^licenseInfo} }NoLicense{ {/licenseInfo} }"
77readme = "README.md"
8- repository = "https://github.com /{ {{gitUserId} }}/{ {{gitRepoId} }}"
8+ repository = "https://{ {{gitHost } }} /{ {{gitUserId} }}/{ {{gitRepoId} }}"
99keywords = ["OpenAPI", "OpenAPI-Generator", "{ {{appName} }}"]
1010include = ["{ {packageName} }/py.typed"]
1111
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ Python 3.7+
1818If the python package is hosted on a repository, you can install directly using:
1919
2020``` sh
21- pip install git+https://github.com /GIT_USER_ID/GIT_REPO_ID.git
21+ pip install git+https://GIT_HOST /GIT_USER_ID/GIT_REPO_ID.git
2222```
23- (you may need to run ` pip ` with root permission: ` sudo pip install git+https://github.com /GIT_USER_ID/GIT_REPO_ID.git ` )
23+ (you may need to run ` pip ` with root permission: ` sudo pip install git+https://GIT_HOST /GIT_USER_ID/GIT_REPO_ID.git ` )
2424
2525Then import the package:
2626``` python
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ release_note=$3
99git_host=$4
1010
1111if [ " $git_host " = " " ]; then
12- git_host=" github.com "
12+ git_host=" GIT_HOST "
1313 echo " [INFO] No command line input provided. Set \$ git_host to $git_host "
1414fi
1515
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ description = "OpenAPI Petstore"
55authors = [" OpenAPI Generator Community <team@openapitools.org>" ]
66license = " Apache-2.0"
77readme = " README.md"
8- repository = " https://github.com /GIT_USER_ID/GIT_REPO_ID"
8+ repository = " https://GIT_HOST /GIT_USER_ID/GIT_REPO_ID"
99keywords = [" OpenAPI" , " OpenAPI-Generator" , " OpenAPI Petstore" ]
1010include = [" petstore_api/py.typed" ]
1111
You can’t perform that action at this time.
0 commit comments