mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 15:54:31 +00:00
[ci][cli] Moving ensures script to config-based batch generation of samples (#6509)
* Ensure CLI-level generator settings are available in additional properties * Initial conversion to yaml configs Configs prefix with 1- need to be manually evaluated. * Add "other" configs not in ensure-up-to-date * Add other/openapi3 files * Cleanup all generation scripts * Clean up: add missed configs and fix some openapi 3 diffs * Move generate-samples script, error on batch failures * Temporarily disable elm which requires skip validation of spec * CI updates (todo: run all generators through appveyor or move to github workflows) * Add success count to batch generation command output * [samples] Regenerate * Remove bin/windows * Generate swift5 samples in bitrise * Expand user input glob pattern * Regenerate samples * Update PR template * Support config based generateAliasAsModel * [samples] Regenerate * [rust] Generate as alias for all samples configs * [csharp] Move test staged file changes to in-directory * Include "live" test files and ignore test cache files from samples.ci * Remove concept of samples.ci staging Generators support .openapi-generator-ignore, allowing maintainers to explicitly ignore the regeneration of files which have been modified. Note that the tooling does not overwrite test files whenever those files exist, and it's not entirely necessary to add test files to the ignore file. * Re-add meta generator scripts * Modify ensure-up-to-date to log stdout, so script does not look like it hangs on slower machines * [csharp] Regenerate sample * Set generateAliasAsModel CodegenConfigurator#toContext This ensures the property (which is effectively a thread-local) gets set as expected if the caller resets GlobalSettings as is done in the GenerateBatch command. * [rust] Regenerate samples * Re-enable elm * [java] Support OffsetDateTime example, fail ensures script on any generation error * [samples] Regenerate * Fix jersey2-java8 ignore file * Fix elm spec validation * Force UTC in sample generation to avoid timezone conflicts during generation (user vs ci) Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
@@ -639,7 +639,7 @@ public class FakeApi {
|
||||
* @param string None (optional)
|
||||
* @param binary None (optional)
|
||||
* @param date None (optional)
|
||||
* @param dateTime None (optional, default to OffsetDateTime.parse("2010-02-01T17:20:10.111110+08:00[Asia/Hong_Kong]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault())))
|
||||
* @param dateTime None (optional, default to OffsetDateTime.parse("2010-02-01T09:20:10.111110Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault())))
|
||||
* @param password None (optional)
|
||||
* @param paramCallback None (optional)
|
||||
* @throws ApiException if fails to make API call
|
||||
@@ -668,7 +668,7 @@ public class FakeApi {
|
||||
* @param string None (optional)
|
||||
* @param binary None (optional)
|
||||
* @param date None (optional)
|
||||
* @param dateTime None (optional, default to OffsetDateTime.parse("2010-02-01T17:20:10.111110+08:00[Asia/Hong_Kong]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault())))
|
||||
* @param dateTime None (optional, default to OffsetDateTime.parse("2010-02-01T09:20:10.111110Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault())))
|
||||
* @param password None (optional)
|
||||
* @param paramCallback None (optional)
|
||||
* @return ApiResponse<Void>
|
||||
@@ -1231,7 +1231,7 @@ if (param2 != null)
|
||||
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "pipe", pipe));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("space", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("ssv", "http", http));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
|
||||
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ public class FormatTest {
|
||||
* Get date
|
||||
* @return date
|
||||
**/
|
||||
@ApiModelProperty(example = "Sun Feb 02 08:00:00 HKT 2020", required = true, value = "")
|
||||
@ApiModelProperty(example = "Sun Feb 02 00:00:00 UTC 2020", required = true, value = "")
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public class InlineObject3 {
|
||||
private LocalDate date;
|
||||
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
private OffsetDateTime dateTime = OffsetDateTime.parse("2010-02-01T17:20:10.111110+08:00[Asia/Hong_Kong]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault()));
|
||||
private OffsetDateTime dateTime = OffsetDateTime.parse("2010-02-01T09:20:10.111110Z[UTC]", java.time.format.DateTimeFormatter.ISO_ZONED_DATE_TIME.withZone(java.time.ZoneId.systemDefault()));
|
||||
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
private String password;
|
||||
|
||||
Reference in New Issue
Block a user