You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-09 23:17:29 +02:00
chore(mobile): properly patch openapi with custom response dto (#11753)
This commit is contained in:
1
mobile/openapi/lib/api.dart
generated
1
mobile/openapi/lib/api.dart
generated
@@ -16,6 +16,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:immich_mobile/utils/openapi_patching.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
|
1
mobile/openapi/lib/api_client.dart
generated
1
mobile/openapi/lib/api_client.dart
generated
@@ -166,6 +166,7 @@ class ApiClient {
|
||||
|
||||
/// Returns a native instance of an OpenAPI class matching the [specified type][targetType].
|
||||
static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) {
|
||||
upgradeDto(value, targetType);
|
||||
try {
|
||||
switch (targetType) {
|
||||
case 'String':
|
||||
|
2
mobile/openapi/lib/model/rating_response.dart
generated
2
mobile/openapi/lib/model/rating_response.dart
generated
@@ -13,7 +13,7 @@ part of openapi.api;
|
||||
class RatingResponse {
|
||||
/// Returns a new [RatingResponse] instance.
|
||||
RatingResponse({
|
||||
required this.enabled,
|
||||
this.enabled = false,
|
||||
});
|
||||
|
||||
bool enabled;
|
||||
|
Reference in New Issue
Block a user