Commit c3f822c1 authored by Michal Kolodziejski's avatar Michal Kolodziejski 🐛
Browse files

Update indico jsonschemas and mappings

parent b16b602f
{ {
"title": "Indico Attachments schema v1.0.0", "title": "Indico Attachments schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/attachments_v1.0.0.json", "id": "http://<host:port>/schemas/indico/attachments_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/attachments_v1.0.0.json", "$schema": "http://<host:port>/schemas/indico/attachments_v1.0.0.json",
"type": "object", "type": "object",
"properties": { "properties": {
"_access": { "_access": {
"type": "object", "type": "object",
"properties": { "properties": {
"owner":{ "owner": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"read":{ "read": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"update":{ "update": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"delete":{ "delete": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
...@@ -33,46 +33,52 @@ ...@@ -33,46 +33,52 @@
} }
} }
}, },
"id": { "_data": {
"type": "string", "type": "object",
"description": "Attachments id." "properties": {
}, "id": {
"category_path": { "type": "integer",
"type": "array", "description": "Attachments id."
"items": { },
"type": "string" "category_path": {
}, "type": "array",
"description": "Attachments category path (ordered array)." "items": {
}, "type": "string"
"event_id": { },
"type": "string", "description": "Attachments category path (ordered array)."
"description": "Event id." },
}, "event_id": {
"contribution_id": { "type": "integer",
"type": "string", "description": "Event id."
"description": "Contribution id.", },
"required": false "contribution_id": {
}, "type": "integer",
"subcontribution_id": { "description": "Contribution id.",
"type": "string", "required": false
"description": "Event id.", },
"required": false "subcontribution_id": {
"type": "integer",
"description": "Event id.",
"required": false
},
"filename": {
"type": "string",
"description": "Attachments filename."
},
"content": {
"type": "string",
"description": "Attachments content."
},
"url": {
"type": "string",
"description": "Full path Attachment URL"
}
}
}, },
"creation_date": { "creation_date": {
"type": "string", "type": "string",
"description": "Attachments creation date." "description": "Attachments creation date."
}, },
"filename": {
"type": "string",
"description": "Attachments filename."
},
"content": {
"type": "string",
"description": "Attachments content."
},
"custom_pid": {
"type": "string"
},
"$schema": { "$schema": {
"type": "string" "type": "string"
} }
......
{ {
"title": "Indico Contributions schema v1.0.0", "title": "Indico Contributions schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/contributions_v1.0.0.json", "id": "http://<host:port>/schemas/indico/contributions_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/contributions_v1.0.0.json", "$schema": "http://<host:port>/schemas/indico/contributions_v1.0.0.json",
"type": "object", "type": "object",
"properties": { "properties": {
"_access": { "_access": {
"type": "object", "type": "object",
"properties": { "properties": {
"owner":{ "owner": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"read":{ "read": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"update":{ "update": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"delete":{ "delete": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
...@@ -33,24 +33,48 @@ ...@@ -33,24 +33,48 @@
} }
} }
}, },
"id": { "_data": {
"type": "string", "type": "object",
"description": "Contributions id." "properties": {
}, "id": {
"category_path": { "type": "integer",
"type": "array", "description": "Contributions id."
"items": { },
"type": "string" "category_path": {
}, "type": "array",
"description": "Contributions category path (ordered array)." "items": {
}, "type": "string"
"event_id": { },
"type": "string", "description": "Contributions category path (ordered array)."
"description": "Event id." },
}, "event_id": {
"creation_date": { "type": "integer",
"type": "string", "description": "Event id."
"description": "Contributions creation date." },
"location": {
"type": "string",
"description": "Contributions location."
},
"title": {
"type": "string",
"description": "Contributions title."
},
"description": {
"type": "string",
"description": "Contributions description."
},
"list_of_persons": {
"type": "array",
"items": {
"type": "string"
},
"description": "Contributions person's name, affiliation."
},
"url": {
"type": "string",
"description": "Full path Contribution URL"
}
}
}, },
"start_date": { "start_date": {
"type": "string", "type": "string",
...@@ -60,44 +84,6 @@ ...@@ -60,44 +84,6 @@
"type": "string", "type": "string",
"description": "Contributions end date." "description": "Contributions end date."
}, },
"location": {
"type": "string",
"description": "Contributions location."
},
"title": {
"type": "string",
"description": "Contributions title."
},
"description": {
"type": "string",
"description": "Contributions description."
},
"list_of_persons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Contributions person's name."
},
"affiliation": {
"type": "string",
"description": "Contributions person's affiliation."
},
"role": {
"type": "array",
"items": {
"type": "string"
},
"description": "Contributions person's role(s)."
}
}
}
},
"custom_pid": {
"type": "string"
},
"$schema": { "$schema": {
"type": "string" "type": "string"
} }
......
{ {
"title": "Indico Event schema v1.0.0", "title": "Indico Event schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/events_v1.0.0.json", "id": "http://<host:port>/schemas/indico/events_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/events_v1.0.0.json", "$schema": "http://<host:port>/schemas/indico/events_v1.0.0.json",
"type": "object", "type": "object",
"properties": { "properties": {
"_access": { "_access": {
"type": "object", "type": "object",
"properties": { "properties": {
"owner":{ "owner": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"read":{ "read": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"update":{ "update": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"delete":{ "delete": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
...@@ -33,20 +33,48 @@ ...@@ -33,20 +33,48 @@
} }
} }
}, },
"id": { "_data": {
"type": "string", "type": "object",
"description": "Event id." "properties": {
}, "id": {
"category_path": { "type": "integer",
"type": "array", "description": "Event id."
"items": { },
"type": "string" "category_path": {
}, "type": "array",
"description": "Event category path (ordered array)." "items": {
}, "type": "string"
"event_type": { },
"type": "string", "description": "Event category path (ordered array)."
"description": "Event type." },
"event_type": {
"type": "string",
"description": "Event type."
},
"location": {
"type": "string",
"description": "Event location."
},
"title": {
"type": "string",
"description": "Event title."
},
"description": {
"type": "string",
"description": "Event description."
},
"speakers_chairs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Event speaker/chair name, affiliation."
},
"url": {
"type": "string",
"description": "Full path Event URL"
}
}
}, },
"creation_date": { "creation_date": {
"type": "string", "type": "string",
...@@ -60,37 +88,6 @@ ...@@ -60,37 +88,6 @@
"type": "string", "type": "string",
"description": "Event end date." "description": "Event end date."
}, },
"location": {
"type": "string",
"description": "Event location."
},
"title": {
"type": "string",
"description": "Event title."
},
"description": {
"type": "string",
"description": "Event description."
},
"speakers_chairs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Event speaker/chair name."
},
"affiliation": {
"type": "string",
"description": "Event speaker/chair affiliation."
}
}
}
},
"custom_pid": {
"type": "string"
},
"$schema": { "$schema": {
"type": "string" "type": "string"
} }
......
{ {
"title": "Indico Notes schema v1.0.0", "title": "Indico Notes schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/notes_v1.0.0.json", "id": "http://<host:port>/schemas/indico/notes_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/notes_v1.0.0.json", "$schema": "http://<host:port>/schemas/indico/notes_v1.0.0.json",
"type": "object", "type": "object",
"properties": { "properties": {
"_access": { "_access": {
"type": "object", "type": "object",
"properties": { "properties": {
"owner":{ "owner": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"read":{ "read": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"update":{ "update": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
} }
}, },
"delete":{ "delete": {
"type": "array", "type": "array",
"items": { "items": {
"type": "string" "type": "string"
...@@ -33,42 +33,53 @@ ...@@ -33,42 +33,53 @@
} }
} }
}, },
"id": { "_data": {
"type": "string", "type": "object",
"description": "Notes id." "properties": {
}, "id": {
"category_path": { "type": "integer",
"type": "array", "description": "Notes id."
"items": { },
"type": "string" "category_path": {
}, "type": "array",
"description": "Notes category path (ordered array)."