a_star: don't crash on deserialization errors and limit static types
[nit.git] / lib / github / events.nit
index 2dc0af7..f2f398a 100644 (file)
 module events
 
 import api
-intrude import json::serialization
+intrude import json
 
 # Github event stub.
 class GithubEvent
-       super Jsonable
        serialize
 
        # Event ID from Github.
@@ -33,8 +32,6 @@ class GithubEvent
 
        # Repo where this event occured.
        var repo: Repo is writable
-
-       redef fun to_json do return serialize_to_json
 end
 
 # Triggered when a commit comment is created.