Skip to content

Commit 65f02ab

Browse files
author
Kristel
committed
update to newer openapi spec version
1 parent b0351ae commit 65f02ab

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

generated-tado-api-client/pom.xml

+14-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-maven-plugin -->
3434
<configuration>
3535
<!-- the essentials -->
36-
<inputSpec>https://raw.githubusercontent.com/kritsel/tado-openapispec-v2/v2.2024.08.01.3/tado-openapispec-v2.yaml</inputSpec>
36+
<inputSpec>https://raw.githubusercontent.com/kritsel/tado-openapispec-v2/v2.2024.08.11.4/tado-openapispec-v2.yaml</inputSpec>
3737
<generatorName>java</generatorName>
3838
<library>restclient</library>
3939

@@ -64,10 +64,21 @@
6464
<sourceFolder>${generated.src.folder}/main/java</sourceFolder>
6565
</configOptions>
6666

67-
<!-- use java.time.LocalDateTime instead of java.time.OffsetDateTime -->
67+
<!-- https://stackoverflow.com/questions/32437550/whats-the-difference-between-instant-and-localdatetime -->
68+
<!-- configure the Java types to use for string fields with a format specified
69+
as 'date', 'date-time' or 'time' -->
6870
<typeMappings>
69-
<typeMapping>DateTime=java.time.LocalDateTime</typeMapping>
71+
<typeMapping>DateTime=Instant</typeMapping>
72+
<typeMapping>date=LocalDate</typeMapping>
73+
<typeMapping>time=LocalTime</typeMapping>
7074
</typeMappings>
75+
76+
<!-- configure the imports to use for the Java types defined above -->
77+
<importMappings>
78+
<importMapping>Instant=java.time.Instant</importMapping>
79+
<importMapping>LocalDate=java.time.LocalDate</importMapping>
80+
<importMapping>LocalTime=java.time.LocalTime</importMapping>
81+
</importMappings>
7182
</configuration>
7283
</execution>
7384
</executions>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package tadodemo;public class ScheduledTask {
2+
}

0 commit comments

Comments
 (0)