{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://example.phpsx.org/population#",
    "title": "entity",
    "description": "Represents an internet population entity",
    "type": "object",
    "properties": {
        "id": {
            "type": "integer",
            "description": "Unique id for each entry"
        },
        "place": {
            "type": "integer",
            "min": 1,
            "max": 64,
            "description": "Position in the top list"
        },
        "region": {
            "type": "string",
            "minLength": 3,
            "maxLength": 64,
            "pattern": "[A-z]+",
            "description": "Name of the region"
        },
        "population": {
            "type": "integer",
            "description": "Complete number of population"
        },
        "users": {
            "type": "integer",
            "description": "Number of internet users"
        },
        "worldUsers": {
            "type": "number",
            "description": "Percentage users of the world"
        },
        "datetime": {
            "type": "string",
            "format": "date-time",
            "description": "Date when the entity was created"
        }
    },
    "required": [
        "place",
        "region",
        "population",
        "users",
        "worldUsers"
    ]
}