mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02: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",
|
"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": "",
|
"instancePath": "",
|
||||||
"keyword": "required",
|
"keyword": "required",
|
||||||
|
@ -5,7 +5,14 @@ export const apiTokenSchema = {
|
|||||||
$id: '#/components/schemas/apiTokenSchema',
|
$id: '#/components/schemas/apiTokenSchema',
|
||||||
type: 'object',
|
type: 'object',
|
||||||
additionalProperties: false,
|
additionalProperties: false,
|
||||||
required: ['secret', 'tokenName', 'type', 'createdAt'],
|
required: [
|
||||||
|
'secret',
|
||||||
|
'tokenName',
|
||||||
|
'type',
|
||||||
|
'project',
|
||||||
|
'projects',
|
||||||
|
'createdAt',
|
||||||
|
],
|
||||||
description:
|
description:
|
||||||
'An overview of an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).',
|
'An overview of an [Unleash API token](https://docs.getunleash.io/reference/api-tokens-and-client-keys).',
|
||||||
properties: {
|
properties: {
|
||||||
|
Loading…
Reference in New Issue
Block a user