mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix conference serializer spec to work with MySQL
This commit is contained in:
parent
9eb4ac2738
commit
4d6868d9bb
5 changed files with 125 additions and 73 deletions
101
spec/support/schemas/conference.json
Normal file
101
spec/support/schemas/conference.json
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
{
|
||||
"type": "object",
|
||||
"required": ["conference"],
|
||||
"properties": {
|
||||
"conference" : {
|
||||
"type" : "object",
|
||||
"required" : [
|
||||
"short_title",
|
||||
"title",
|
||||
"description",
|
||||
"start_date",
|
||||
"end_date",
|
||||
"picture_url",
|
||||
"difficulty_levels",
|
||||
"event_types",
|
||||
"rooms",
|
||||
"tracks",
|
||||
"date_range",
|
||||
"revision"
|
||||
],
|
||||
"properties" : {
|
||||
"short_title": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"start_date": {
|
||||
"type": "string", "format": "date"
|
||||
},
|
||||
"end_date": {
|
||||
"type": "string", "format": "date"
|
||||
},
|
||||
"picture_url": {
|
||||
"anyOf": [
|
||||
{ "type": "string" },
|
||||
{ "type": "null" }
|
||||
]
|
||||
},
|
||||
"difficulty_levels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "title", "description"],
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"title": { "type": "string" },
|
||||
"description": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"event_types": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "title", "description", "length"],
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"title": { "type": "string" },
|
||||
"description": { "type": "string" },
|
||||
"length": { "type": "integer" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"rooms": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "size", "events"],
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"size": { "type": "integer" },
|
||||
"events": { "type": "array" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"tracks": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "name", "description"],
|
||||
"properties": {
|
||||
"id": { "type": "integer" },
|
||||
"name": { "type": "string" },
|
||||
"description": { "type": "string" }
|
||||
}
|
||||
}
|
||||
},
|
||||
"date_range": {
|
||||
"type": "string"
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue