Harpreet Sangar
07/30/2021, 3:06 PMKishore Nallan
07/30/2021, 3:07 PMHarpreet Sangar
07/30/2021, 3:13 PM{
"message": "The `fields` value should be an array of objects containing `name`, `type` and optionally, `facet` properties."
}
Kishore Nallan
07/30/2021, 3:14 PMKishore Nallan
07/30/2021, 3:14 PMHarpreet Sangar
07/30/2021, 3:14 PMHarpreet Sangar
07/30/2021, 4:40 PMBut don't you think that enforcement is better done at the API level?The error messages I've defined take the context of client into consideration. ex,
Ensure Schema.name is set
v/s
`Parameter name
must be a non-empty string.`
https://github.com/typesense/typesense-dart/blob/master/lib/src/models/schema.dart#L20
imo, it's better this way.