update tests

This commit is contained in:
Gsk54
2023-01-18 10:47:20 +01:00
parent 972d43ac30
commit 1d2e7da673
8 changed files with 62 additions and 52 deletions

View File

@@ -0,0 +1,9 @@
export class ContextItem {
name: string;
value: any;
constructor(name: string, value: any) {
this.name = name;
this.value = value;
}
}

View File

@@ -1,4 +1,5 @@
import { IsArray, IsNotEmpty, IsString } from 'class-validator';
import { ContextItem } from './context-item';
import { Action } from './action.enum';
import { Domain } from './domain.enum';
@@ -16,5 +17,5 @@ export class DecisionRequest {
action: Action;
@IsArray()
context?: Array<{ name: string; value: string }>;
context?: Array<ContextItem>;
}