1
+ import { CatalogDataDefinitionV1Alpha1Schema } from '@layer5/schemas' ;
2
+
1
3
/**
2
4
* Schema for publish catalog item modal;
3
5
* Can be use for publishing filters and designs
@@ -6,51 +8,37 @@ const publishCatalogItemSchema = {
6
8
type : 'object' ,
7
9
properties : {
8
10
compatibility : {
9
- type : 'array' ,
11
+ type : CatalogDataDefinitionV1Alpha1Schema . properties . compatibility . type ,
10
12
title : 'Technology' ,
11
- items : {
12
- enum : [ 'kubernetes' ] ,
13
- type : 'string'
14
- } ,
13
+ items : CatalogDataDefinitionV1Alpha1Schema . properties . compatibility . items ,
15
14
uniqueItems : true ,
16
15
minItems : 1 ,
17
16
description :
18
17
'A list of technologies included in or implicated by this design; a list of relevant technology tags.' ,
19
18
'x-rjsf-grid-area' : 6
20
19
} ,
21
20
pattern_caveats : {
22
- type : 'string' ,
23
- title : 'Caveats and Considerations' ,
24
- description :
25
- 'Specific stipulations to consider and known behaviors to be aware of when using this design.' ,
21
+ type : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_caveats . type ,
22
+ title : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_caveats . title ,
23
+ description : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_caveats ,
26
24
format : 'textarea' ,
27
25
'x-rjsf-grid-area' : 12 ,
28
26
'x-encode-in-uri' : true
29
27
} ,
30
28
pattern_info : {
31
- type : 'string' ,
32
- title : 'Description' ,
33
- description : 'Purpose of the design along with its intended and unintended uses.' ,
29
+ type : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_info . type ,
30
+ title : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_info . title ,
31
+ description : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_info ,
34
32
format : 'textarea' ,
35
33
'x-rjsf-grid-area' : 12 ,
36
34
'x-encode-in-uri' : true
37
35
} ,
38
36
type : {
39
- type : 'string' ,
40
- title : 'Type' ,
41
- enum : [
42
- 'Deployment' ,
43
- 'Observability' ,
44
- 'Resiliency' ,
45
- 'Scaling' ,
46
- 'Security' ,
47
- 'Traffic-management' ,
48
- 'Troubleshooting' ,
49
- 'Workloads'
50
- ] ,
51
- default : 'Deployment' ,
52
- description :
53
- 'Categorization of the type of design or operational flow depicted in this design.' ,
37
+ type : CatalogDataDefinitionV1Alpha1Schema . properties . type . type ,
38
+ title : CatalogDataDefinitionV1Alpha1Schema . properties . type . title ,
39
+ enum : CatalogDataDefinitionV1Alpha1Schema . properties . type . enum ,
40
+ default : CatalogDataDefinitionV1Alpha1Schema . properties . type . default ,
41
+ description : CatalogDataDefinitionV1Alpha1Schema . properties . type . description ,
54
42
'x-rjsf-grid-area' : 6
55
43
}
56
44
} ,
0 commit comments