Skip to content

Default to OAS-compliant handling of additionalProperties #21170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions bin/configs/c-bearer-auth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ generatorName: c
outputDir: samples/client/others/c/bearerAuth
inputSpec: modules/openapi-generator/src/test/resources/3_0/c/bearer_auth.yaml
templateDir: modules/openapi-generator/src/main/resources/C-libcurl
additionalProperties:
disallowAdditionalPropertiesIfNotPresent: true
2 changes: 2 additions & 0 deletions bin/configs/cpp-restbed-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ generatorName: cpp-restbed-server
outputDir: samples/server/petstore/cpp-restbed/generated/3_0
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/cpp-restbed-server
additionalProperties:
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-generichost-latest-helloWorld.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
modelPropertySorting: alphabetical
operationParameterSorting: alphabetical
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-generichost-latest-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
packageGuid: '{321C8C3F-0156-40C1-AE42-D59761FB9B6C}'
modelPropertySorting: alphabetical
operationParameterSorting: alphabetical
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
targetFramework: net47
modelPropertySorting: alphabetical
operationParameterSorting: alphabetical
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
targetFramework: net48
modelPropertySorting: alphabetical
operationParameterSorting: alphabetical
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
targetFramework: net8.0
modelPropertySorting: alphabetical
operationParameterSorting: alphabetical
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
targetFramework: net9.0
modelPropertySorting: alphabetical
operationParameterSorting: alphabetical
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
targetFramework: netstandard2.1;net47
useCompareNetObjects: "true"
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-restsharp-net8-compareNetObjects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
targetFramework: net8.0
useCompareNetObjects: "true"
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-restsharp-net8-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
setCompareNetObjects: "true"
hideGenerationTimestamp: "true"
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-restsharp-net8-name-mappings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
targetFramework: net8.0
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-restsharp-net8-useDateTimeForDate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
packageGuid: '{D0A67E81-4061-48EB-B4B8-C73BDF8B2D95}'
targetFramework: net8.0
useDateTimeForDate: true
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ additionalProperties:
targetFramework: netstandard2.0
useCompareNetObjects: "true"
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
globalProperties:
skipFormModel: "false"
1 change: 1 addition & 0 deletions bin/configs/csharp-restsharp-useVirtualForHooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
packageGuid: '{D0A67E81-4061-48EB-B4B8-C73BDF8B2D95}'
targetFramework: net8.0
useVirtualForHooks: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-unityWebRequest-net9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ library: unityWebRequest
additionalProperties:
targetFramework: net9.0
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/csharp-unityWebRequest-netstandard2.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ library: unityWebRequest
additionalProperties:
targetFramework: netstandard2.0
equatable: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/dart-dio-petstore-client-lib-fake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ typeMappings:
additionalProperties:
hideGenerationTimestamp: "true"
enumUnknownDefaultCase: "true"
disallowAdditionalPropertiesIfNotPresent: true
reservedWordsMappings:
class: "classField"
1 change: 1 addition & 0 deletions bin/configs/go-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
templateDir: modules/openapi-generator/src/main/resources/go
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/go-echo-external-refs-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/external-refs/echo_a
templateDir: modules/openapi-generator/src/main/resources/go
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/go-multiple-allof-ref-with-discriminator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ outputDir: samples/client/others/go/allof_multiple_ref_and_discriminator
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/allof_multiple_ref_and_discriminator.yaml
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/go-oneof-anyof-required.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ outputDir: samples/client/others/go/oneof-anyof-required
inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-anyof-required.yaml
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/go-oneof-discriminator-lookup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/go/spec-with-oneof-d
additionalProperties:
useOneOfDiscriminatorLookup: "true"
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/go-petstore-oas2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ templateDir: modules/openapi-generator/src/main/resources/go
additionalProperties:
packageName: petstore
generateInterfaces: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-feign-gson-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
serializationLibrary: gson
artifactId: echo-api-feign-json
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
3 changes: 2 additions & 1 deletion bin/configs/java-feign-hc5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
booleanGetterPrefix: is
artifactId: petstore-feign-hc5
hideGenerationTimestamp: "true"
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-feign-no-nullable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ additionalProperties:
openApiNullable: false
useReflectionEqualsHashCode: true
annotationLibrary: "swagger1"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-feign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
booleanGetterPrefix: is
artifactId: petstore-feign
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-jersey2-8-oas2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
serverPort: "8082"
dateLibrary: java8
useOneOfDiscriminatorLookup: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-jersey2-8-oneOfDuplicateList.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_duplicateArray
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-jersey2-8-oneOfMixed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_primitiveAndAr
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-jersey2-java8-localdatetime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
dateLibrary: java8-localdatetime
java8: true
delegatePattern: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-jersey3-oneOf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/oneOf_additionalProp
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
hideGenerationTimestamp: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-okhttp-gson-dynamicOperations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
artifactId: petstore-okhttp-gson-dynamicoperations
hideGenerationTimestamp: "true"
dynamicOperations: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-okhttp-gson-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: echo-api-okhttp-gson
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-okhttp-gson-oneOf-array.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
hideGenerationTimestamp: "true"
useBeanValidation: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-okhttp-gson-parcelableModel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
parcelableModel: "true"
artifactId: petstore-okhttp-gson-parcelableModel
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-okhttp-gson-streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
supportStreaming: true
serializableModel: true
enumPropertyNaming: legacy
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-okhttp-user-defined-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
files:
README.mustache:
destinationFilename: info.md
Expand Down
2 changes: 1 addition & 1 deletion bin/configs/java-restclient-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: echo-api-native
hideGenerationTimestamp: "true"

