Skip to content

rfl::nlohmann::Reader: tag type-cast and overflow errors as ErrorKind::invalid_type / invalid_value instead of other #105

Done

Description

@clockblocker

Bug

rfl::nlohmann::Reader currently reports type-cast failures and numeric overflow errors as ErrorKind::other instead of ErrorKind::invalid_type / ErrorKind::invalid_value.

Evidence

  • Surfaced in obs-websocket#1 and solidity Part A Showcase Migrations.
  • Aligns rfl::nlohmann::Reader with #69/#70 structured error tagging.

Acceptance Criteria

  • Tag JSON type mismatches in rfl::nlohmann::Reader as ErrorKind::invalid_type and numeric overflows/range failures as ErrorKind::invalid_value.
  • Add parity tests comparing rfl::nlohmann::Reader error kinds against rfl::json::Reader across primitive, container, and overflow cases.

Activity

  1. added
    bug
    ready-for-agent
    on Nov 27, 2026
  2. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Landed Showcase Confirmation & Root-Cause Sites (clockblocker/obs-websocket#1, 14aefd0):

    • Confirmed in obs-websocket/src/protocol/RequestCodec.h (MapErrorToRequestStatus): unlike rfl::json::Reader, rfl::nlohmann::Reader leaves type-cast and numeric-overflow failures tagged as ErrorKind::other instead of invalid_type / invalid_value, forcing a string-fallback branch.
    • Root-cause file on showcase/all-lanes: include/rfl/nlohmann/Reader.hpp (all error(...) / Error(...) calls in get_field_from_array, get_field_from_object, read_array, read_object, and to_basic_type currently omit ErrorKind).
  3. added a commit that references this issue on Nov 27, 2026
  4. clockblocker commented on Nov 27, 2026

    @clockblocker
    OwnerAuthor

    Resolved on showcase/all-lanes via Batch 1 merge 4861aafd (commits d4700190, d3673b24). Verified with 962/962 CTest passing under AppleClang 17 -Wall -Werror + REFLECTCPP_STRICT_WARNINGS=ON (non-SYSTEM -I for internal tests, -isystem for downstream consumers) and dual Judge approval (Gemini 4 Neon High: APPROVE WITH NITS, all addressed; Claude Opus 5.5 High re-check: APPROVE).

  5. added a commit that references this issue on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions