Skip to content

Expose structured access to JsonReply error code and supported_versions in FFI #1271

Closed as not planned

Description

@chavic

JsonReply / WellKnownError are currently exposed as JSON strings only. Integrators must parse strings to discover the code and supported_versions.

Todo:

  • Expose WellKnownError as a typed FFI record (code + supported_versions).
  • Expose JsonReply with typed accessors rather than string parsing.
  • Add binding tests for code matching (Unavailable, VersionUnsupported, etc.).
  • Ensure error serialization still round‑trips across languages.

Activity

  1. changed the title [-]JsonReply/WellKnownError structured access: if code and supported_versions are only available in strings, integrators are forced into fragile parsing and we lose compatibility guarantees.,[/-] [+]Expose structured access to JsonReply error code and supported_versions in FFI[/+] on Jan 19, 2026
  2. spacebear21 commented on Apr 23, 2026

    @spacebear21
    Collaborator

    Closing per #1427 (comment)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions