Data Router · console.warn
addSource field "{field}" has an unusable fi...
Printed by Data Router, prefixed [lattice], since 1.84.0.
Warnings reference › data-router:field-spec
- Identifier
data-router:field-spec- Raised by
- Data Router
- Since
- 1.84.0
What happened
A field in addSource’s fields option was declared as something other than a type name or an options object, so the router could not build a coercion for it. The field is left exactly as it arrived rather than throwing.
The fix
Declare the field as a type name (e.g. "text") or an options object (e.g. { type: "number", decimal: "," }).
The smallest fix
fields: { amount: { type: "number", decimal: "," } }
Reference
Covered in full at the API reference.