From fed5b19bca67327dd87197f16906919de5ccbb9f Mon Sep 17 00:00:00 2001 From: Finn Voorhees Date: Mon, 1 Apr 2024 18:05:14 +0100 Subject: [PATCH] Switch CiGitUser.avatarUrl from URL to String --- Sources/OpenAPI/Generated/Entities/CiGitUser.swift | 6 +++--- Sources/OpenAPI/app_store_connect_api.json | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Sources/OpenAPI/Generated/Entities/CiGitUser.swift b/Sources/OpenAPI/Generated/Entities/CiGitUser.swift index d76a2e9c..1444fbb1 100644 --- a/Sources/OpenAPI/Generated/Entities/CiGitUser.swift +++ b/Sources/OpenAPI/Generated/Entities/CiGitUser.swift @@ -5,9 +5,9 @@ import Foundation public struct CiGitUser: Codable { public var displayName: String? - public var avatarURL: URL? + public var avatarURL: String? - public init(displayName: String? = nil, avatarURL: URL? = nil) { + public init(displayName: String? = nil, avatarURL: String? = nil) { self.displayName = displayName self.avatarURL = avatarURL } @@ -15,7 +15,7 @@ public struct CiGitUser: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.displayName = try values.decodeIfPresent(String.self, forKey: "displayName") - self.avatarURL = try values.decodeIfPresent(URL.self, forKey: "avatarUrl") + self.avatarURL = try values.decodeIfPresent(String.self, forKey: "avatarUrl") } public func encode(to encoder: Encoder) throws { diff --git a/Sources/OpenAPI/app_store_connect_api.json b/Sources/OpenAPI/app_store_connect_api.json index dc919d45..09dc6565 100644 --- a/Sources/OpenAPI/app_store_connect_api.json +++ b/Sources/OpenAPI/app_store_connect_api.json @@ -147051,8 +147051,7 @@ "type": "string" }, "avatarUrl": { - "type": "string", - "format": "uri" + "type": "string" } } },