var requested_uri: String
end
-# An Error returned while deserializing GithubEntity objects
+# An Error returned while deserializing objects from the API
class GithubDeserializerErrors
super GithubError
var deserizalization_errors: Array[Error]
end
-# Something returned by the Github API.
-#
-# Mainly a Nit wrapper around a JSON objet.
-abstract class GithubEntity
- serialize
-
- # Github page url.
- var html_url: nullable String is writable
-end
-
# A Github user
#
# Provides access to [Github user data](https://developer.github.com/v3/users/).
# Provides access to [Github repo data](https://developer.github.com/v3/repos/).
# Should be accessed from `GithubAPI::get_repo`.
class Repo
- super GithubEntity
serialize
# Repo full name on Github.
#
# See <https://developer.github.com/v3/repos/#list-branches>.
class Branch
- super GithubEntity
serialize
# Branch name.
#
# See <https://developer.github.com/v3/repos/commits/>.
class Commit
- super GithubEntity
serialize
# Commit SHA.
# A Git Commit representation
class GitCommit
- super GithubEntity
serialize
# Commit SHA.
# Git user authoring data
class GitUser
- super GithubEntity
serialize
# Authoring date.
#
# See <https://developer.github.com/v3/issues/>.
class Issue
- super GithubEntity
serialize
# Issue Github ID.
#
# See <https://developer.github.com/v3/issues/labels/>.
class Label
- super GithubEntity
serialize
# Label name.
#
# See <https://developer.github.com/v3/issues/milestones/>.
class Milestone
- super GithubEntity
serialize
# The milestone id on Github.
# * `IssueComment` are made on an issue or pull request page.
# * `ReviewComment` are made on the diff associated to a pull request.
abstract class Comment
- super GithubEntity
serialize
# Identifier of this comment.
#
# See <https://developer.github.com/v3/issues/events/>.
class IssueEvent
- super GithubEntity
serialize
# Event id on Github.
if store.has_key(key) then
message(1, "Get {key} (cache)")
was_error = false
- return deserialize(store.load_object(key).to_json).as(nullable GithubEntity)
+ return deserialize(store.load_object(key).to_json)
end
var obj = super
if not was_error and obj isa Serializable then