Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator Interface Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator:

Public Member Functions

 validate (array $patch)
 

Public Attributes

const CODE_INVALID = 'patch-invalid'
 
const CODE_INVALID_FIELD_TYPE = 'patch-invalid-field-type'
 
const CODE_MISSING_FIELD = 'patch-missing-field'
 
const CODE_INVALID_OPERATION = 'patch-invalid-op'
 
const CONTEXT_OPERATION = 'operation'
 
const CONTEXT_FIELD = 'field'
 

Detailed Description

Member Function Documentation

◆ validate()

Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::validate ( array  $patch)

Member Data Documentation

◆ CODE_INVALID

const Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::CODE_INVALID = 'patch-invalid'

◆ CODE_INVALID_FIELD_TYPE

const Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::CODE_INVALID_FIELD_TYPE = 'patch-invalid-field-type'

◆ CODE_INVALID_OPERATION

const Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::CODE_INVALID_OPERATION = 'patch-invalid-op'

◆ CODE_MISSING_FIELD

const Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::CODE_MISSING_FIELD = 'patch-missing-field'

◆ CONTEXT_FIELD

const Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::CONTEXT_FIELD = 'field'

◆ CONTEXT_OPERATION

const Wikibase\Repo\RestApi\Application\Validation\JsonPatchValidator::CONTEXT_OPERATION = 'operation'

The documentation for this interface was generated from the following file: