Permalink
72 lines (71 sloc) 2.05 KB
{
"title": "Event Registration",
"type": "object",
"properties": {
"title": {
"description": "The title/name of your event",
"type": "string",
"minLength": 1
},
"url": {
"description": "An URL leading to further information about your event, e.g. sign up on meetup/eventbrite",
"type": "string",
"minLength": 1
},
"location": {
"description": "Further data about the location your event takes place at",
"type": "object",
"properties": {
"utcOffset": {
"description": "The UTC Timezone the event will take place in (e.g. UTC+2 on Nov 18, 2017 for Berlin with DST considered)",
"type": "number"
},
"timezone": {
"description": "The Timezone as a String, verified by https://momentjs.com/timezone/ to be an actual timezone",
"type": "string",
"format": "timezone"
},
"city": {
"type": "string",
"minLength": 1
},
"country": {
"type": "string",
"minLength": 1
},
"coordinates": {
"type": "object",
"description": "Lat/Long values, given in EPSG:3857 (http://wiki.openstreetmap.org/wiki/EPSG:3857)",
"properties": {
"latitude": { "type": "number" },
"longitude": { "type": "number" }
},
"additionalProperties": false,
"required": ["latitude", "longitude"]
}
},
"additionalProperties": false,
"required": ["country", "city"],
"anyOf": [
{ "required": ["utcOffset"] },
{ "required": ["timezone"] }
]
},
"moderators": {
"type": "array",
"items": {
"description": "Name or Twitter Handle of the moderators",
"type": "string"
}
},
"sponsors": {
"type": "array",
"items": {
"description": "Name or Twitter Handle of the sponsors",
"type": "string"
}
}
},
"additionalProperties": false,
"required": ["title", "location", "url"]
}