Remove duplicated image name in image JSON output (#1655)

https://github.com/apple/container/pull/1652 rearranged the JSON output
for image resources and included a duplicate "name" field. After further
discussion, we've decided to remove the duplicate field.

Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
This commit is contained in:
Kathryn Baldauf
2026-06-05 15:11:06 -07:00
committed by GitHub
parent 90cc3c15af
commit d855978113
2 changed files with 14 additions and 15 deletions
@@ -112,7 +112,6 @@ extension ImageResource {
extension ImageResource {
enum CodingKeys: String, CodingKey {
case id
case name
case configuration
case variants
}
@@ -120,7 +119,6 @@ extension ImageResource {
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(id, forKey: .id)
try container.encode(name, forKey: .name)
try container.encode(configuration, forKey: .configuration)
try container.encode(variants, forKey: .variants)
}