chore: Remove displayName field from credentials

This commit is contained in:
Faruk AYDIN
2021-10-14 16:56:51 +02:00
committed by Ali BARIN
parent 5be9ff8383
commit 1fbc58e7e1
5 changed files with 14 additions and 23 deletions

View File

@@ -3,7 +3,6 @@ import User from './user'
class Credential extends Base {
id!: number
displayName!: string
key!: string
data!: string
userId!: number
@@ -12,11 +11,10 @@ class Credential extends Base {
static jsonSchema = {
type: 'object',
required: ['displayName', 'key', 'data', 'userId'],
required: ['key', 'data', 'userId'],
properties: {
id: { type: 'integer' },
displayName: { type: 'string', minLength: 1, maxLength: 255 },
key: { type: 'string', minLength: 1, maxLength: 255 },
data: { type: 'object' },
userId: { type: 'integer' },