mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
refactor!: migrate class-validator to zod (#26597)
This commit is contained in:
+2
-2
@@ -35,7 +35,7 @@ class PluginActionResponseDto {
|
||||
String pluginId;
|
||||
|
||||
/// Action schema
|
||||
Object? schema;
|
||||
PluginJsonSchema? schema;
|
||||
|
||||
/// Supported contexts
|
||||
List<PluginContextType> supportedContexts;
|
||||
@@ -96,7 +96,7 @@ class PluginActionResponseDto {
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
methodName: mapValueOfType<String>(json, r'methodName')!,
|
||||
pluginId: mapValueOfType<String>(json, r'pluginId')!,
|
||||
schema: mapValueOfType<Object>(json, r'schema'),
|
||||
schema: PluginJsonSchema.fromJson(json[r'schema']),
|
||||
supportedContexts: PluginContextType.listFromJson(json[r'supportedContexts']),
|
||||
title: mapValueOfType<String>(json, r'title')!,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user