Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P9067
Jade entity schema updates (v2)
Active
Public
Actions
Authored by
•
ACraze
on Sep 9 2019, 11:41 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Jade
Machine-Learning-Team
Referenced Files
F30285974: raw.txt
Sep 9 2019, 11:41 PM
2019-09-09 23:41:41 (UTC+0)
Subscribers
•
ACraze
{
"title"
:
"/mediawiki/jade/entity/1.0.0"
,
"$schema"
:
"http://json-schema.org/draft-04/schema#"
,
"id"
:
"https://phabricator.wikimedia.org/diffusion/EJAD/browse/master/jsonschema/proposal/v1.json?view=raw"
,
"type"
:
"object"
,
"properties"
:
{
"facets"
:
{
"type"
:
"object"
,
"properties"
:
{
"editquality"
:
{
"$ref"
:
"#/definitions/facets/editquality"
},
"contentquality"
:
{
"$ref"
:
"#/definitions/facets/contentquality"
}
},
"additionalProperties"
:
false
}
},
"additionalProperties"
:
false
,
"definitions"
:
{
"facets"
:
{
"editquality"
:
{
"type"
:
"object"
,
"properties"
:
{
"proposals"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/proposals/editquality"
}
}
}
},
"contentquality"
:
{
"type"
:
"object"
,
"properties"
:
{
"proposals"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/proposals/contentquality"
}
}
}
}
},
"proposals"
:
{
"editquality"
:
{
"allOf"
:
[
{
"$ref"
:
"#/definitions/proposals/base"
},
{
"properties"
:
{
"labeldata"
:
{
"$ref"
:
"#/definitions/schemas/editquality"
}
},
"required"
:
[
"labeldata"
]
}
]
},
"contentquality"
:
{
"allOf"
:
[
{
"$ref"
:
"#/definitions/proposals/base"
},
{
"properties"
:
{
"data"
:
{
"type"
:
"integer"
,
"$ref"
:
"#/definitions/schemas/contentquality"
}
},
"required"
:
[
"data"
]
}
]
},
"base"
:
{
"properties"
:
{
"notes"
:
{
"type"
:
"string"
,
"description"
:
"Wikitext comments or justification of this label."
},
"preferred"
:
{
"type"
:
"boolean"
,
"default"
:
false
,
"description"
:
"True when this label best represents a consensus opinion."
},
"endorsements"
:
{
"type"
:
"array"
,
"items"
:
{
"$ref"
:
"#/definitions/endorsement"
}
},
"author"
:
{
"$ref"
:
"#/definitions/user"
,
"description"
:
"Proposal author"
},
},
"required"
:
[
"preferred"
,
"endorsements"
,
"author"
],
"additionalProperties"
:
true
}
},
"schemas"
:
{
"editquality"
:
{
"type"
:
"object"
,
"properties"
:
{
"damaging"
:
{
"type"
:
"boolean"
},
"goodfaith"
:
{
"type"
:
"boolean"
}
},
"additionalProperties"
:
false
,
"required"
:
[
"damaging"
,
"goodfaith"
]
},
"contentquality"
:
{
"type"
:
"number"
}
},
"endorsement"
:
{
"type"
:
"object"
,
"properties"
:
{
"comment"
:
{
"type"
:
"string"
,
"description"
:
"Wikitext explaining why the user is endorsing"
},
"author"
:
{
"$ref"
:
"#/definitions/user"
,
"description"
:
"Endorsement author"
},
"origin"
:
{
"type"
:
"string"
,
"description"
:
"Plain text identifying the tool and workflow used to make this endorsement"
},
"touched"
:
{
"type"
:
"string"
,
"description"
:
"Time created in ISO 8601"
},
"created"
:
{
"type"
:
"string"
,
"description"
:
"Time created in ISO 8601"
}
},
"required"
:
[
"author"
,
"touched"
,
"created"
],
"additionalProperties"
:
false
},
"schema"
:
{
"contentquality"
:
{
"type"
:
"object"
,
"properties"
:
{
"contentquality"
:
{
"type"
:
"integer"
}
},
"additionalProperties"
:
false
,
"required"
:
[
"contentquality"
]
},
"editquality"
:
{
"type"
:
"object"
,
"properties"
:
{
"damaging"
:
{
"type"
:
"boolean"
},
"goodfaith"
:
{
"type"
:
"boolean"
}
},
"additionalProperties"
:
false
,
"required"
:
[
"damaging"
,
"goodfaith"
]
}
},
"user"
:
{
"oneOf"
:
[
{
"type"
:
"object"
,
"properties"
:
{
"id"
:
{
"type"
:
"integer"
,
"description"
:
"Local wiki ID for contributor."
,
"minimum"
:
0
},
"cid"
:
{
"type"
:
"integer"
,
"description"
:
"Central ID for contributor."
,
"minimum"
:
0
}
},
"additionalProperties"
:
false
,
"required"
:
[
"id"
]
},
{
"type"
:
"object"
,
"properties"
:
{
"ip"
:
{
"type"
:
"string"
,
"description"
:
"IP address (v4 or v6) for contributor."
}
},
"additionalProperties"
:
false
,
"required"
:
[
"ip"
]
}
]
}
}
}
Event Timeline
•
ACraze
created this paste.
Sep 9 2019, 11:41 PM
2019-09-09 23:41:41 (UTC+0)
•
ACraze
changed the title of this paste from
Jade entity schema example (v4)
to
Jade entity schema updates (v2)
.
Log In to Comment