Skip to content

Spec drift: probable — Event and Market id fields typed as integer in spec, live API returns strings #538

@realfishsam

Description

@realfishsam

Summary

core/specs/probable.yaml declares id as type: integer on both Event and Market schemas. However, the live Probable API returns id as a string (e.g. "12345" not 12345). This type mismatch causes TypeScript type errors and may break ID comparison logic that expects numeric equality.

Impact

MEDIUM — ID comparison using === between a string ID from the API and an integer typed in code will always return false. Market/event lookups by ID will silently fail to match.

Details

  • Field: id on Event schema and Market schema in core/specs/probable.yaml
  • Spec declares: type: integer
  • Live API returns: string (e.g. "4201")
  • Consequence: code that stores IDs as numbers and compares them to API responses will have comparison mismatches

Required Fix

Change id field type from integer to string in both the Event and Market schemas in core/specs/probable.yaml. Audit the Probable normalizer for any parseInt() or numeric ID handling that should be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    spec-driftCached OpenAPI spec out of date vs venue's live docs

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions