-
Notifications
You must be signed in to change notification settings - Fork 27
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
AnyOf causes code generation problem in icarConsignmentType #357
Comments
@AlexeyHardCode pointed out that openapi-generator 6.x generates code that correctly handles this in C#, BUT in an implementation assignments to or reading from We need to decide whether this should be handled as a slightly breaking change with documentation, or reverted so that |
@AndreasSchultzGEA if you could post a piece of the generated code for |
|
|
There is no additional Constructor taking a String-Argument created as it seems to be present at C#. |
Here's my suggestion:
|
reverting the addresses from 1.3 back to 1.2-version implies to change the code again... If we decide to revert/ change, why in 2 steps instead of one? |
I'll take this issue to the issue-tracker of OpenAPIGenerator |
During our discussion on 12 Jan 2023 we discussed:
|
On 09 February 2023 we agreed:
This avoids a breaking change and the code generation problem. It is slightly less elegant but may be better for users. |
Tested changes for ADE 1.3.2 This pull request integrates the following changes: * Repairs to the `icarStatisticsResource` and related resources - resolves #353 * Revert 1.3 changes to `icarConsignmentType` address fields - resolves #357 * Added an explanation for ADE 1.3 changes around discriminators - resolves #358 * Testing C# and Java code generation for this patch release - resolves #364
The issue is this clause:
This causes code generation to ONLY generate the PostalAddress version, which is a breaking change from previous versions where only a string was possible. This occurs with openapi-generator v6.
The text was updated successfully, but these errors were encountered: