Skip to content

Commit 1239e59

Browse files
committed
fix: update workspace schema properties and descriptions
Signed-off-by: amitamrutiya <[email protected]>
1 parent ae4d593 commit 1239e59

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
/**
22
* Schema for create or edit workspace modals
33
*/
4+
import { WorkspaceDefinitionV1Beta1OpenApiSchema } from '@layer5/schemas';
5+
6+
const workspaceSchema = WorkspaceDefinitionV1Beta1OpenApiSchema.components.schemas;
47
const createAndEditWorkspace = {
58
properties: {
69
description: {
7-
description:
8-
"Workspaces serve as a virtual space for your team-based work, allows you to control access and more, Provide a detailed description to clarify the purpose of this workspace. Remember you can changes description of workspace after it's creations too. Learn more about workspaces [here](https://docs.meshery.io/concepts/logical/workspaces)",
10+
description: workspaceSchema.workspacePayload.properties.description.description,
911
format: 'textarea',
1012
title: 'Description',
11-
type: 'string',
13+
type: workspaceSchema.workspacePayload.properties.description.type,
1214
'x-rjsf-grid-area': '12'
1315
},
1416
name: {
15-
description:
16-
'Provide a name that meaningfully represents this workspace. You can change the name of the workspace even after its creation.',
17+
description: workspaceSchema.workspacePayload.properties.name.description,
1718
title: 'Name',
18-
type: 'string',
19+
type: workspaceSchema.workspacePayload.properties.name.type,
1920
'x-rjsf-grid-area': '12'
2021
},
2122
organization: {
22-
type: 'string',
23-
description:
24-
'Select an organization in which you want to create this new workspace. Keep in mind that the organization cannot be changed after creation.',
23+
type: workspaceSchema.workspacePayload.properties.organization_id.type,
24+
description: workspaceSchema.workspacePayload.properties.organization_id.description,
2525
title: 'Organization',
2626
enum: [],
2727
enumNames: [],
2828
'x-rjsf-grid-area': '12'
2929
}
3030
},
3131
type: 'object',
32-
required: ['name', 'organization']
32+
required: workspaceSchema.workspacePayload.required
3333
};
3434

3535
export default createAndEditWorkspace;

0 commit comments

Comments
 (0)