Skip to content

Commit

Permalink
feat: collaboration mode API cleanup (#3357)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Mar 23, 2023
1 parent db2b405 commit 57f42b5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/lib/openapi/spec/health-overview-schema.ts
Expand Up @@ -36,9 +36,8 @@ export const healthOverviewSchema = {
type: 'string',
enum: ['open', 'protected'],
example: 'open',
nullable: true,
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: {
type: 'number',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/openapi/spec/project-overview-schema.ts
Expand Up @@ -48,7 +48,7 @@ export const projectOverviewSchema = {
enum: ['open', 'protected'],
example: 'open',
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: {
type: 'number',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/openapi/spec/project-schema.ts
Expand Up @@ -60,7 +60,7 @@ export const projectSchema = {
enum: ['open', 'protected'],
example: 'open',
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: {
type: 'string',
Expand Down
10 changes: 4 additions & 6 deletions src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap
Expand Up @@ -1878,13 +1878,12 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number",
},
"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": [
"open",
"protected",
],
"example": "open",
"nullable": true,
"type": "string",
},
"name": {
Expand Down Expand Up @@ -1952,13 +1951,12 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number",
},
"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": [
"open",
"protected",
],
"example": "open",
"nullable": true,
"type": "string",
},
"name": {
Expand Down Expand Up @@ -2832,7 +2830,7 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number",
},
"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": [
"open",
"protected",
Expand Down Expand Up @@ -2917,7 +2915,7 @@ exports[`should serve the OpenAPI spec 1`] = `
"type": "number",
},
"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": [
"open",
"protected",
Expand Down

0 comments on commit 57f42b5

Please sign in to comment.