mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 04:56:11 +00:00
Properly handle mappings and import mappings after processOpts (#16216)
* make Java imports overridable * fix for other dateLibraries * complete core fix * adapt test - step 1/2 * add unit test * adapt test - step 2/2 * remove accidentally added file * final small clean-up
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**suffix** | **String** | test suffix | [optional] |
|
||||
|**text** | **String** | Some text containing white spaces | [optional] |
|
||||
|**date** | **OffsetDateTime** | A date | [optional] |
|
||||
|**date** | **Instant** | A date | [optional] |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ public class Example {
|
||||
defaultClient.setBasePath("http://localhost:3000");
|
||||
|
||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||
OffsetDateTime datetimeQuery = OffsetDateTime.now(); // OffsetDateTime |
|
||||
Instant datetimeQuery = new Instant(); // Instant |
|
||||
LocalDate dateQuery = LocalDate.now(); // LocalDate |
|
||||
String stringQuery = "stringQuery_example"; // String |
|
||||
try {
|
||||
@@ -203,7 +203,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **datetimeQuery** | **OffsetDateTime**| | [optional] |
|
||||
| **datetimeQuery** | **Instant**| | [optional] |
|
||||
| **dateQuery** | **LocalDate**| | [optional] |
|
||||
| **stringQuery** | **String**| | [optional] |
|
||||
|
||||
@@ -251,7 +251,7 @@ public class Example {
|
||||
defaultClient.setBasePath("http://localhost:3000");
|
||||
|
||||
QueryApi apiInstance = new QueryApi(defaultClient);
|
||||
OffsetDateTime datetimeQuery = OffsetDateTime.now(); // OffsetDateTime |
|
||||
Instant datetimeQuery = new Instant(); // Instant |
|
||||
LocalDate dateQuery = LocalDate.now(); // LocalDate |
|
||||
String stringQuery = "stringQuery_example"; // String |
|
||||
try {
|
||||
@@ -275,7 +275,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **datetimeQuery** | **OffsetDateTime**| | [optional] |
|
||||
| **datetimeQuery** | **Instant**| | [optional] |
|
||||
| **dateQuery** | **LocalDate**| | [optional] |
|
||||
| **stringQuery** | **String**| | [optional] |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user