mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
remove validation annotations
This commit is contained in:
parent
24fafb3187
commit
575cd29540
@ -1,13 +1,10 @@
|
||||
import { IsString } from 'class-validator'
|
||||
import { ArgsType, Field } from 'type-graphql'
|
||||
|
||||
@ArgsType()
|
||||
export class OpenConnectionArgs {
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
publicKey: string
|
||||
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
url: string
|
||||
}
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
import { IsString, IsUUID } from 'class-validator'
|
||||
import { Field, InputType } from 'type-graphql'
|
||||
|
||||
@InputType()
|
||||
export class AuthenticationArgs {
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
oneTimeCode: string
|
||||
|
||||
@Field(() => String)
|
||||
@IsUUID('4')
|
||||
uuid: string
|
||||
}
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
import { IsString } from 'class-validator'
|
||||
import { Field, InputType } from 'type-graphql'
|
||||
|
||||
@InputType()
|
||||
export class OpenConnectionArgs {
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
publicKey: string
|
||||
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
url: string
|
||||
}
|
||||
|
||||
@ -1,13 +1,10 @@
|
||||
import { IsString } from 'class-validator'
|
||||
import { Field, InputType } from 'type-graphql'
|
||||
|
||||
@InputType()
|
||||
export class OpenConnectionCallbackArgs {
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
oneTimeCode: string
|
||||
|
||||
@Field(() => String)
|
||||
@IsString()
|
||||
url: string
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user