disallowAdditionalPropertiesIfNotPresent: true
typeMappings:
OffsetDateTime: "Instant"
importMappings:
Expand Down
1 change: 1 addition & 0 deletions bin/configs/java-restclient-swagger2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
containerDefaultToNull: "true"
annotationLibrary: "swagger2"
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: singleparam-restclient-static
hideGenerationTimestamp: "true"
useSingleRequestParameter: static
useSingleRequestParameter: static
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-restclient-useSingleRequestParameter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
artifactId: singleparam-restclient
hideGenerationTimestamp: "true"
useSingleRequestParameter: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-restclient.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
artifactId: petstore-restclient
hideGenerationTimestamp: "true"
containerDefaultToNull: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-resttemplate-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
java8: true
containerDefaultToNull: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-resttemplate-withXml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
withXml: "true"
artifactId: petstore-resttemplate-withxml
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-resttemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ additionalProperties:
containerDefaultToNull: true
generateConstructorWithAllArgs: true
generateBuilders: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-webclient-jakarta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
artifactId: petstore-webclient
hideGenerationTimestamp: "true"
useJakartaEe: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-webclient-swagger2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
containerDefaultToNull: "true"
annotationLibrary: "swagger2"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-webclient-useSingleRequestParameter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
artifactId: singleparam-webclient
hideGenerationTimestamp: "true"
useSingleRequestParameter: true
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/java-webclient.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
artifactId: petstore-webclient
hideGenerationTimestamp: "true"
containerDefaultToNull: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/jaxrs-spec-jakarta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
implicitHeadersRegex: (api_key|enum_header_string)
generateBuilders: "true"
useJakartaEe: "true"
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ additionalProperties:
useMicroProfileOpenAPIAnnotations: "true"
library: "quarkus"
dateLibrary: "java8-localdatetime"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/jaxrs-spec-quarkus-mutiny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ additionalProperties:
useMutiny: "true"
library: "quarkus"
dateLibrary: "java8-localdatetime"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/jaxrs-spec-required-and-readonly-property.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
implicitHeadersRegex: (api_key|enum_header_string)
generateBuilders: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/jaxrs-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
implicitHeadersRegex: (api_key|enum_header_string)
generateBuilders: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/powershell-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ templateDir: modules/openapi-generator/src/main/resources/powershell
additionalProperties:
hideGenerationTimestamp: "true"
packageGuid: a27b908d-2a20-467f-bc32-af6f3a654ac5
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/powershell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ additionalProperties:
projectUri: https://github.com/OpenAPITools/openapi-generator
releaseNotes: 'This is a sample project'
tags: 'PetStore,powershell,sdk'
disallowAdditionalPropertiesIfNotPresent: true
nameMappings:
name_mapping: SomethingElse
modelNameMappings:
Expand Down
1 change: 1 addition & 0 deletions bin/configs/protobuf-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/protobuf/petstore.ya
templateDir: modules/openapi-generator/src/main/resources/protobuf-schema
additionalProperties:
packageName: petstore
disallowAdditionalPropertiesIfNotPresent: true
typeMappings:
object: "google.protobuf.Struct"
importMappings:
Expand Down
1 change: 1 addition & 0 deletions bin/configs/python-aiohttp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ library: asyncio
additionalProperties:
packageName: petstore_api
mapNumberTo: float
disallowAdditionalPropertiesIfNotPresent: true
nameMappings:
_type: underscore_type
type_: type_with_underscore
Expand Down
1 change: 1 addition & 0 deletions bin/configs/python-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
templateDir: modules/openapi-generator/src/main/resources/python
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/python-fastapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ templateDir: modules/openapi-generator/src/main/resources/python-fastapi
sourceFolder: "src"
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
Copy link
Contributor Author

