{
    "$schema": "http://json-schema.org/draft-04/schema",
    "title": "Tank",
    "description": "Describes information about tanks",
    "type": "object",
    "properties": {
        "id": {
            "description": "unique identifier for this tank",
            "type": "string"
        },
        "stationid": {
            "description": "unique identifier for the station where this tank is located",
            "type": "string"
        },
        "fuel": {
            "enum": [
                "regular",
                "premium",
                "diesel"
            ]
        },
        "capacity": {
            "description": "fuel capacity of the tank",
            "type": "number"
        }
    },
    "required": [
        "id",
        "stationid",
        "fuel",
        "capacity"
    ]
}