Following the merge of https://github.com/bitcoin/bitcoin/pull/23083, we'll throw a non-fatal error at runtime if the documentation for an RPC is incorrect. This behaviour has found numerous issues over a very short period (of the PR being opened). However, this is not something that we want in production / release builds, instead, we want the ability to have it enabled in the CI and when running tests. A runtime option could be added, which controls this behaviour (disabled by default).

#### Useful skills:

- C++
- Understanding of Bitcoin Core's initialization sequence
- Understanding of Bitcoin Core's RPC interface

#### Want to work on this issue?

For guidance on contributing, please read [CONTRIBUTING.md](https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md) before opening your pull request.

if (UniValue::VARR != result.getType()) return false;
        for (size_t i{0}; i < result.get_array().size(); ++i) {
            
            const RPCResult& doc_inner{m_inner.at(std::min(m_inner.size() - 1, i))};
            if (!doc_inner.MatchesType(result.get_array()[i])) return false;
        }
        return true; 
    }
    case Type::OBJ_DYN:
    case Type::OBJ: {
        if (UniValue::VOBJ != result.getType()) return false;
        if (!m_inner.empty() && m_inner.at(0).m_type == Type::ELISION) return true;
        if (m_type == Type::OBJ_DYN) {
            const RPCResult& doc_inner{m_inner.at(0)}; 
            for (size_t i{0}; i < result.get_obj().size(); ++i) {
                if (!doc_inner.MatchesType(result.get_obj()[i])) {
                    return false;
                }
            }
            return true; 
        }
        std::set<std::string> doc_keys;
        for (const auto& doc_entry : m_inner) {
            doc_keys.insert(doc_entry.m_key_name);
        }
        std::map<std::string, UniValue> result_obj;
        result.getObjMap(result_obj);
        for (const auto& result_entry : result_obj) {
            if (doc_keys.find(result_entry.first) == doc_keys.end()) {
                return false;