data icon indicating copy to clipboard operation
data copied to clipboard

spec: can we make SchemaRecord support arbitrary schema fields?

Open runspired opened this issue 5 months ago • 0 comments

A thought I had:

can we add another category of methods to the schema service:

registerKind(kind: KindFn)
kind(field: Field | { kind: string }): KindFn;

this would either augment the default schema-record behaviors or (if we determine the factoring can support it) change the implementation such that all default behaviors for field kinds are implemented via this mechanism at all, making schema-record fully amorphous

runspired avatar Sep 18 '24 17:09 runspired