mirror of
https://gitlab.com/mobicoop/v3/service/auth.git
synced 2026-01-12 05:42:40 +00:00
fix enum values
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export enum Action {
|
||||
create = 'create',
|
||||
read = 'read',
|
||||
update = 'update',
|
||||
delete = 'delete',
|
||||
list = 'list',
|
||||
CREATE = 'CREATE',
|
||||
READ = 'READ',
|
||||
UPDATE = 'UPDATE',
|
||||
DELETE = 'DELETE',
|
||||
LIST = 'LIST',
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { IsArray, IsNotEmpty, IsString } from 'class-validator';
|
||||
import { IsArray, IsEnum, IsNotEmpty, IsString } from 'class-validator';
|
||||
import { ContextItem } from './context-item';
|
||||
import { Action } from './action.enum';
|
||||
import { Domain } from './domain.enum';
|
||||
@@ -8,11 +8,11 @@ export class DecisionRequest {
|
||||
@IsNotEmpty()
|
||||
uuid: string;
|
||||
|
||||
@IsString()
|
||||
@IsEnum(Domain)
|
||||
@IsNotEmpty()
|
||||
domain: Domain;
|
||||
|
||||
@IsString()
|
||||
@IsEnum(Action)
|
||||
@IsNotEmpty()
|
||||
action: Action;
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export enum Domain {
|
||||
user = 'user',
|
||||
USER = 'USER',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user