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:
Timon
2026-07-20 20:06:23 -04:00
committed by GitHub
parent 3f6897ef80
commit 6fa3f2feac
68 changed files with 1698 additions and 1823 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
OPENAPI_GENERATOR_VERSION=v7.23.0
OPENAPI_GENERATOR_VERSION=v7.24.0
set -euo pipefail
+1 -1
View File
@@ -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