Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade the v1 schema and introduce the v2 schema #20

Merged
merged 5 commits into from
May 1, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 78 additions & 38 deletions schemas/v1.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,51 @@
{
"id": "https://raw.githubusercontent.com/g0v/g0v.json/master/schemas/v1.json",
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://raw.githubusercontent.com/g0v/ambassador/master/bin/schema/v1.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"required": [
"repo",
"author"
],
"properties": {
"repo": {
"title": "專案識別碼",
"description": "Repo Identity (owner/name)",
"type": "string",
"minLength": 1,
"required": true
},
"author": {
"title": "專案作者",
"description": "Project author",
"type": "string",
"minLength": 1,
"required": true
"minLength": 1
},
"status": {
"title": "專案狀態",
"description": "Project status",
"type": "string",
"enum": [
"Planning",
"planning",
"Pre-alpha",
"pre-alpha",
"Alpha",
"alpha",
"Beta",
"beta",
"Production",
"production",
"Released",
"Archived"
],
"required": false
"released",
"Archived",
"archived",
"Stable",
"stable",
"Mature",
"mature",
"Inactive",
"inactive",
"Magic",
"magic"
]
},
"name": {
"title": "專案名稱(英文)",
"description": "Project name",
"type": "string",
"minLength": 1,
"required": false
"minLength": 1
},
"name_zh": {
"title": "專案名稱(中文)",
Expand All @@ -49,80 +56,113 @@
"description": {
"title": "專案描述(英文)",
"description": "Project description",
"type": "string",
"required": false
"type": "string"
},
"description_zh": {
"title": "專案描述(中文)",
"description": "Chinese project description",
"type": "string",
"required": false
"type": "string"
},
"homepage": {
"title": "網頁",
"description": "Homepage url",
"type": "string",
"required": false
"format": "uri"
},
"thumbnail": {
"title": "縮圖",
"description": "Thumbnail",
"type": "string",
"required": false
"format": "uri"
},
"document": {
"title": "文件",
"description": "Document",
"type": "string",
"required": false
"format": "uri"
},
"repository": {
"title": "Repo 工作資料區",
"description": "Repository url",
"type": "string",
"required": false
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["git", "hg", "svn", "cvs", "svk"]
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": ["type", "url"]
},
"licenses": {
"title": "專案授權",
"description": "licenses",
"description": "Licenses",
"type": "array",
"required": false
"items": {
"type": "object",
"properties": {
"type": { "type": "string" }
},
"required": ["type"]
}
},
"keywords": {
"title": "專案關鍵字",
"description": "Keywords",
"type": "array",
"required": false
"items": {
"type": "string"
}
},
"audience": {
"title": "目標受眾",
"description": "Target Audience",
"description": "Target audience",
"type": "array",
"required": false
"items": {
"type": "string",
"enum": ["contributor", "public", "developer"]
}
},
"products": {
"title": "產出網址",
"description": "Production URLs",
"title": "產出",
"description": "Productions",
"type": "array",
"required": false
"items": {
"type": "string"
}
},
"partOf": {
"title": "Part Of",
"description": "Parent project",
"type": "string",
"required": false
"type": "string"
},
"projects": {
"title": "Projects",
"description": "Parent projects",
"type": "array",
"items": {
"type": "string"
}
},
"contributors": {
"title": "貢獻者",
"description": "Contributors",
"type": "array",
"required": false
"items": {
"type": "string"
}
},
"needs": {
"title": "徵求支援",
"description": "Needs",
"type": "array",
"required": false
"items": {
"type": "string",
"enum": ["designer", "writer", "programmer", "money", "txt"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其它的例如 Legal 怎麼處理?

}
}
}
}
Loading