Skip to content

Type: uint — distinct type vs unsigned constraint (decision) #98

@rrrodzilla

Description

@rrrodzilla

Workstream: Type system · Part of #89

Context

CEL treats uint (uint64) as a distinct type with separate overflow rules and no implicit int↔uint conversion. SchemaForge collapses everything to Integer(i64).

Scope — decision issue

  • Decide: model unsigned as a distinct FieldType vs. an IntegerConstraints { min: 0 } constraint on the existing Integer.
  • Tension: a constraint is simpler and probably enough for most fields; but CEL conformance treats the type distinction as load-bearing, so a constraint cannot fake it if we chase conformance.

Acceptance


Dependencies: Decision informed by #91 and the conformance results in #90. Soft.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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