The shallow check, and deliberately nothing more. Three fields, because
three are all the service itself needs:
schemaVersion — copied into an indexed column and never interpreted, so a
number is the only requirement. A document from a future version must round
trip.
username — must equal the session's subject, which is the row key.
history — its length becomes the sessions_completed column. The
service never looks inside, hence Type.Unknown() for the elements rather
than a SessionResult schema.
Property order is load-bearing in one small way: the service reports the first
validation failure, and these are the order a human would want to hear about
them in.
The shallow check, and deliberately nothing more. Three fields, because three are all the service itself needs:
schemaVersion— copied into an indexed column and never interpreted, so a number is the only requirement. A document from a future version must round trip.username— must equal the session's subject, which is the row key.history— its length becomes thesessions_completedcolumn. The service never looks inside, henceType.Unknown()for the elements rather than aSessionResultschema.Property order is load-bearing in one small way: the service reports the first validation failure, and these are the order a human would want to hear about them in.