Skip to content

Commit e1f3473

Browse files
committed
set disallowAdditionalPropertiesIfNotPresent on samples to avoid converting them all at once
1 parent d1f95bb commit e1f3473

File tree

92 files changed

+97
-7
lines changed

Some content is hidden

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

92 files changed

+97
-7
lines changed

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/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-tags.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-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

bin/configs/csharp-restsharp-net4.7-multipleFrameworks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
targetFramework: netstandard2.1;net47
99
useCompareNetObjects: "true"
1010
equatable: true
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-restsharp-net8-compareNetObjects.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
targetFramework: net8.0
99
useCompareNetObjects: "true"
1010
equatable: true
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-restsharp-net8-echo-api.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
setCompareNetObjects: "true"
1010
hideGenerationTimestamp: "true"
1111
equatable: true
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-restsharp-net8-name-mappings.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ additionalProperties:
1818
hideGenerationTimestamp: "true"
1919
targetFramework: net8.0
2020
equatable: true
21+
disallowAdditionalPropertiesIfNotPresent: true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
packageGuid: '{D0A67E81-4061-48EB-B4B8-C73BDF8B2D95}'
99
targetFramework: net8.0
1010
useDateTimeForDate: true
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-restsharp-netstandard2.0-complexfiles.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ additionalProperties:
88
targetFramework: netstandard2.0
99
useCompareNetObjects: "true"
1010
equatable: true
11+
disallowAdditionalPropertiesIfNotPresent: true
1112
globalProperties:
1213
skipFormModel: "false"

bin/configs/csharp-restsharp-useVirtualForHooks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
packageGuid: '{D0A67E81-4061-48EB-B4B8-C73BDF8B2D95}'
99
targetFramework: net8.0
1010
useVirtualForHooks: true
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/csharp-unityWebRequest-netstandard2.0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ library: unityWebRequest
77
additionalProperties:
88
targetFramework: netstandard2.0
99
equatable: true
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/dart-dio-petstore-client-lib-fake.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ typeMappings:
99
additionalProperties:
1010
hideGenerationTimestamp: "true"
1111
enumUnknownDefaultCase: "true"
12+
disallowAdditionalPropertiesIfNotPresent: true
1213
reservedWordsMappings:
1314
class: "classField"

bin/configs/go-echo-api.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/echo_api.yaml
44
templateDir: modules/openapi-generator/src/main/resources/go
55
additionalProperties:
66
hideGenerationTimestamp: "true"
7+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/go-echo-external-refs-test.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/external-refs/echo_a
44
templateDir: modules/openapi-generator/src/main/resources/go
55
additionalProperties:
66
hideGenerationTimestamp: "true"
7+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/go-multiple-allof-ref-with-discriminator.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ outputDir: samples/client/others/go/allof_multiple_ref_and_discriminator
33
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/allof_multiple_ref_and_discriminator.yaml
44
additionalProperties:
55
hideGenerationTimestamp: "true"
6+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/go-oneof-anyof-required.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ outputDir: samples/client/others/go/oneof-anyof-required
33
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-anyof-required.yaml
44
additionalProperties:
55
hideGenerationTimestamp: "true"
6+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/go-oneof-discriminator-lookup.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/go/spec-with-oneof-d
44
additionalProperties:
55
useOneOfDiscriminatorLookup: "true"
66
hideGenerationTimestamp: "true"
7+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/go-petstore-oas2.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/go
55
additionalProperties:
66
packageName: petstore
77
generateInterfaces: true
8+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-feign-gson-echo-api.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
serializationLibrary: gson
88
artifactId: echo-api-feign-json
99
hideGenerationTimestamp: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-feign-hc5.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
booleanGetterPrefix: is
88
artifactId: petstore-feign-hc5
9-
hideGenerationTimestamp: "true"
9+
hideGenerationTimestamp: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-feign-no-nullable.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ additionalProperties:
1111
openApiNullable: false
1212
useReflectionEqualsHashCode: true
1313
annotationLibrary: "swagger1"
14+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-feign.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
booleanGetterPrefix: is
88
artifactId: petstore-feign
99
hideGenerationTimestamp: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-jersey2-8-oas2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
serverPort: "8082"
1010
dateLibrary: java8
1111
useOneOfDiscriminatorLookup: true
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-jersey2-8-oneOfDuplicateList.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_duplicateArray
55
templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
hideGenerationTimestamp: "true"
8+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-jersey2-8-oneOfMixed.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_primitiveAndAr
55
templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
hideGenerationTimestamp: "true"
8+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-jersey2-java8-localdatetime.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
dateLibrary: java8-localdatetime
1010
java8: true
1111
delegatePattern: true
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-jersey3-oneOf.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_additionalProp
55
templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
hideGenerationTimestamp: true
8+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-okhttp-gson-dynamicOperations.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: petstore-okhttp-gson-dynamicoperations
88
hideGenerationTimestamp: "true"
99
dynamicOperations: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-okhttp-gson-echo-api.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
artifactId: echo-api-okhttp-gson
88
hideGenerationTimestamp: "true"
9+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-okhttp-gson-oneOf-array.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
hideGenerationTimestamp: "true"
88
useBeanValidation: "true"
9+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-okhttp-gson-parcelableModel.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
parcelableModel: "true"
88
artifactId: petstore-okhttp-gson-parcelableModel
99
hideGenerationTimestamp: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-okhttp-gson-streaming.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
supportStreaming: true
1010
serializableModel: true
1111
enumPropertyNaming: legacy
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-okhttp-user-defined-templates.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
55
templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
hideGenerationTimestamp: "true"
8+
disallowAdditionalPropertiesIfNotPresent: true
89
files:
910
README.mustache:
1011
destinationFilename: info.md

