diff --git a/pkg/devfile/header.go b/pkg/devfile/header.go index 23cccd04b..6cd81d2bb 100644 --- a/pkg/devfile/header.go +++ b/pkg/devfile/header.go @@ -50,4 +50,16 @@ type DevfileMetadata struct { // Optional devfile global memory limit // +optional GlobalMemoryLimit string `json:"globalMemoryLimit,omitempty"` + + // Optional devfile project type + // +optional + ProjectType string `json:"projectType,omitempty"` + + // Optional devfile language + // +optional + Language string `json:"language,omitempty"` + + // Optional devfile website + // +optional + Website string `json:"website,omitempty"` } diff --git a/schemas/latest/devfile.json b/schemas/latest/devfile.json index 6da677dcc..5a4bdcadc 100644 --- a/schemas/latest/devfile.json +++ b/schemas/latest/devfile.json @@ -1473,10 +1473,18 @@ "description": "Optional devfile icon", "type": "string" }, + "language": { + "description": "Optional devfile language", + "type": "string" + }, "name": { "description": "Optional devfile name", "type": "string" }, + "projectType": { + "description": "Optional devfile project type", + "type": "string" + }, "tags": { "description": "Optional devfile tags", "type": "array", @@ -1488,6 +1496,10 @@ "description": "Optional semver-compatible version", "type": "string", "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$" + }, + "website": { + "description": "Optional devfile website", + "type": "string" } }, "additionalProperties": true diff --git a/schemas/latest/ide-targeted/devfile.json b/schemas/latest/ide-targeted/devfile.json index 884643531..4d514641d 100644 --- a/schemas/latest/ide-targeted/devfile.json +++ b/schemas/latest/ide-targeted/devfile.json @@ -1630,11 +1630,21 @@ "type": "string", "markdownDescription": "Optional devfile icon" }, + "language": { + "description": "Optional devfile language", + "type": "string", + "markdownDescription": "Optional devfile language" + }, "name": { "description": "Optional devfile name", "type": "string", "markdownDescription": "Optional devfile name" }, + "projectType": { + "description": "Optional devfile project type", + "type": "string", + "markdownDescription": "Optional devfile project type" + }, "tags": { "description": "Optional devfile tags", "type": "array", @@ -1648,6 +1658,11 @@ "type": "string", "pattern": "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[0-9a-z-]+(\\.[0-9a-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$", "markdownDescription": "Optional semver-compatible version" + }, + "website": { + "description": "Optional devfile website", + "type": "string", + "markdownDescription": "Optional devfile website" } }, "additionalProperties": true,