Skip to content

Commit

Permalink
Update JSON schemas for github-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Oct 5, 2018
1 parent c30bfc4 commit 864829a
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions docs/schemas/federation_entities.json
Expand Up @@ -10,6 +10,7 @@
{"$ref": "#/definitions/reshare"},
{"$ref": "#/definitions/profile"},
{"$ref": "#/definitions/location"},
{"$ref": "#/definitions/embed"},
{"$ref": "#/definitions/photo"},
{"$ref": "#/definitions/poll"},
{"$ref": "#/definitions/poll_answer"}
Expand Down Expand Up @@ -101,7 +102,7 @@
"positive": { "type": "boolean" },
"parent_type": { "enum": ["Post", "Comment"] }
},
"required": ["positive"]
"required": ["positive", "parent_type"]
}
}
}
Expand Down Expand Up @@ -164,11 +165,11 @@
"required": [
"guid", "public", "created_at"
]
},
"required": [
"entity_type", "entity_data"
]
}
}
},
"required": [
"entity_type", "entity_data"
]
},

"status_message": {
Expand Down Expand Up @@ -231,10 +232,10 @@
"root_author": {"type": "string"},
"root_guid": {"$ref": "#/definitions/guid"}
},
"required": ["author", "guid", "created_at", "root_author", "root_guid"]
},
"required": ["entity_type", "entity_data"]
}
"required": ["author", "guid", "created_at"]
}
},
"required": ["entity_type", "entity_data"]
},

"profile": {
Expand All @@ -247,6 +248,7 @@
"entity_data": {
"type": "object",
"properties": {
"full_name": { "type": ["string", "null"] },
"first_name": { "type": ["string", "null"] },
"last_name": { "type": ["string", "null"] },
"gender": { "type": ["string", "null"] },
Expand Down Expand Up @@ -372,6 +374,26 @@
]
}
}
},

"embed": {
"type": "object",
"properties": {
"entity_type": {
"type": "string",
"pattern": "^embed$"
},
"entity_data": {
"type": "object",
"properties": {
"url": { "type": ["string", "null"] },
"title": { "type": ["string", "null"] },
"description": { "type": ["string", "null"] },
"image": { "type": ["string", "null"] },
"nothing": { "type": "boolean" }
}
}
}
}
}
}

0 comments on commit 864829a

Please sign in to comment.