From 2223e1d934088dd391251a7760021e69e18da757 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 8 Sep 2015 14:32:05 -0700 Subject: [PATCH] updated swagger file --- doc/swagger.yml | 14 ++++++++++++++ pkg/types/build.go | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/swagger.yml b/doc/swagger.yml index e02c63695..af3063221 100644 --- a/doc/swagger.yml +++ b/doc/swagger.yml @@ -817,6 +817,9 @@ definitions: "active": true } properties: + id: + type: integer + format: int64 login: type: string email: @@ -845,6 +848,7 @@ definitions: Repo: example: | { + "id": 1, "owner":"drone", "name":"drone-test-go", "full_name":"drone/drone-test-go", @@ -873,6 +877,9 @@ definitions: } } properties: + id: + type: integer + format: int64 owner: type: string name: @@ -921,6 +928,7 @@ definitions: Build: example: | { + "id": 42, "number": 1, "status": "success", "started_at": 5788800, @@ -960,6 +968,9 @@ definitions: ] } properties: + id: + type: integer + format: int64 number: type: integer status: @@ -1003,6 +1014,9 @@ definitions: type: string Job: properties: + id: + type: integer + format: int64 number: type: integer status: diff --git a/pkg/types/build.go b/pkg/types/build.go index 26e67eb7c..415ff7e3d 100644 --- a/pkg/types/build.go +++ b/pkg/types/build.go @@ -10,8 +10,8 @@ const ( ) type Build struct { - ID int64 - RepoID int64 `json:"id" sql:"unique:ux_build_number,index:ix_build_repo_id"` + ID int64 `json:"id"` + RepoID int64 `json:"-" sql:"unique:ux_build_number,index:ix_build_repo_id"` Number int `json:"number" sql:"unique:ux_build_number"` Event string `json:"event"` Status string `json:"status"`