Skip to content

Type: typed map<K,V> (vs Composite struct / Json) #99

Description

@rrrodzilla

Workstream: Type system · Part of #89

Context

CEL has a typed map<K,V>. SchemaForge has Composite (fixed-key struct, BTreeMap<String, DynamicValue> over a declared field set) and Json (untyped) — but no typed, open-keyed, homogeneous map. CEL map comprehensions (m.all(k,v,…), m.exists(...)) are only useful with a real map type.

Scope

  • New FieldType::Map { key, value } + matching DynamicValue.
  • DSL syntax; distinguish clearly from Composite and Json in docs.

Acceptance

  • A typed map field round-trips; rule comprehensions over it type-check.

Dependencies: Type is parallelizable now; map comprehensions are exercised once the evaluator (#91) lands. Soft.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    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