Feature #45167

Allow "custom generic" object validators

Added by Karsten Dambekalns over 2 years ago. Updated about 2 years ago.

Status:Resolved Start date:2013-02-05
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Validation
Target version:-
PHP Version: Complexity:
Has patch:No

Description

Right now a GenericObjectValidator will be built for objects and then a custom validator will be used. But that custom validator is looked up following a strict rule, so a "custom generic" validator is not possible currently.

Associated revisions

Revision 7f51878c
Added by Karsten Dambekalns over 2 years ago

[FEATURE] Allow PolyType custom validators to be used

This introduces a new PolyTypeObjactValidatorInterface. When building
base validator conjunctions for a type, all implementations of that
interface will be asked if they canValidate() the type.

This enables the writing of custom validators that act on multiple
types.

Change-Id: Iab15f89610556a50531eee5be0fb7946dd95e958
Resolves: #45167
Releases: master

Revision 3761b8f9
Added by Karsten Dambekalns about 2 years ago

[BUGFIX] Fix failing ValidatorResolverTest

The PolyTypeObjectValidator change broke a number of changes, because
it was not adjusted to the static method result compilation changes
merged since it was created.

Change-Id: I05625b68f6cb87266f141694914aa87c5805c649
Related: #45167
Releases: master

History

#1 Updated by Karsten Dambekalns over 2 years ago

  • Project changed from TYPO3 Flow Base Distribution to TYPO3.Flow

#2 Updated by Karsten Dambekalns over 2 years ago

  • Category set to Validation
  • Has patch set to No

#3 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18053

#4 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/18053

#5 Updated by Karsten Dambekalns about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF