mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 19:04:38 +00:00
fix required attributes
This commit is contained in:
parent
35df5ce4c4
commit
622d00930f
@ -38,7 +38,7 @@ module.exports = {
|
|||||||
type: 'enumeration',
|
type: 'enumeration',
|
||||||
enum: Object.values(constants.API_TOKEN_TYPE),
|
enum: Object.values(constants.API_TOKEN_TYPE),
|
||||||
configurable: false,
|
configurable: false,
|
||||||
required: false,
|
required: true,
|
||||||
default: constants.API_TOKEN_TYPE.READ_ONLY,
|
default: constants.API_TOKEN_TYPE.READ_ONLY,
|
||||||
},
|
},
|
||||||
accessKey: {
|
accessKey: {
|
||||||
@ -50,6 +50,7 @@ module.exports = {
|
|||||||
lastUsed: {
|
lastUsed: {
|
||||||
type: 'datetime',
|
type: 'datetime',
|
||||||
configurable: false,
|
configurable: false,
|
||||||
|
required: false,
|
||||||
},
|
},
|
||||||
permissions: {
|
permissions: {
|
||||||
type: 'relation',
|
type: 'relation',
|
||||||
@ -57,6 +58,7 @@ module.exports = {
|
|||||||
relation: 'oneToMany',
|
relation: 'oneToMany',
|
||||||
mappedBy: 'token',
|
mappedBy: 'token',
|
||||||
configurable: false,
|
configurable: false,
|
||||||
|
required: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user