Skip to content

Commit 664a992

Browse files
committed
set disallowAdditionalPropertiesIfNotPresent on samples to avoid converting them all at once
1 parent 6ebd629 commit 664a992

122 files changed

Lines changed: 108 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

bin/configs/c-bearer-auth.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ generatorName: c
22
outputDir: samples/client/others/c/bearerAuth
33
inputSpec: modules/openapi-generator/src/test/resources/3_0/c/bearer_auth.yaml
44
templateDir: modules/openapi-generator/src/main/resources/C-libcurl
5+
additionalProperties:
6+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/cpp-restbed-server.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ generatorName: cpp-restbed-server
22
outputDir: samples/server/petstore/cpp-restbed/generated/3_0
33
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
44
templateDir: modules/openapi-generator/src/main/resources/cpp-restbed-server
5+
additionalProperties:
6+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/cpp-restsdk-client.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/cpp-restsdk/petstore
44
templateDir: modules/openapi-generator/src/main/resources/cpp-rest-sdk-client
55
additionalProperties:
66
packageName: CppRestPetstoreClient
7+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-generichost-latest-composedEnum.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ additionalProperties:
77
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
88
modelPropertySorting: alphabetical
99
operationParameterSorting: alphabetical
10+
disallowAdditionalPropertiesIfNotPresent: true
1011
validateSpec: false

bin/configs/csharp-generichost-latest-helloWorld.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
88
modelPropertySorting: alphabetical
99
operationParameterSorting: alphabetical
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-generichost-latest-inlineEnumAnyOf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ additionalProperties:
77
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
88
modelPropertySorting: alphabetical
99
operationParameterSorting: alphabetical
10+
disallowAdditionalPropertiesIfNotPresent: true
1011
validateSpec: false
1112
inlineSchemaOptions:
1213
RESOLVE_INLINE_ENUMS: true

bin/configs/csharp-generichost-latest-oneOfList.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ additionalProperties:
66
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
77
modelPropertySorting: alphabetical
88
operationParameterSorting: alphabetical
9+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-generichost-net4.7-useDateTimeForDate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
targetFramework: net47
1010
modelPropertySorting: alphabetical
1111
operationParameterSorting: alphabetical
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-generichost-net8-useDateTimeForDate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
targetFramework: net8.0
1010
modelPropertySorting: alphabetical
1111
operationParameterSorting: alphabetical
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-generichost-net9-useDateTimeForDate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
targetFramework: net9.0
1010
modelPropertySorting: alphabetical
1111
operationParameterSorting: alphabetical
12+
disallowAdditionalPropertiesIfNotPresent: true

0 commit comments

Comments
 (0)