1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00

chore: Remove duplicated tags (#4580)

## About the changes
At https://github.com/Unleash/unleash/pull/4432 we've introduced the
same tags twice which causes issues when generating the api clients.

Closes #2-1350-fix-openapi-duplicated-tags
This commit is contained in:
Gastón Fournier 2023-08-28 14:03:58 +02:00 committed by GitHub
parent 95be24996e
commit ae18c3d6c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 10 deletions

View File

@ -0,0 +1,8 @@
import { openApiTags } from './openapi-tags';
test('no duplicate tags', () => {
openApiTags.reduce((acc, tag) => {
expect(acc).not.toContain(tag.name);
return [...acc, tag.name];
}, []);
});

View File

@ -33,11 +33,6 @@ const OPENAPI_TAGS = [
'Revive or permanently delete [archived feature toggles](https://docs.getunleash.io/advanced/archived_toggles).',
},
{ name: 'Auth', description: 'Manage logins, passwords, etc.' },
{
name: 'Change Requests',
description:
'Operations related to [Change Requests](https://docs.getunleash.io/reference/change-requests).',
},
{
name: 'Client',
description:
@ -78,11 +73,6 @@ const OPENAPI_TAGS = [
name: 'Metrics',
description: 'Register, read, or delete metrics recorded by Unleash.',
},
{
name: 'Notifications',
description:
'Manage [notifications](https://docs.getunleash.io/reference/notifications).',
},
{
name: 'Operational',
description: