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",
"id": "http://localhost:5000/schemas/indico/attachments_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/attachments_v1.0.0.json",
"id": "http://<host:port>/schemas/indico/attachments_v1.0.0.json",
"$schema": "http://<host:port>/schemas/indico/attachments_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"owner": {
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"read": {
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"update": {
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"delete": {
"type": "array",
"items": {
"type": "string"
......@@ -33,8 +33,11 @@
}
}
},
"_data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"type": "integer",
"description": "Attachments id."
},
"category_path": {
......@@ -45,23 +48,19 @@
"description": "Attachments category path (ordered array)."
},
"event_id": {
"type": "string",
"type": "integer",
"description": "Event id."
},
"contribution_id": {
"type": "string",
"type": "integer",
"description": "Contribution id.",
"required": false
},
"subcontribution_id": {
"type": "string",
"type": "integer",
"description": "Event id.",
"required": false
},
"creation_date": {
"type": "string",
"description": "Attachments creation date."
},
"filename": {
"type": "string",
"description": "Attachments filename."
......@@ -70,8 +69,15 @@
"type": "string",
"description": "Attachments content."
},
"custom_pid": {
"type": "string"
"url": {
"type": "string",
"description": "Full path Attachment URL"
}
}
},
"creation_date": {
"type": "string",
"description": "Attachments creation date."
},
"$schema": {
"type": "string"
......
{
"title": "Indico Contributions schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/contributions_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/contributions_v1.0.0.json",
"id": "http://<host:port>/schemas/indico/contributions_v1.0.0.json",
"$schema": "http://<host:port>/schemas/indico/contributions_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"owner": {
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"read": {
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"update": {
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"delete": {
"type": "array",
"items": {
"type": "string"
......@@ -33,8 +33,11 @@
}
}
},
"_data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"type": "integer",
"description": "Contributions id."
},
"category_path": {
......@@ -45,21 +48,9 @@
"description": "Contributions category path (ordered array)."
},
"event_id": {
"type": "string",
"type": "integer",
"description": "Event id."
},
"creation_date": {
"type": "string",
"description": "Contributions creation date."
},
"start_date": {
"type": "string",
"description": "Contributions start date."
},
"end_date": {
"type": "string",
"description": "Contributions end date."
},
"location": {
"type": "string",
"description": "Contributions location."
......@@ -73,30 +64,25 @@
"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)."
}
"description": "Contributions person's name, affiliation."
},
"url": {
"type": "string",
"description": "Full path Contribution URL"
}
}
},
"custom_pid": {
"type": "string"
"start_date": {
"type": "string",
"description": "Contributions start date."
},
"end_date": {
"type": "string",
"description": "Contributions end date."
},
"$schema": {
"type": "string"
......
{
"title": "Indico Event schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/events_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/events_v1.0.0.json",
"id": "http://<host:port>/schemas/indico/events_v1.0.0.json",
"$schema": "http://<host:port>/schemas/indico/events_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"owner": {
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"read": {
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"update": {
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"delete": {
"type": "array",
"items": {
"type": "string"
......@@ -33,8 +33,11 @@
}
}
},
"_data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"type": "integer",
"description": "Event id."
},
"category_path": {
......@@ -48,18 +51,6 @@
"type": "string",
"description": "Event type."
},
"creation_date": {
"type": "string",
"description": "Event creation date."
},
"start_date": {
"type": "string",
"description": "Event start date."
},
"end_date": {
"type": "string",
"description": "Event end date."
},
"location": {
"type": "string",
"description": "Event location."
......@@ -75,21 +66,27 @@
"speakers_chairs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Event speaker/chair name."
"type": "string"
},
"affiliation": {
"description": "Event speaker/chair name, affiliation."
},
"url": {
"type": "string",
"description": "Event speaker/chair affiliation."
}
"description": "Full path Event URL"
}
}
},
"custom_pid": {
"type": "string"
"creation_date": {
"type": "string",
"description": "Event creation date."
},
"start_date": {
"type": "string",
"description": "Event start date."
},
"end_date": {
"type": "string",
"description": "Event end date."
},
"$schema": {
"type": "string"
......
{
"title": "Indico Notes schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/notes_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/notes_v1.0.0.json",
"id": "http://<host:port>/schemas/indico/notes_v1.0.0.json",
"$schema": "http://<host:port>/schemas/indico/notes_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"owner": {
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"read": {
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"update": {
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"delete": {
"type": "array",
"items": {
"type": "string"
......@@ -33,8 +33,11 @@
}
}
},
"_data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"type": "integer",
"description": "Notes id."
},
"category_path": {
......@@ -45,29 +48,37 @@
"description": "Notes category path (ordered array)."
},
"event_id": {
"type": "string",
"type": "integer",
"description": "Notes id."
},
"contribution_id": {
"type": "string",
"type": "integer",
"description": "Notes id.",
"required": false
},
"subcontribution_id": {
"type": "string",
"type": "integer",
"description": "Notes id.",
"required": false
},
"creation_date": {
"type": "string",
"description": "Attachments creation date."
"session_id": {
"type": "integer",
"description": "Notes id.",
"required": false
},
"content": {
"type": "string",
"description": "Attachments content."
},
"custom_pid": {
"type": "string"
"url": {
"type": "string",
"description": "Full path Note URL"
}
}
},
"creation_date": {
"type": "string",
"description": "Attachments creation date."
},
"$schema": {
"type": "string"
......
{
"title": "Indico Subontributions schema v1.0.0",
"id": "http://localhost:5000/schemas/indico/subcontributions_v1.0.0.json",
"$schema": "http://localhost:5000/schemas/indico/subcontributions_v1.0.0.json",
"id": "http://<host:port>/schemas/indico/subcontributions_v1.0.0.json",
"$schema": "http://<host:port>/schemas/indico/subcontributions_v1.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"owner": {
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"read": {
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"update": {
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"delete": {
"type": "array",
"items": {
"type": "string"
......@@ -33,75 +33,53 @@
}
}
},
"_data": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Subontributions id."
"type": "integer",
"description": "Subcontributions id."
},
"category_path": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subontributions category path (ordered array)."
"description": "Subcontributions category path (ordered array)."
},
"event_id": {
"type": "string",
"type": "integer",
"description": "Event id."
},
"contribution_id": {
"type": "string",
"type": "integer",
"description": "Contribution id."
},
"creation_date": {
"type": "string",
"description": "Subontributions creation date."
},
"start_date": {
"type": "string",
"description": "Subontributions start date."
},
"end_date": {
"type": "string",
"description": "Subontributions end date."
},
"location": {
"type": "string",
"description": "Subontributions location."
"description": "Subcontributions location."
},
"title": {
"type": "string",
"description": "Subontributions title."
"description": "Subcontributions title."
},
"description": {
"type": "string",
"description": "Subontributions description."
"description": "Subcontributions description."
},
"list_of_persons": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Subontributions person's name."
},
"affiliation": {
"type": "string",
"description": "Subontributions person's affiliation."
},
"role": {
"type": "array",
"items": {
"type": "string"
},
"description": "Subontributions person's role(s)."
}
"description": "Subcontributions person's name, affiliation."
},
"url": {
"type": "string",
"description": "Full path Subcontributions URL"
}
}
},
"custom_pid": {
"type": "string"
},
"$schema": {
"type": "string"
}
......
......@@ -44,7 +44,7 @@
},
"creation_date": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
"format": "yyyy-MM-ddZHH:mm"
},
"filename": {
"type": "text",
......
......@@ -38,15 +38,15 @@
},
"creation_date": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
"format": "yyyy-MM-ddZHH:mm"
},
"start_date": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
"format": "yyyy-MM-ddZHH:mm"
},
"end_date": {
"type": "date",
"format": "YYYY-MM-DDZHH:MM"
"format": "yyyy-MM-ddZHH:mm"
},
"location": {