Skip to content

Commit 283b0c5

Browse files
authored
feat: update metadata field (#343)
Signed-off-by: jingfu wang <[email protected]>
1 parent 9039e8f commit 283b0c5

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

Diff for: pkg/devfile/header.go

+12
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,16 @@ type DevfileMetadata struct {
5050
// Optional devfile global memory limit
5151
// +optional
5252
GlobalMemoryLimit string `json:"globalMemoryLimit,omitempty"`
53+
54+
// Optional devfile project type
55+
// +optional
56+
ProjectType string `json:"projectType,omitempty"`
57+
58+
// Optional devfile language
59+
// +optional
60+
Language string `json:"language,omitempty"`
61+
62+
// Optional devfile website
63+
// +optional
64+
Website string `json:"website,omitempty"`
5365
}

Diff for: schemas/latest/devfile.json

+12
Original file line numberDiff line numberDiff line change
@@ -1481,10 +1481,18 @@
14811481
"description": "Optional devfile icon",
14821482
"type": "string"
14831483
},
1484+
"language": {
1485+
"description": "Optional devfile language",
1486+
"type": "string"
1487+
},
14841488
"name": {
14851489
"description": "Optional devfile name",
14861490
"type": "string"
14871491
},
1492+
"projectType": {
1493+
"description": "Optional devfile project type",
1494+
"type": "string"
1495+
},
14881496
"tags": {
14891497
"description": "Optional devfile tags",
14901498
"type": "array",
@@ -1496,6 +1504,10 @@
14961504
"description": "Optional semver-compatible version",
14971505
"type": "string",
14981506
"pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
1507+
},
1508+
"website": {
1509+
"description": "Optional devfile website",
1510+
"type": "string"
14991511
}
15001512
},
15011513
"additionalProperties": true

Diff for: schemas/latest/ide-targeted/devfile.json

+15
Original file line numberDiff line numberDiff line change
@@ -1640,11 +1640,21 @@
16401640
"type": "string",
16411641
"markdownDescription": "Optional devfile icon"
16421642
},
1643+
"language": {
1644+
"description": "Optional devfile language",
1645+
"type": "string",
1646+
"markdownDescription": "Optional devfile language"
1647+
},
16431648
"name": {
16441649
"description": "Optional devfile name",
16451650
"type": "string",
16461651
"markdownDescription": "Optional devfile name"
16471652
},
1653+
"projectType": {
1654+
"description": "Optional devfile project type",
1655+
"type": "string",
1656+
"markdownDescription": "Optional devfile project type"
1657+
},
16481658
"tags": {
16491659
"description": "Optional devfile tags",
16501660
"type": "array",
@@ -1658,6 +1668,11 @@
16581668
"type": "string",
16591669
"pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$",
16601670
"markdownDescription": "Optional semver-compatible version"
1671+
},
1672+
"website": {
1673+
"description": "Optional devfile website",
1674+
"type": "string",
1675+
"markdownDescription": "Optional devfile website"
16611676
}
16621677
},
16631678
"additionalProperties": true,

0 commit comments

Comments
 (0)