Skip to content

Commit 700a2f7

Browse files
committed
set legacy config option in Python sample configs
1 parent 6afb316 commit 700a2f7

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

bin/configs/python-aiohttp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ additionalProperties:
88
mapNumberTo: float
99
poetry1: true
1010
disallowAdditionalPropertiesIfNotPresent: true
11+
legacyDefaultDisallowAdditionalPropertiesIfNotPresentBehavior: true
1112
nameMappings:
1213
_type: underscore_type
1314
type_: type_with_underscore

bin/configs/python-echo-api.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
55
additionalProperties:
66
hideGenerationTimestamp: "true"
77
disallowAdditionalPropertiesIfNotPresent: true
8+
legacyDefaultDisallowAdditionalPropertiesIfNotPresentBehavior: true

bin/configs/python-fastapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ sourceFolder: "src"
66
additionalProperties:
77
hideGenerationTimestamp: "true"
88
disallowAdditionalPropertiesIfNotPresent: true
9+
legacyDefaultDisallowAdditionalPropertiesIfNotPresentBehavior: true

bin/configs/python-pydantic-v1-aiohttp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
packageName: petstore_api
88
mapNumberTo: float
99
disallowAdditionalPropertiesIfNotPresent: true
10+
legacyDefaultDisallowAdditionalPropertiesIfNotPresentBehavior: true

bin/configs/python-pydantic-v1-echo-api.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-pydantic-v1
55
additionalProperties:
66
hideGenerationTimestamp: "true"
77
disallowAdditionalPropertiesIfNotPresent: true
8+
legacyDefaultDisallowAdditionalPropertiesIfNotPresentBehavior: true

0 commit comments

Comments
 (0)