bin/configs/java-restclient-echo-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
artifactId: echo-api-native
88
hideGenerationTimestamp: "true"
9-
9+
disallowAdditionalPropertiesIfNotPresent: true
1010
typeMappings:
1111
OffsetDateTime: "Instant"
1212
importMappings:

bin/configs/java-restclient-swagger2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
hideGenerationTimestamp: "true"
99
containerDefaultToNull: "true"
1010
annotationLibrary: "swagger2"
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-restclient-useSingleRequestParameter-static.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ templateDir: modules/openapi-generator/src/main/resources/Java
66
additionalProperties:
77
artifactId: singleparam-restclient-static
88
hideGenerationTimestamp: "true"
9-
useSingleRequestParameter: static
9+
useSingleRequestParameter: static
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-restclient-useSingleRequestParameter.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: singleparam-restclient
88
hideGenerationTimestamp: "true"
99
useSingleRequestParameter: true
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-restclient.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: petstore-restclient
88
hideGenerationTimestamp: "true"
99
containerDefaultToNull: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-resttemplate-echo-api.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
hideGenerationTimestamp: "true"
99
java8: true
1010
containerDefaultToNull: true
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-resttemplate-withXml.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
withXml: "true"
99
artifactId: petstore-resttemplate-withxml
1010
hideGenerationTimestamp: "true"
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-resttemplate.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ additionalProperties:
1010
containerDefaultToNull: true
1111
generateConstructorWithAllArgs: true
1212
generateBuilders: true
13+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-webclient-jakarta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: petstore-webclient
88
hideGenerationTimestamp: "true"
99
useJakartaEe: true
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-webclient-swagger2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
hideGenerationTimestamp: "true"
99
containerDefaultToNull: "true"
1010
annotationLibrary: "swagger2"
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-webclient-useSingleRequestParameter.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: singleparam-webclient
88
hideGenerationTimestamp: "true"
99
useSingleRequestParameter: true
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/java-webclient.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: petstore-webclient
88
hideGenerationTimestamp: "true"
99
containerDefaultToNull: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/jaxrs-spec-jakarta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
implicitHeadersRegex: (api_key|enum_header_string)
1010
generateBuilders: "true"
1111
useJakartaEe: "true"
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/jaxrs-spec-quarkus-microprofile-openapi-annotations.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ additionalProperties:
1111
useMicroProfileOpenAPIAnnotations: "true"
1212
library: "quarkus"
1313
dateLibrary: "java8-localdatetime"
14+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/jaxrs-spec-quarkus-mutiny.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ additionalProperties:
1313
useMutiny: "true"
1414
library: "quarkus"
1515
dateLibrary: "java8-localdatetime"
16+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/jaxrs-spec-required-and-readonly-property.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
hideGenerationTimestamp: "true"
99
implicitHeadersRegex: (api_key|enum_header_string)
1010
generateBuilders: "true"
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/jaxrs-spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ additionalProperties:
88
hideGenerationTimestamp: "true"
99
implicitHeadersRegex: (api_key|enum_header_string)
1010
generateBuilders: "true"
11+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/powershell-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/powershell
55
additionalProperties:
66
hideGenerationTimestamp: "true"
77
packageGuid: a27b908d-2a20-467f-bc32-af6f3a654ac5
8+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/powershell.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ additionalProperties:
1414
projectUri: https://github.com/OpenAPITools/openapi-generator
1515
releaseNotes: 'This is a sample project'
1616
tags: 'PetStore,powershell,sdk'
17+
disallowAdditionalPropertiesIfNotPresent: true
1718
nameMappings:
1819
name_mapping: SomethingElse
1920
modelNameMappings:

