1
- import { CatalogDataDefinitionV1Alpha1OpenApiSchema } from '@layer5/schemas' ;
2
-
3
- const CatalogDataDefinitionV1Alpha1Schema =
4
- CatalogDataDefinitionV1Alpha1OpenApiSchema . components . schemas . CatalogData ;
5
1
/**
6
2
* Schema for publish catalog item modal;
7
3
* Can be use for publishing filters and designs
@@ -10,37 +6,51 @@ const publishCatalogItemSchema = {
10
6
type : 'object' ,
11
7
properties : {
12
8
compatibility : {
13
- type : CatalogDataDefinitionV1Alpha1Schema . properties . compatibility . type ,
9
+ type : 'array' ,
14
10
title : 'Technology' ,
15
- items : CatalogDataDefinitionV1Alpha1Schema . properties . compatibility . items ,
11
+ items : {
12
+ enum : [ 'kubernetes' ] ,
13
+ type : 'string'
14
+ } ,
16
15
uniqueItems : true ,
17
16
minItems : 1 ,
18
17
description :
19
18
'A list of technologies included in or implicated by this design; a list of relevant technology tags.' ,
20
19
'x-rjsf-grid-area' : 6
21
20
} ,
22
21
pattern_caveats : {
23
- type : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_caveats . type ,
24
- title : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_caveats . title ,
25
- description : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_caveats . description ,
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.' ,
26
26
format : 'textarea' ,
27
27
'x-rjsf-grid-area' : 12 ,
28
28
'x-encode-in-uri' : true
29
29
} ,
30
30
pattern_info : {
31
- type : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_info . type ,
32
- title : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_info . title ,
33
- description : CatalogDataDefinitionV1Alpha1Schema . properties . pattern_info . description ,
31
+ type : 'string' ,
32
+ title : 'Description' ,
33
+ description : 'Purpose of the design along with its intended and unintended uses.' ,
34
34
format : 'textarea' ,
35
35
'x-rjsf-grid-area' : 12 ,
36
36
'x-encode-in-uri' : true
37
37
} ,
38
38
type : {
39
- type : CatalogDataDefinitionV1Alpha1Schema . properties . type . type ,
40
- title : CatalogDataDefinitionV1Alpha1Schema . properties . type . title ,
41
- enum : CatalogDataDefinitionV1Alpha1Schema . properties . type . enum ,
42
- default : CatalogDataDefinitionV1Alpha1Schema . properties . type . default ,
43
- description : CatalogDataDefinitionV1Alpha1Schema . properties . type . description ,
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.' ,
44
54
'x-rjsf-grid-area' : 6
45
55
}
46
56
} ,
0 commit comments