-
Notifications
You must be signed in to change notification settings - Fork 123
Upgrade OpenApiGenerator to v7.16.0 to generate new .NET models/services to support allOf/type, System.Text.Json #1204
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
Kwok-he-Chu
wants to merge
126
commits into
main
Choose a base branch
from
v7-generichost
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add extensions Fix templates (wrong copy)
Fix Namespaces for System.Net.Http
Remove method DefaultOrAsync on interface-level
Rename IApi to IAdyenApiService to match /services folder
Adyen.Core.Client.Extensions.HttpRequestMessageExtensions.AdyenLibraryName Adyen.Core.Client.Extensions.HttpRequestMessageExtensions.AdyenLibraryVersion
Small summary/comments fixes
…is removed it compiles Remove /Util folder, no longer used in root
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR addresses the upgrade of the OpenApiGenerator to v7.16.0 used in the Adyen sdk-automation to generate .NET models & services from the Adyen OpenAPI Specifications. This PR addresses
allOfsupport and native support forSystem.Text.Json.Release notes (WIP)
Added new functionality
Folder-structure
/Core-folder with the following functionality:/Authcontains classes to add authorization to HttpHeaders./Clientcontains classes that wrap the ApiResponses and help-functionality to construct the LiveUrl (seeUrlBuilderExtensions.cs)/Client/Extensions/contains thePolly-library that allows user to configureTimeouts,RetriesandCircuitBreakers./Converterscontains JsonConverters forDateOnly,DateOnlyNullable,DateTimeandDateTimeNullable/Optionscontains classes to configure theAdyenOptionsorAdyenEnvironment(Test/Live).DateTimeOffSetnew DateTime(2025, 12, 25, 11, 59, 59)new DateTimeOffset(2025, 12, 25, 11, 59, 59, TimeSpan.Zero)DateTimeOnlynew DateTime(2025, 12, 25, 11, 59, 59)new DateOnly(2025, 12, 25)Mustache templates
api_doc.mustache- Allows documentation generation in/docsfolder, only theService-classes are generated, showing developers how to interact with the APIWebhookHandler.mustache- Allows the WebhookHandler.cs to be generated for deserializing webhooksmodelInnerEnum.mustache, all generated enums are now strings and forward compatible, this fixes Discussion: Should we make the enums forward-compatible? #1071modelGeneric.mustache) and services (api.mustache), supportingallOfChanges - Moved classes
.csproj./TerminalApifolderAdyen/Service/TerminalApiAsyncService->Adyen/**TerminalApi**/Service/TerminalApiServiceAdyen/Service/TerminalApiSyncService->Adyen/**TerminalApi**/Service/TerminalSyncServiceAdyen/Service/TerminalApiLocalService->Adyen/**TerminalApi**/Service/TerminaLocalServiceAdyen/Service/TerminalLocalApiUnencrypted->Adyen/**TerminalApi**/Service/TerminalLocalApiUnencryptedAdyen/Service/TerminalCloudApi->Adyen/**TerminalApi**/Service/TerminalCloudApiAdyen/Service/TerminalLocalApi->Adyen/**TerminalApi**/Service/TerminalLocalApiBreaking changes - Renames
Renamed & Moved
Adyen/Util/HMACValidator.cs->Adyen/Webhooks/HmacValidatorUtility.Removed
BalancePlatformWebhookHandler,ClassicPaltformWebhookhandler,ManagementWebhookHandlerPrerequisites
/Coreand in the newmustache.templates