source/Internal/Module/MetaData/Validator/MetaDataValidator.php
public function validate(string $metaDataFilePath, string $metaDataVersion, array $metaData)
    {
        $this->currentValidationMetaDataVersion = $metaDataVersion;
        $this->metaDataFilePath = $metaDataFilePath;

        $supportedMetaDataKeys = $this->metaDataSchemataProvider->getFlippedMetaDataSchemaForVersion($this->currentValidationMetaDataVersion);
        foreach ($metaData as $metaDataKey => $value) {
            if (is_scalar($value)) {
                $this->validateMetaDataKey($supportedMetaDataKeys, (string) $metaDataKey);
            } elseif (true === \is_array($value)) {
                $this->validateMetaDataSection($supportedMetaDataKeys, $metaDataKey, $value);
            } else {
                throw new UnsupportedMetaDataValueTypeException('The value type "' . \gettype($value) . '" is not supported in metadata version ' . $this->currentValidationMetaDataVersion);
            }
        }
    }
public function validate(string $metaDataFilePath, string $metaDataVersion, array $metaData)
    {
        $this->currentValidationMetaDataVersion = $metaDataVersion;
        $this->metaDataFilePath = $metaDataFilePath;

        $supportedMetaDataKeys = $this->metaDataSchemataProvider->getFlippedMetaDataSchemaForVersion($this->currentValidationMetaDataVersion);
        foreach ($metaData as $metaDataKey => $value) {
            if (is_scalar($value)) {
                $this->validateMetaDataKey($supportedMetaDataKeys, (string) $metaDataKey);
            } elseif (true === \is_array($value)) {
                $this->validateMetaDataSection($supportedMetaDataKeys, $metaDataKey, $value);
            } else {
                throw new UnsupportedMetaDataValueTypeException('The value type "' . \gettype($value) . '" is not supported in metadata version ' . $this->currentValidationMetaDataVersion);
            }
        }
    }
public function validate ( string $ metaDataFilePath , string $ metaDataVersion , array $ metaData ) { $ this -> currentValidationMetaDataVersion = $ metaDataVersion ; $ this -> metaDataFilePath = $ metaDataFilePath ; $ supportedMetaDataKeys = $ this -> metaDataSchemataProvider -> getFlippedMetaDataSchemaForVersion ( $ this -> currentValidationMetaDataVersion ) ; foreach ( $ metaData as $ metaDataKey => $ value ) { if ( is_scalar ( $ value ) ) { $ this -> validateMetaDataKey ( $ supportedMetaDataKeys , ( string ) $ metaDataKey ) ; } elseif ( true === \ is_array ( $ value ) ) { $ this -> validateMetaDataSection ( $ supportedMetaDataKeys , $ metaDataKey , $ value ) ; } else { throw new UnsupportedMetaDataValueTypeException ( 'The value type "' . \ gettype ( $ value ) . '" is not supported in metadata version ' . $ this -> currentValidationMetaDataVersion ) ; } } }
Validate that a given metadata meets the specifications of a given metadata version

@param string $metaDataFilePath
@param string $metaDataVersion
@param array  $metaData

@throws UnsupportedMetaDataValueTypeException
Validate that a given metadata meets the specifications of a given metadata version