Documentation ¶
Index ¶
Constants ¶
View Source
const (
PatchField = "patch"
)
Variables ¶
View Source
var NoSuchFieldErr = errors.New("no such field")
View Source
var RequiredPatchRecordFields = restlicodec.NewRequiredFields().Add(PatchField)
Functions ¶
func NewFieldCannotBeDeletedError ¶ added in v2.1.0
Types ¶
type IllegalPartialUpdateError ¶
IllegalPartialUpdateError is returned by PartialUpdateFieldChecker a partial update struct defines an illegal operation, such as deleting and setting the same field.
func (*IllegalPartialUpdateError) Error ¶
func (c *IllegalPartialUpdateError) Error() string
type PartialUpdateFieldChecker ¶
func (*PartialUpdateFieldChecker) CheckField ¶
func (c *PartialUpdateFieldChecker) CheckField( checker restlicodec.KeyChecker, fieldName string, isDeleteSet bool, isSetSet bool, isPartialUpdateSet bool, ) error
Click to show internal directories.
Click to hide internal directories.