@ctreatma ctreatma May 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wing328 In the bin/configs/python-fastapi.yaml, as in many other sample configs, I added disallowAdditionalPropertiesIfNotPresent: true to avoid a PR that has massive changes across all examples. I expected that the samples would have 0 changes as a result, because true was the default value prior to this PR.

1 change: 1 addition & 0 deletions bin/configs/python-pydantic-v1-aiohttp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ library: asyncio
additionalProperties:
packageName: petstore_api
mapNumberTo: float
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/python-pydantic-v1-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
templateDir: modules/openapi-generator/src/main/resources/python-pydantic-v1
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/r-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/echo_api.yaml
templateDir: modules/openapi-generator/src/main/resources/r
additionalProperties:
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
2 changes: 1 addition & 1 deletion bin/configs/r-httr2-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ additionalProperties:
returnExceptionOnFailure: true
errorObjectType: "ModelApiResponse"
operationIdNaming: snake_case

disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/rust-server-openapi-v3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ generateAliasAsModel: true
additionalProperties:
hideGenerationTimestamp: "true"
packageName: openapi-v3
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ additionalProperties:
hideGenerationTimestamp: "true"
packageName: petstore-with-fake-endpoints-models-for-testing
publishRustRegistry: crates-io
disallowAdditionalPropertiesIfNotPresent: true
3 changes: 2 additions & 1 deletion bin/configs/scala-cask-petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ additionalProperties:
modelPackage: "sample.cask.model"
apiPackage: "sample.cask.api"
gitRepoId: "sample-cask-repo"
gitUserId: "sample-cask-user"
gitUserId: "sample-cask-user"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/spring-boot-beanvalidation-no-nullable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ additionalProperties:
artifactId: spring-boot-beanvalidation-no-nullable
hideGenerationTimestamp: "true"
openApiNullable: "false"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/spring-boot-beanvalidation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ additionalProperties:
useBeanValidation: true
artifactId: spring-boot-beanvalidation
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
1 change: 1 addition & 0 deletions bin/configs/spring-boot-builtin-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ additionalProperties:
useSpringBuiltInValidation: true
artifactId: spring-boot-builtin-validation
hideGenerationTimestamp: "true"
disallowAdditionalPropertiesIfNotPresent: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ additionalProperties:
interfaceOnly: true
skipDefaultInterface: true
unhandledException: true
disallowAdditionalPropertiesIfNotPresent: true
Loading
Loading