mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
Revert "fix: api token schema" (#4638)
Reverts Unleash/unleash#4633 because of https://github.com/Unleash/unleash/pull/4633#issuecomment-1710122769
This commit is contained in:
parent
cd2eac23ef
commit
feab6db76e
@ -30,6 +30,24 @@ exports[`apiTokenSchema empty 1`] = `
|
||||
},
|
||||
"schemaPath": "#/required",
|
||||
},
|
||||
{
|
||||
"instancePath": "",
|
||||
"keyword": "required",
|
||||
"message": "must have required property 'project'",
|
||||
"params": {
|
||||
"missingProperty": "project",
|
||||
},
|
||||
"schemaPath": "#/required",
|
||||
},
|
||||
{
|
||||
"instancePath": "",
|
||||
"keyword": "required",
|
||||
"message": "must have required property 'projects'",
|
||||
"params": {
|
||||
"missingProperty": "projects",
|
||||
},
|
||||
"schemaPath": "#/required",
|
||||
},
|
||||
{
|
||||
"instancePath": "",
|
||||
"keyword": "required",
|
||||
|
@ -5,7 +5,14 @@ export const apiTokenSchema = {
|
||||
$id: '#/components/schemas/apiTokenSchema',
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
required: ['secret', 'tokenName', 'type', 'createdAt'],
|
||||
required: [
|
||||
'secret',
|
||||
'tokenName',
|
||||
'type',
|
||||
'project',
|
||||
'projects',
|
||||
'createdAt',
|
||||
],
|
||||
description:
|
||||
'An overview of an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).',
|
||||
properties: {
|
||||
|
Loading…
Reference in New Issue
Block a user