Skip to content

Commit

Permalink
Add liteloader dev object to json schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Aug 4, 2017
1 parent 3e4363b commit 27253c3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions liteloaderutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class LiteloaderArtefact(JsonObject):
srcJar = StringProperty(default=None, exclude_if_none=True)
mcpJar = StringProperty(default=None, exclude_if_none=True)

class LiteloaderDev(JsonObject):
fgVersion = StringProperty(default=None ,exclude_if_none=True)
mappings = StringProperty(required=None, exclude_if_none=True)
mcp = StringProperty(default=None, exclude_if_none=True)

class LiteloaderArtefacts(JsonObject):
liteloader = DictProperty(LiteloaderArtefact, name="com.mumfrey:liteloader", required=True)

Expand All @@ -59,6 +64,7 @@ class LiteloaderSnapshots(JsonObject):

'''
"1.10.2":{
"dev": { ... },
"repo":{ ... },
"artefacts":{
"com.mumfrey:liteloader":{ },
Expand All @@ -69,6 +75,7 @@ class LiteloaderSnapshots(JsonObject):
}
'''
class LiteloaderEntry(JsonObject):
dev = ObjectProperty(LiteloaderDev, default=None, exclude_if_none=True)
repo = ObjectProperty(LiteloaderRepo, required=True)
artefacts = ObjectProperty(LiteloaderArtefacts, default=None, exclude_if_none=True)
snapshots = ObjectProperty(LiteloaderSnapshots, default=None, exclude_if_none=True)
Expand Down

0 comments on commit 27253c3

Please sign in to comment.