bynk.types.field_name_case_conflict
Error Two fields of a cookies or query record have wire names that differ only in case.
A cookies or query record is read by name, and names that differ only in case are easily confused: a client that sends page would not match Page, yet both look like the same parameter. So two fields of such a record may not have wire names that differ only in case. Rename one. Two fields with exactly the same wire name are bynk.types.field_name_duplicate.
Example
type Filter = { @name("Page") a: Option[Int], @name("page") b: Option[Int], // ✗ differs from `Page` only in case}
type Filter = { @name("Page") a: Option[Int], @name("size") b: Option[Int], // ✓}In the Book
See also
- The grammar rule it governs:
record_field. - Every code in its category, Type checking, on the diagnostic index.
bynk explain bynk.types.field_name_case_conflictshows the same from the installed toolchain, without a network.