From a503fd7364a2445209dac7badd8d15f8b64505ee Mon Sep 17 00:00:00 2001 From: Caspian Baska Date: Sat, 5 Jun 2021 18:24:48 +1000 Subject: [PATCH] refactor(models/build_info): remove redundant JSON::Field annotations --- src/docker/api/models/build_info.cr | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/docker/api/models/build_info.cr b/src/docker/api/models/build_info.cr index c375896..d48b660 100644 --- a/src/docker/api/models/build_info.cr +++ b/src/docker/api/models/build_info.cr @@ -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