-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Kyoya-prog/topic/fix_bug
バグ修正
- Loading branch information
Showing
5 changed files
with
110 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
struct SearchRepositories: Codable { | ||
|
||
let items: [Repository] | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case items | ||
} | ||
} | ||
|
||
struct Repository: Codable { | ||
|
||
let id: Int | ||
let fullName: String | ||
let language: String | ||
let stargazersCount: Int | ||
let watchersCount: Int | ||
let forksCount: Int | ||
let openIssuesCount: Int | ||
|
||
let owner: Owner | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case id = "id" | ||
case fullName = "full_name" | ||
case language = "language" | ||
case stargazersCount = "stargazers_count" | ||
case watchersCount = "watchers_count" | ||
case forksCount = "forks_count" | ||
case openIssuesCount = "open_issues_count" | ||
case owner = "owner" | ||
} | ||
} | ||
|
||
struct Owner: Codable { | ||
let avatarUrl: String | ||
|
||
private enum CodingKeys: String, CodingKey { | ||
case avatarUrl = "avatar_url" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.