bin/configs/protobuf-schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/protobuf/petstore.ya
44
templateDir: modules/openapi-generator/src/main/resources/protobuf-schema
55
additionalProperties:
66
packageName: petstore
7+
disallowAdditionalPropertiesIfNotPresent: true
78
typeMappings:
89
object: "google.protobuf.Struct"
910
importMappings:

bin/configs/python-aiohttp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ library: asyncio
66
additionalProperties:
77
packageName: petstore_api
88
mapNumberTo: float
9+
disallowAdditionalPropertiesIfNotPresent: true
910
nameMappings:
1011
_type: underscore_type
1112
type_: type_with_underscore

bin/configs/python-echo-api.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/echo_api.yaml
44
templateDir: modules/openapi-generator/src/main/resources/python
55
additionalProperties:
66
hideGenerationTimestamp: "true"
7+
disallowAdditionalPropertiesIfNotPresent: true

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+
disallowAdditionalPropertiesIfNotPresent: true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ library: asyncio
66
additionalProperties:
77
packageName: petstore_api
88
mapNumberTo: float
9+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/python-pydantic-v1-echo-api.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/echo_api.yaml
44
templateDir: modules/openapi-generator/src/main/resources/python-pydantic-v1
55
additionalProperties:
66
hideGenerationTimestamp: "true"
7+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/r-echo-api.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/echo_api.yaml
44
templateDir: modules/openapi-generator/src/main/resources/r
55
additionalProperties:
66
hideGenerationTimestamp: "true"
7+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/r-httr2-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ additionalProperties:
1717
returnExceptionOnFailure: true
1818
errorObjectType: "ModelApiResponse"
1919
operationIdNaming: snake_case
20-
20+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/rust-server-openapi-v3.yaml

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

bin/configs/rust-server-petstore-with-fake-endpoints-models-for-testing.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
hideGenerationTimestamp: "true"
88
packageName: petstore-with-fake-endpoints-models-for-testing
99
publishRustRegistry: crates-io
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/scala-cask-petstore.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ additionalProperties:
1010
modelPackage: "sample.cask.model"
1111
apiPackage: "sample.cask.api"
1212
gitRepoId: "sample-cask-repo"
13-
gitUserId: "sample-cask-user"
13+
gitUserId: "sample-cask-user"
14+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/spring-boot-beanvalidation-no-nullable.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ additionalProperties:
1111
artifactId: spring-boot-beanvalidation-no-nullable
1212
hideGenerationTimestamp: "true"
1313
openApiNullable: "false"
14+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/spring-boot-beanvalidation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ additionalProperties:
1010
useBeanValidation: true
1111
artifactId: spring-boot-beanvalidation
1212
hideGenerationTimestamp: "true"
13+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/spring-boot-builtin-validation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ additionalProperties:
1111
useSpringBuiltInValidation: true
1212
artifactId: spring-boot-builtin-validation
1313
hideGenerationTimestamp: "true"
14+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/spring-boot-defaultInterface-unhandledException.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
interfaceOnly: true
1010
skipDefaultInterface: true
1111
unhandledException: true
12+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/spring-boot-delegate-j8.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ additionalProperties:
77
artifactId: springboot-delegate-j8
88
hideGenerationTimestamp: "true"
99
delegatePattern: "true"
10+
disallowAdditionalPropertiesIfNotPresent: true

bin/configs/spring-boot-delegate-oas3.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ additionalProperties:
99
hideGenerationTimestamp: "true"
1010
java8: true
1111
delegatePattern: "true"
12+
disallowAdditionalPropertiesIfNotPresent: true

0 commit comments

Comments
 (0)