Skip to content

Commit 582a604

Browse files
committed
update urllib3, add default
1 parent 5870b27 commit 582a604

5 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎bin/configs/python-fastapi.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ templateDir: modules/openapi-generator/src/main/resources/python-fastapi
55
sourceFolder: "src"
66
additionalProperties:
77
hideGenerationTimestamp: "true"
8+
packageVersion: "3.4.5"

‎modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonFastAPIServerCodegen.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ public void processOpts() {
153153

154154
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {
155155
setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));
156+
} else {
157+
// default to appVersion in the spec
158+
setPackageName((String) additionalProperties.get("appVersion"));
156159
}
157160

158161
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_VERSION)) {

‎modules/openapi-generator/src/main/resources/python-fastapi/requirements.mustache‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Rx==1.6.1
2929
starlette==0.49.1
3030
typing-extensions==4.13.2
3131
ujson==4.0.2
32-
urllib3==2.6.3
32+
urllib3==2.7.0
3333
uvicorn==0.13.4
3434
uvloop==0.21.0
3535
watchgod==0.7

‎samples/server/petstore/python-fastapi/requirements.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Rx==1.6.1
2929
starlette==0.49.1
3030
typing-extensions==4.13.2
3131
ujson==4.0.2
32-
urllib3==2.6.3
32+
urllib3==2.7.0
3333
uvicorn==0.13.4
3434
uvloop==0.21.0
3535
watchgod==0.7

‎samples/server/petstore/python-fastapi/setup.cfg‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = openapi_server
3-
version = 1.0.0
3+
version = 3.4.5
44
description = This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
55
long_description = file: README.md
66
keywords = OpenAPI OpenAPI Petstore

0 commit comments

Comments
 (0)