type

LiveValidationRequest

LiveValidationRequest asks for explicitly enabled advisory checks of an unsaved snapshot. It cannot save, initialize defaults or run mutation hooks. Field paths refer to the submitted snapshot and are validated by the server.

Properties

PropertyTypeDescription
IDstringID selects an existing collection document. Global requests must omit it.
Datastore.ValuesThe Data value.
Fields[]stringThe Fields value.
Embedded[]LiveValidationEmbeddedScopeThe Embedded value.

Full signature

type LiveValidationRequest struct { // ID selects an existing collection document. Global requests must omit it. ID string `json:"id,omitempty"` Data store.Values `json:"data"` Fields []string `json:"fields"` Embedded []LiveValidationEmbeddedScope `json:"embedded,omitempty"` }

Source protocol/live_validation.go:8