Skip to content

Commit beb4118

Browse files
committed
Merge https://github.com/openapitools/openapi-generator into fix-cpp-qt-enum-asjsonobject
2 parents 74daaa1 + d6c4634 commit beb4118

File tree

203 files changed

+1647
-231
lines changed

Some content is hidden

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

203 files changed

+1647
-231
lines changed

CI/circle_parallel.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ elif [ "$NODE_INDEX" = "3" ]; then
7474
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
7575
#nvm install stable
7676
# install v16 instead of the latest stable version
77-
nvm install 16
78-
nvm alias default 16
77+
nvm install 18
78+
nvm alias default 18
7979
node --version
8080

8181
# Each step uses the same `$BASH_ENV`, so need to modify it
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
generatorName: typescript-angular
2+
outputDir: samples/client/petstore/typescript-angular-v19/builds/deep-object
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/deep-object-query.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript-angular
5+
additionalProperties:
6+
ngVersion: 19.0.0
7+
npmName: sample-angular-19-0-0-deep-object
8+
supportsES6: true

docs/templating.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -820,15 +820,21 @@ Many generators (*those extending DefaultCodegen*) come with a small set of lamb
820820
821821
- `lowercase` - Converts all of the characters in this fragment to lower case using the rules of the `ROOT` locale.
822822
- `uppercase` - Converts all of the characters in this fragment to upper case using the rules of the `ROOT` locale.
823+
- `snakecase` - Converts text in a fragment to snake case. For example `once upon a time` to `once_upon_a_time`.
823824
- `titlecase` - Converts text in a fragment to title case. For example `once upon a time` to `Once Upon A Time`.
825+
- `kebabcase` - Converts text in a fragment to snake case. For example `Once Upon A Time` to `once-upon-a-time`.
826+
- `pascalcase` - Converts text in a fragment to snake case. For example `once upon a time` to `OnceUponATime`.
824827
- `camelcase` - Converts text in a fragment to camelCase. For example `Input-text` to `inputText`.
825828
- `uncamelize` - Converts text in a fragment from camelCase or PascalCase to a string of words separated by whitespaces. For example `inputText` to `Input Text`.
829+
- `forwardslash` - Replaces all occurrences of `\/`, `\` and `//` in a fragment by `/`.
830+
- `backslash` - Replaces all occurrences `/` in a fragment by `\`.
831+
- `doublequote` - Prepends `"` to the beginning and appends `"` to the end of a fragment.
826832
- `indented` - Prepends 4 spaces indention from second line of a fragment on. First line will be indented by Mustache.
827833
- `indented_8` - Prepends 8 spaces indention from second line of a fragment on. First line will be indented by Mustache.
828834
- `indented_12` - Prepends 12 spaces indention from second line of a fragment on. First line will be indented by Mustache.
829835
- `indented_16` -Prepends 16 spaces indention from second line of a fragment on. First line will be indented by Mustache.
830836
831-
Lambda is invoked by `lambda.[lambda name]` expression. For example: `{{#lambda.lowercase}}FRAGMENT TO LOWERCASE{{/lambda.lowercase}}` to lower case text between `lambda.lowercase`.
837+
Some generators provide additional lambdas. Lambda is invoked by `lambda.[lambda name]` expression. For example: `{{#lambda.lowercase}}FRAGMENT TO LOWERCASE{{/lambda.lowercase}}` to lower case text between `lambda.lowercase`.
832838
833839
## Extensions
834840

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java

+2
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ public void processOpts() {
404404
* If common lambdas are not desired, override addMustacheLambdas() method
405405
* and return empty builder.
406406
*
407+
* Corresponding user documentation: docs/templating.md, section "Mustache Lambdas"
408+
*
407409
* @return preinitialized map with common lambdas
408410
*/
409411
protected ImmutableMap.Builder<String, Lambda> addMustacheLambdas() {

modules/openapi-generator/src/main/resources/Java/RFC3339InstantDeserializer.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import com.fasterxml.jackson.datatype.jsr310.deser.InstantDeserializer;
1919

2020
{{>generatedAnnotation}}
2121
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
22-
22+
private static final long serialVersionUID = 1L;
2323
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
2424
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
2525
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

modules/openapi-generator/src/main/resources/Java/RFC3339JavaTimeModule.mustache

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.fasterxml.jackson.databind.module.SimpleModule;
99

1010
{{>generatedAnnotation}}
1111
public class RFC3339JavaTimeModule extends SimpleModule {
12+
private static final long serialVersionUID = 1L;
1213
1314
public RFC3339JavaTimeModule() {
1415
super("RFC3339JavaTimeModule");

modules/openapi-generator/src/main/resources/JavaJaxRS/enumClass.mustache

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,12 @@
3636
this.value = value;
3737
}
3838

39-
@Override
4039
@JsonValue
40+
public {{{dataType}}} getValue() {
41+
return value;
42+
}
43+
44+
@Override
4145
public String toString() {
4246
return String.valueOf(value);
4347
}

modules/openapi-generator/src/main/resources/csharp/ApiClient.mustache

+3-3
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ namespace {{packageName}}.Client
493493
{
494494
InterceptRequest(request);
495495
496-
RestResponse<T> response = await getResponse(client);
496+
RestResponse<T> response = await getResponse(client).ConfigureAwait(false);
497497
498498
// if the response type is oneOf/anyOf, call FromJSON to deserialize the data
499499
if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
@@ -562,7 +562,7 @@ namespace {{packageName}}.Client
562562
{
563563
if (policyResult.Outcome == OutcomeType.Successful)
564564
{
565-
return await client.Deserialize<T>(policyResult.Result, cancellationToken);
565+
return await client.Deserialize<T>(policyResult.Result, cancellationToken).ConfigureAwait(false);
566566
}
567567
else
568568
{
@@ -621,7 +621,7 @@ namespace {{packageName}}.Client
621621
{
622622
var policy = RetryConfiguration.AsyncRetryPolicy;
623623
var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false);
624-
return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken);
624+
return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken).ConfigureAwait(false);
625625
}
626626
else
627627
{

modules/openapi-generator/src/main/resources/typescript-angular/api.base.service.mustache

+9-4
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,27 @@ export class BaseService {
2929
return consumes.indexOf('multipart/form-data') !== -1;
3030
}
3131

32-
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
32+
protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep: boolean = false): HttpParams {
3333
// If the value is an object (but not a Date), recursively add its keys.
3434
if (typeof value === 'object' && !(value instanceof Date)) {
35-
return this.addToHttpParamsRecursive(httpParams, value);
35+
return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);
3636
}
3737
return this.addToHttpParamsRecursive(httpParams, value, key);
3838
}
3939

40-
protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
40+
protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep: boolean = false): HttpParams {
4141
if (value === null || value === undefined) {
4242
return httpParams;
4343
}
4444
if (typeof value === 'object') {
4545
// If JSON format is preferred, key must be provided.
4646
if (key != null) {
47-
return httpParams.append(key, JSON.stringify(value));
47+
return isDeep
48+
? Object.keys(value as Record<string, any>).reduce(
49+
(hp, k) => hp.append(`${key}[${k}]`, value[k]),
50+
httpParams,
51+
)
52+
: httpParams.append(key, JSON.stringify(value));
4853
}
4954
// Otherwise, if it's an array, add each element.
5055
if (Array.isArray(value)) {

modules/openapi-generator/src/main/resources/typescript-angular/api.service.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class {{classname}} extends BaseService {
130130
{{/isArray}}
131131
{{^isArray}}
132132
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
133-
<any>{{paramName}}, '{{baseName}}');
133+
<any>{{paramName}}, '{{baseName}}'{{#isDeepObject}}, true{{/isDeepObject}});
134134
{{/isArray}}
135135
{{/queryParams}}
136136

modules/openapi-generator/src/test/java/org/openapitools/codegen/typescript/typescriptangular/TypeScriptAngularClientCodegenTest.java

+25
Original file line numberDiff line numberDiff line change
@@ -464,4 +464,29 @@ public void testEnumAsConst() throws IOException {
464464
assertThat(fileContents).containsOnlyOnce("} as const;");
465465
assertThat(fileContents).doesNotContain(" as Type");
466466
}
467+
468+
@Test
469+
public void testDeepObject() throws IOException {
470+
// GIVEN
471+
final String specPath = "src/test/resources/3_0/deepobject.yaml";
472+
473+
File output = Files.createTempDirectory("test").toFile();
474+
output.deleteOnExit();
475+
476+
// WHEN
477+
final CodegenConfigurator configurator = new CodegenConfigurator()
478+
.setGeneratorName("typescript-angular")
479+
.setInputSpec(specPath)
480+
.setOutputDir(output.getAbsolutePath().replace("\\", "/"));
481+
482+
final ClientOptInput clientOptInput = configurator.toClientOptInput();
483+
484+
Generator generator = new DefaultGenerator();
485+
generator.opts(clientOptInput).generate();
486+
487+
// THEN
488+
final String fileContents = Files.readString(Paths.get(output + "/api/default.service.ts"));
489+
assertThat(fileContents).containsOnlyOnce("<any>options, 'options', true);");
490+
assertThat(fileContents).containsOnlyOnce("<any>inputOptions, 'inputOptions', true);");
491+
}
467492
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
openapi: 3.0.0
2+
info:
3+
title: deepobject-query
4+
version: 1.0.0
5+
paths:
6+
/car:
7+
get:
8+
operationId: getCars
9+
parameters:
10+
- name: filter
11+
in: query
12+
required: false
13+
style: deepObject
14+
schema:
15+
$ref: '#/components/schemas/CarFilter'
16+
explode: true
17+
responses:
18+
'200':
19+
description: OK
20+
content:
21+
text/plain:
22+
schema:
23+
type: array
24+
items:
25+
$ref: '#/components/schemas/Car'
26+
components:
27+
schemas:
28+
Car:
29+
type: object
30+
properties:
31+
id:
32+
type: integer
33+
format: int64
34+
example: 1
35+
make:
36+
type: string
37+
example: Toyota
38+
model:
39+
type: string
40+
example: Camry
41+
CarFilter:
42+
type: object
43+
properties:
44+
make:
45+
type: string
46+
example: Toyota
47+
model:
48+
type: string
49+
example: Camry

samples/client/echo_api/csharp/restsharp/net8/EchoApi/src/Org.OpenAPITools/Client/ApiClient.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private async Task<ApiResponse<T>> ExecClientAsync<T>(Func<RestClient, Task<Rest
476476
{
477477
InterceptRequest(request);
478478

479-
RestResponse<T> response = await getResponse(client);
479+
RestResponse<T> response = await getResponse(client).ConfigureAwait(false);
480480

481481
// if the response type is oneOf/anyOf, call FromJSON to deserialize the data
482482
if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
@@ -545,7 +545,7 @@ private async Task<RestResponse<T>> DeserializeRestResponseFromPolicyAsync<T>(Re
545545
{
546546
if (policyResult.Outcome == OutcomeType.Successful)
547547
{
548-
return await client.Deserialize<T>(policyResult.Result, cancellationToken);
548+
return await client.Deserialize<T>(policyResult.Result, cancellationToken).ConfigureAwait(false);
549549
}
550550
else
551551
{
@@ -602,7 +602,7 @@ private Task<ApiResponse<T>> ExecAsync<T>(RestRequest request, RequestOptions op
602602
{
603603
var policy = RetryConfiguration.AsyncRetryPolicy;
604604
var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false);
605-
return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken);
605+
return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken).ConfigureAwait(false);
606606
}
607607
else
608608
{

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/native/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/others/csharp-complex-files/src/Org.OpenAPITools/Client/ApiClient.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ private async Task<ApiResponse<T>> ExecClientAsync<T>(Func<RestClient, Task<Rest
476476
{
477477
InterceptRequest(request);
478478

479-
RestResponse<T> response = await getResponse(client);
479+
RestResponse<T> response = await getResponse(client).ConfigureAwait(false);
480480

481481
// if the response type is oneOf/anyOf, call FromJSON to deserialize the data
482482
if (typeof(AbstractOpenAPISchema).IsAssignableFrom(typeof(T)))
@@ -545,7 +545,7 @@ private async Task<RestResponse<T>> DeserializeRestResponseFromPolicyAsync<T>(Re
545545
{
546546
if (policyResult.Outcome == OutcomeType.Successful)
547547
{
548-
return await client.Deserialize<T>(policyResult.Result, cancellationToken);
548+
return await client.Deserialize<T>(policyResult.Result, cancellationToken).ConfigureAwait(false);
549549
}
550550
else
551551
{
@@ -602,7 +602,7 @@ private Task<ApiResponse<T>> ExecAsync<T>(RestRequest request, RequestOptions op
602602
{
603603
var policy = RetryConfiguration.AsyncRetryPolicy;
604604
var policyResult = await policy.ExecuteAndCaptureAsync((ct) => client.ExecuteAsync(request, ct), cancellationToken).ConfigureAwait(false);
605-
return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken);
605+
return await DeserializeRestResponseFromPolicyAsync<T>(client, request, policyResult, cancellationToken).ConfigureAwait(false);
606606
}
607607
else
608608
{

samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

samples/client/others/java/jersey2-oneOf-Mixed/src/main/java/org/openapitools/client/RFC3339JavaTimeModule.java

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
2222
public class RFC3339JavaTimeModule extends SimpleModule {
23+
private static final long serialVersionUID = 1L;
2324

2425
public RFC3339JavaTimeModule() {
2526
super("RFC3339JavaTimeModule");

samples/client/others/java/jersey2-oneOf-duplicates/src/main/java/org/openapitools/client/RFC3339InstantDeserializer.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.14.0-SNAPSHOT")
3232
public class RFC3339InstantDeserializer<T extends Temporal> extends InstantDeserializer<T> {
33-
33+
private static final long serialVersionUID = 1L;
3434
private final static boolean DEFAULT_NORMALIZE_ZONE_ID = JavaTimeFeature.NORMALIZE_DESERIALIZED_ZONE_ID.enabledByDefault();
3535
private final static boolean DEFAULT_ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS
3636
= JavaTimeFeature.ALWAYS_ALLOW_STRINGIFIED_DATE_TIMESTAMPS.enabledByDefault();

0 commit comments

Comments
 (0)