Skip to content

Commit

Permalink
refactor(models/build_info): remove redundant JSON::Field annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
caspiano committed Jun 7, 2021
1 parent 4593fb8 commit a503fd7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/docker/api/models/build_info.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,23 @@ require "./response"

module Docker::Api::Models
struct BuildInfo < Response
@[JSON::Field(key: "id")]
getter id : String?
@[JSON::Field(key: "stream")]
getter stream : String?
@[JSON::Field(key: "error")]
getter error : String?
@[JSON::Field(key: "errorDetail")]
getter error_detail : ErrorDetail?
@[JSON::Field(key: "status")]
getter status : String?
@[JSON::Field(key: "progress")]
getter progress : String?
@[JSON::Field(key: "progressDetail")]
getter progress_detail : ProgressDetail?

struct ErrorDetail < Response
@[JSON::Field(key: "code")]
getter code : Int32
@[JSON::Field(key: "message")]
getter message : String
end

struct ProgressDetail < Response
@[JSON::Field(key: "current")]
getter current : Int32
@[JSON::Field(key: "total")]
getter total : Int32
end
end
Expand Down

0 comments on commit a503fd7

Please sign in to comment.