File tree Expand file tree Collapse file tree 5 files changed +25
-6
lines changed
Expand file tree Collapse file tree 5 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 4747 "@eslint/compat" : " ^2.0.3" ,
4848 "@eslint/eslintrc" : " ^3.3.5" ,
4949 "@eslint/js" : " ^9.0.0" ,
50- "@meshery/schemas" : " ^1.0.1 " ,
50+ "@meshery/schemas" : " ^1.0.4 " ,
5151 "@mui/icons-material" : " ^7.3.9" ,
5252 "@reduxjs/toolkit" : " ^2.11.2" ,
5353 "@testing-library/dom" : " ^10.4.1" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ export interface Workspace {
1717 id : string ;
1818 name : string ;
1919 description ?: string ;
20+ organization_id ?: string ;
21+ owner ?: string ;
22+ metadata ?: Record < string , string > ;
2023 created_at : string ;
2124 updated_at : string ;
2225 deleted_at : {
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ import { WorkspaceDefinitionV1Beta1OpenApiSchema } from '@meshery/schemas';
55
66// eslint-disable-next-line @typescript-eslint/no-explicit-any
77const workspaceSchema = ( WorkspaceDefinitionV1Beta1OpenApiSchema as any ) . components . schemas ;
8+
9+ /**
10+ * Create workspace schema - name is required
11+ */
812const createAndEditWorkspace = {
913 properties : {
1014 description : {
@@ -33,4 +37,13 @@ const createAndEditWorkspace = {
3337 required : [ 'name' , 'organization' ]
3438} ;
3539
40+ /**
41+ * Edit workspace schema - name is optional (derived from WorkspacePayload with relaxed requirements)
42+ */
43+ const editWorkspace = {
44+ ...createAndEditWorkspace ,
45+ required : [ 'organization' ]
46+ } ;
47+
3648export default createAndEditWorkspace ;
49+ export { editWorkspace } ;
Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ import helpAndSupportModalUiSchema from './helpAndSupportModal/uiSchema';
44import createAndEditEnvironmentSchema from './createAndEditEnvironment/schema' ;
55import createAndEditEnvironmentUiSchema from './createAndEditEnvironment/uiSchema' ;
66
7- import createAndEditWorkspaceSchema from './createAndEditWorkspace/schema' ;
7+ import createAndEditWorkspaceSchema , {
8+ editWorkspace as editWorkspaceSchema
9+ } from './createAndEditWorkspace/schema' ;
810import createAndEditWorkspaceUiSchema from './createAndEditWorkspace/uiSchema' ;
911
1012import helmConnectionSchema from './helmConnection/schema' ;
@@ -80,6 +82,7 @@ export {
8082 createAndEditEnvironmentUiSchema ,
8183 createAndEditWorkspaceSchema ,
8284 createAndEditWorkspaceUiSchema ,
85+ editWorkspaceSchema ,
8386 grafanaCredentialSUiSchema ,
8487 grafanaCredentialSchema ,
8588 helmConnectionSchema ,
You can’t perform that action at this time.
0 commit comments