1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-04 01:18:20 +02:00

feat: collaboration mode API cleanup (#3357)

This commit is contained in:
Mateusz Kwasniewski 2023-03-23 14:13:34 +01:00 committed by GitHub
parent db2b40543c
commit 57f42b5629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 10 deletions

View File

@ -36,9 +36,8 @@ export const healthOverviewSchema = {
type: 'string', type: 'string',
enum: ['open', 'protected'], enum: ['open', 'protected'],
example: 'open', example: 'open',
nullable: true,
description: description:
'A mode of the project affecting what actions are possible in this project. During a rollout of project modes this feature can be optional or `null`', "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
}, },
members: { members: {
type: 'number', type: 'number',

View File

@ -48,7 +48,7 @@ export const projectOverviewSchema = {
enum: ['open', 'protected'], enum: ['open', 'protected'],
example: 'open', example: 'open',
description: description:
'A mode of the project affecting what actions are possible in this project', "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
}, },
members: { members: {
type: 'number', type: 'number',

View File

@ -60,7 +60,7 @@ export const projectSchema = {
enum: ['open', 'protected'], enum: ['open', 'protected'],
example: 'open', example: 'open',
description: description:
'A mode of the project affecting what actions are possible in this project', "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
}, },
defaultStickiness: { defaultStickiness: {
type: 'string', type: 'string',

View File

@ -1878,13 +1878,12 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number", "type": "number",
}, },
"mode": { "mode": {
"description": "A mode of the project affecting what actions are possible in this project. During a rollout of project modes this feature can be optional or \`null\`", "description": "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
"enum": [ "enum": [
"open", "open",
"protected", "protected",
], ],
"example": "open", "example": "open",
"nullable": true,
"type": "string", "type": "string",
}, },
"name": { "name": {
@ -1952,13 +1951,12 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number", "type": "number",
}, },
"mode": { "mode": {
"description": "A mode of the project affecting what actions are possible in this project. During a rollout of project modes this feature can be optional or \`null\`", "description": "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
"enum": [ "enum": [
"open", "open",
"protected", "protected",
], ],
"example": "open", "example": "open",
"nullable": true,
"type": "string", "type": "string",
}, },
"name": { "name": {
@ -2832,7 +2830,7 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number", "type": "number",
}, },
"mode": { "mode": {
"description": "A mode of the project affecting what actions are possible in this project", "description": "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
"enum": [ "enum": [
"open", "open",
"protected", "protected",
@ -2917,7 +2915,7 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number", "type": "number",
}, },
"mode": { "mode": {
"description": "A mode of the project affecting what actions are possible in this project", "description": "The project's [collaboration mode](https://docs.getunleash.io/reference/project-collaboration-mode). Determines whether non-project members can submit change requests or not.",
"enum": [ "enum": [
"open", "open",
"protected", "protected",