Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · XO0414

Docs

XO0414: wire name no derive uses

warning · reported by the checker

A field’s wire name (name as "key": T) is used only by derive Json and derive SqlRow. On a struct with neither it changes nothing. Add the derive, or remove the wire name. See core 2.2.

Example

struct User {
  name as "Name": Str
}

Fix

struct User {
  name as "Name": Str
} derive Json

Run xo explain XO0414 for this text in a terminal, or see section 10.6 of the specification.