mirror of
https://github.com/immich-app/immich.git
synced 2026-07-28 14:47:30 -07:00
chore: bump openapi-generator version to v7.24.0 (#30067)
* remove patch in favor of [OpenAPITools/openapi-generator#23930](https://github.com/OpenAPITools/openapi-generator/issues/23930) partially revert "chore(mobile): make openapi requests abortable (#28692)" * gen client * bump openapi-generator version to v7.24.0 * gen client * enum migration changes * drop enum exhaustion switch check
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
OPENAPI_GENERATOR_VERSION=v7.23.0
|
||||
OPENAPI_GENERATOR_VERSION=v7.24.0
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||
"spaces": 2,
|
||||
"generator-cli": {
|
||||
"version": "7.23.0"
|
||||
"version": "7.24.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,14 +34,14 @@ class {{{classname}}} {
|
||||
{{/isNullable}}
|
||||
{{/isEnum}}
|
||||
{{#required}}
|
||||
{{{datatypeWithEnum}}}{{#isNullable}}?{{/isNullable}} {{{name}}};
|
||||
{{#useFinalProperties}}final {{/useFinalProperties}}{{{datatypeWithEnum}}}{{#isNullable}}?{{/isNullable}} {{{name}}};
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
{{#vendorExtensions.x-is-optional}}
|
||||
{{{datatypeWithEnum}}} {{{name}}};
|
||||
{{#useFinalProperties}}final {{/useFinalProperties}}{{{datatypeWithEnum}}} {{{name}}};
|
||||
{{/vendorExtensions.x-is-optional}}
|
||||
{{^vendorExtensions.x-is-optional}}
|
||||
{{{datatypeWithEnum}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}?{{/defaultValue}}{{/isNullable}} {{{name}}};
|
||||
{{#useFinalProperties}}final {{/useFinalProperties}}{{{datatypeWithEnum}}}{{#isNullable}}?{{/isNullable}}{{^isNullable}}{{^defaultValue}}?{{/defaultValue}}{{/isNullable}} {{{name}}};
|
||||
{{/vendorExtensions.x-is-optional}}
|
||||
{{/required}}
|
||||
|
||||
@@ -150,6 +150,21 @@ class {{{classname}}} {
|
||||
return json;
|
||||
}
|
||||
|
||||
{{#useFinalProperties}}
|
||||
/// Clones this instance of [{{{classname}}}] and returns a new one where some of the
|
||||
/// properties have changed.
|
||||
{{{classname}}} copyWith({
|
||||
{{#vars}}
|
||||
{{{datatypeWithEnum}}}? {{{name}}},{{#isNullable}}
|
||||
bool {{{name}}}SetToNull = false,{{/isNullable}}
|
||||
{{/vars}}
|
||||
}) => {{{classname}}}(
|
||||
{{#vars}}
|
||||
{{{name}}}: {{#isNullable}}{{{name}}}SetToNull ? null : {{/isNullable}}{{{name}}} ?? this.{{{name}}},
|
||||
{{/vars}}
|
||||
);
|
||||
|
||||
{{/useFinalProperties}}
|
||||
/// Returns a new [{{{classname}}}] instance and imports its values from
|
||||
/// [value] if it's a [Map], null otherwise.
|
||||
// ignore: prefer_constructors_over_static_methods
|
||||
|
||||
Reference in New Issue
Block a user