Skip to content

Commit

Permalink
Merge pull request #265 from finnvoor/master
Browse files Browse the repository at this point in the history
Manual patch CiGitUser.avatarUrl type
  • Loading branch information
AvdLee authored Apr 9, 2024
2 parents dd0af08 + fed5b19 commit 9b8f8fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sources/OpenAPI/Generated/Entities/CiGitUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ 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
}

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 {
Expand Down
3 changes: 1 addition & 2 deletions Sources/OpenAPI/app_store_connect_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -147051,8 +147051,7 @@
"type": "string"
},
"avatarUrl": {
"type": "string",
"format": "uri"
"type": "string"
}
}
},
Expand Down

0 comments on commit 9b8f8fa

Please sign in to comment.