Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
110 lines (109 sloc) 3 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
},
"moderators": {
"type": "array",
"items": {
"description": "List of moderators",
"type": "object",
"properties": {
"name": {
"description": "Moderator's name",
"type": "string"
},
"url" : {
"description": "Moderator's url: Twitter profile, GitHub profile, website, ...",
"type": "string"
}
},
"additionalProperties": false,
"required": ["name"]
}
},
"location": {
"oneOf": [
{ "$ref": "#/definitions/real_location" },
{ "$ref": "#/definitions/virtual_location" }
]
},
"sponsors": {
"type": "array",
"items": {
"description": "List of sponsors",
"type": "object",
"properties": {
"name": {
"description": "Sponsor's name",
"type": "string"
},
"url" : {
"description": "Sponsor's url: Twitter profile, GitHub profile, website, ...",
"type": "string"
}
},
"additionalProperties": false,
"required": ["name"]
}
}
},
"definitions": {
"virtual_location": {
"type": "string",
"enum": ["virtual"]
},
"real_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+1 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"] }]
}
},
"additionalProperties": false,
"required": ["title", "location", "url"]
}
You can’t perform that action at this time.