{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "method": "getNews",
    "group": "News",
    "summary": "Get the 5 latest news posts",
    "description": "Keyed by news post ID, most recent first.",
    "deprecated": false,
    "params": {
        "type": "object",
        "properties": {
            "key": {
                "description": "API key",
                "type": "string"
            }
        },
        "required": [
            "key"
        ],
        "x-order": [
            "key"
        ]
    },
    "result": {
        "type": "object",
        "additionalProperties": {
            "$ref": "#/$defs/PostRecord"
        }
    },
    "errors": [
        {
            "code": -32001,
            "message": "Invalid API Key"
        },
        {
            "code": -32002,
            "message": "Call Limit Exceeded"
        },
        {
            "code": -32003,
            "message": "User Account Disabled"
        },
        {
            "code": -32004,
            "message": "IP address needs authorization - please check your notices on BTN"
        },
        {
            "code": -32004,
            "message": "Unauthorized IP address"
        }
    ],
    "examples": [],
    "$defs": {
        "PostRecord": {
            "type": "object",
            "properties": {
                "Title": {
                    "type": "string"
                },
                "Body": {
                    "type": "string"
                },
                "Time": {
                    "type": "integer"
                },
                "Author": {
                    "type": [
                        "string",
                        "null"
                    ]
                }
            },
            "required": [
                "Title",
                "Body",
                "Time",
                "Author"
            ],
            "additionalProperties": false
        }
    }
}
