Created
February 26, 2013 08:51
-
-
Save michapixel/5037069 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type":"object", | |
"$schema": "http://json-schema.org/draft-03/schema", | |
"title": "Kalender Input", | |
"name": "input-schema", | |
"description": "Schema für den Input-Feed der Landeszentrale für politische Bildung SH", | |
"id": "Kalender_Input", | |
"required":true, | |
"properties":{ | |
"feed": { | |
"type":"array", | |
"description": "Liste mit den letzten (50) Einträgen", | |
"minitems": "0", | |
"maxitems": "50", | |
"id": "feed", | |
"required":true, | |
"items": | |
{ | |
"type":"object", | |
"id": "0", | |
"required":false, | |
"properties":{ | |
"categories": { | |
"type":"array", | |
"minitems": "1", | |
"maxitems": "10", | |
"required":true, | |
"items": | |
{ | |
"type":"object", | |
"id": "0", | |
"name": "cat_name", | |
"description": "Kategorie", | |
"required":true, | |
"properties":{ | |
"cat_name": { | |
"type":"string", | |
"required":true | |
} | |
} | |
} | |
}, | |
"allday": { | |
"type":"boolean", | |
"id": "allday", | |
"required":true | |
}, | |
"description": { | |
"type":"string", | |
"description": "max 1000 Zeichen", | |
"id": "description", | |
"required":true | |
}, | |
"event_end_date": { | |
"type":"integer", | |
"description": "Unix Timestamp, >= event_start_date", | |
"id": "event_end_date", | |
"required":true | |
}, | |
"event_end_time": { | |
"type":"integer", | |
"description": "Unix Timestamp, > event_start_time", | |
"id": "event_end_time", | |
"required":true | |
}, | |
"event_link": { | |
"type":"string", | |
"description": "Link nach URL-Schema, sollte zu einer HTML-Seite führen", | |
"id": "event_link", | |
"required":true | |
}, | |
"event_location": { | |
"type":"object", | |
"id": "event_location", | |
"required":true, | |
"properties":{ | |
"city": { | |
"type":"string", | |
"description": "Ort (Stadt)", | |
"id": "city", | |
"required":true | |
}, | |
"location": { | |
"type":"object", | |
"id": "location", | |
"required":true, | |
"properties":{ | |
"lat": { | |
"type":["number","integer"], | |
"description": "Längengrad", | |
"id": "lat", | |
"required":true | |
}, | |
"lng": { | |
"type":["number","integer"], | |
"description": "Breitengrad", | |
"id": "lng", | |
"required":true | |
}, | |
"zoom": { | |
"type":["number","integer"], | |
"description": "Zoomstufe für Kartendarstellung", | |
"minimum": "1", | |
"maximum": "17", | |
"id": "zoom", | |
"required":true | |
} | |
} | |
}, | |
"nr": { | |
"type":"string", | |
"description": "Hausnummer", | |
"id": "nr", | |
"required":true | |
}, | |
"post_code": { | |
"type":["number","integer"], | |
"description": "Postleitzahl", | |
"minimum": "01000", | |
"maximum": "99999", | |
"id": "post_code", | |
"required":true | |
}, | |
"street": { | |
"type":"string", | |
"description": "Strasse", | |
"id": "street", | |
"required":true | |
} | |
} | |
}, | |
"event_start_date": { | |
"type":"integer", | |
"description": "Unix Timestamp, <= event_end_date", | |
"id": "event_start_date", | |
"required":true | |
}, | |
"event_start_time": { | |
"type":"integer", | |
"description": "Unix Timestamp, < event_end_time", | |
"id": "event_start_time", | |
"required":true | |
}, | |
"organizer": { | |
"type":"object", | |
"id": "organizer", | |
"required":false, | |
"properties":{ | |
"address": { | |
"type":"object", | |
"id": "address", | |
"required":true, | |
"properties":{ | |
"city": { | |
"type":"string", | |
"description": "Stadt, Ort", | |
"id": "city", | |
"required":true | |
}, | |
"location": { | |
"type":"object", | |
"id": "location", | |
"required":false, | |
"properties":{ | |
"lat": { | |
"type":"number", | |
"id": "lat", | |
"required":true | |
}, | |
"lng": { | |
"type":"number", | |
"id": "lng", | |
"required":true | |
}, | |
"zoom": { | |
"type":["number","integer"], | |
"minimum": "1", | |
"maximum": "17", | |
"id": "zoom", | |
"required":true | |
} | |
} | |
}, | |
"nr": { | |
"type":"string", | |
"description": "Hausnummer", | |
"id": "nr", | |
"required":false | |
}, | |
"post_code": { | |
"type":["number","integer"], | |
"description": "Postleitzahl", | |
"minimum": "01000", | |
"maximum": "99999", | |
"id": "post_code", | |
"required":false | |
}, | |
"street": { | |
"type":"string", | |
"description": "Straße", | |
"id": "street", | |
"required":true | |
} | |
} | |
}, | |
"email": { | |
"type":"string", | |
"id": "email", | |
"required":true | |
}, | |
"fax": { | |
"type":"string", | |
"id": "fax", | |
"required":false | |
}, | |
"name": { | |
"type":"string", | |
"id": "name", | |
"required":true | |
}, | |
"phone": { | |
"type":"string", | |
"id": "phone", | |
"required":true | |
}, | |
"web": { | |
"type":"string", | |
"description": "URL, z.B. http://politische-bildung-sh.de/", | |
"id": "web", | |
"required":true | |
} | |
} | |
}, | |
"pub_date": { | |
"type":"integer", | |
"description": "Unix Timestamp, Datum der Erstveröffentlichung", | |
"id": "pub_date", | |
"required":true | |
}, | |
"re_pub_date": { | |
"type":"string", | |
"description": "Unix Timestamp, Datum der Wiederveröffentlichung", | |
"id": "re_pub_date", | |
"required":true | |
}, | |
"title": { | |
"type":"string", | |
"description": "max 256 Zeichen, plaintext", | |
"id": "title", | |
"required":true | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment