# news

An general news entry

    {
      "config": Object (config),
      "tags": Array (String),
      "receiver": Array (Object (author)),
      "resources": Array (Mixed),
      "profileImage": Base64,
      "read": Boolean,
      "source": Mixed,
      "author": Object (author),
      "meta": Object (meta),
      "sendDate": Date,
      "readDate": DateTime,
      "expires": Duration,
      "price": Number,
      "rating": Integer,
      "content": String,
      "question": String,
      "coffeeTime": Time,
      "profileUri": URI,
      "g-recaptcha-response": String,
    }

Field | Description
--- | ---
config | Object (config)
tags | Array (String) MinItems 1 MaxItems 6
receiver | Array (Object (author)) MinItems 1
resources | Array (Mixed)
profileImage | Base64
read | Boolean
source | Mixed OneOf Object (author) Object (web)
author | Object (author) An simple author element with some description
meta | Object (meta) Some meta data
sendDate | Date
readDate | DateTime
expires | Duration
price | Number Minimum 1 Maximum 100
rating | Integer Minimum 1 Maximum 5
content | String Contains the main content of the news entry MinLength 3 MaxLength 512
question | String Enum `"foo"` `"bar"`
coffeeTime | Time
profileUri | URI
g-recaptcha-response | String

# config

    {
      "*": Object (config),
    }

Field | Description
--- | ---
* | Object (config)

# author

An simple author element with some description

    {
      "title": String,
      "email": String,
      "categories": Array (String),
      "locations": Array (Object (location)),
      "origin": Object (location),
    }

Field | Description
--- | ---
title | String Pattern [A-z]{3,16}
email | String We will send no spam to this addresss
categories | Array (String) MaxItems 8
locations | Array (Object (location)) Array of locations
origin | Object (location) Location of the person

# web

An application

    {
      "name": String,
      "url": String,
      "*": String,
    }

Field | Description
--- | ---
name | String
url | String
* | String

# meta

Some meta data

    {
      "createDate": DateTime,
      "^tags_\d$": String,
      "^location_\d$": Object (location),
    }

Field | Description
--- | ---
createDate | DateTime
^tags_\d$ | String
^location_\d$ | Object (location) Location of the person

# location

Location of the person

    {
      "lat": Number,
      "long": Number,
      "*": Mixed,
    }

Field | Description
--- | ---
lat | Number
long | Number
* | Mixed