Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fixtures/api/schemas/entities/issue.json')
-rw-r--r--spec/fixtures/api/schemas/entities/issue.json163
1 files changed, 131 insertions, 32 deletions
diff --git a/spec/fixtures/api/schemas/entities/issue.json b/spec/fixtures/api/schemas/entities/issue.json
index b4a076780d9..08937b5e68b 100644
--- a/spec/fixtures/api/schemas/entities/issue.json
+++ b/spec/fixtures/api/schemas/entities/issue.json
@@ -1,43 +1,142 @@
{
"type": "object",
- "properties" : {
- "id": { "type": "integer" },
- "iid": { "type": "integer" },
- "type": { "type": "string" },
- "author_id": { "type": "integer" },
- "description": { "type": ["string", "null"] },
- "lock_version": { "type": ["integer", "null"] },
- "milestone_id": { "type": ["string", "null"] },
- "title": { "type": "string" },
- "moved_to_id": { "type": ["integer", "null"] },
- "project_id": { "type": "integer" },
- "web_url": { "type": "string" },
- "state": { "type": "string" },
- "create_note_path": { "type": "string" },
- "preview_note_path": { "type": "string" },
+ "properties": {
+ "id": {
+ "type": "integer"
+ },
+ "iid": {
+ "type": "integer"
+ },
+ "type": {
+ "type": "string"
+ },
+ "author_id": {
+ "type": "integer"
+ },
+ "description": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "lock_version": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "milestone_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "moved_to_id": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "project_id": {
+ "type": "integer"
+ },
+ "web_url": {
+ "type": "string"
+ },
+ "state": {
+ "type": "string"
+ },
+ "create_note_path": {
+ "type": "string"
+ },
+ "preview_note_path": {
+ "type": "string"
+ },
"current_user": {
"type": "object",
"properties": {
- "can_create_note": { "type": "boolean" },
- "can_update": { "type": "boolean" }
+ "can_create_note": {
+ "type": "boolean"
+ },
+ "can_update": {
+ "type": "boolean"
+ }
}
},
- "created_at": { "type": "date-time" },
- "updated_at": { "type": "date-time" },
- "branch_name": { "type": ["string", "null"] },
- "due_date": { "type": ["string", "null"], "format": "date-time" },
- "confidential": { "type": "boolean" },
- "discussion_locked": { "type": ["boolean", "null"] },
- "updated_by_id": { "type": ["integer", "null"] },
- "time_estimate": { "type": "integer" },
- "total_time_spent": { "type": "integer" },
- "human_time_estimate": { "type": ["integer", "null"] },
- "human_total_time_spent": { "type": ["integer", "null"] },
- "milestone": { "type": ["object", "null"] },
+ "created_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "updated_at": {
+ "type": "string",
+ "format": "date-time"
+ },
+ "branch_name": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "due_date": {
+ "type": [
+ "string",
+ "null"
+ ],
+ "format": "date-time"
+ },
+ "confidential": {
+ "type": "boolean"
+ },
+ "discussion_locked": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "updated_by_id": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "time_estimate": {
+ "type": "integer"
+ },
+ "total_time_spent": {
+ "type": "integer"
+ },
+ "human_time_estimate": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "human_total_time_spent": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "milestone": {
+ "type": [
+ "object",
+ "null"
+ ]
+ },
"labels": {
"type": "array",
- "items": { "$ref": "label.json" }
+ "items": {
+ "$ref": "label.json"
+ }
},
- "assignees": { "type": ["array", "null"] }
+ "assignees": {
+ "type": [
+ "array",
+ "null"
+ ]
+ }
}
-}
+} \ No newline at end of file