mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-12 05:42:40 +00:00
update tests
This commit is contained in:
9
src/modules/authorization/domain/dtos/context-item.ts
Normal file
9
src/modules/authorization/domain/dtos/context-item.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export class ContextItem {
|
||||
name: string;
|
||||
value: any;
|
||||
|
||||
constructor(name: string, value: any) {
|
||||
this.name = name;
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user