src/Database/AbstractModel.php
protected static function inputValidate($data, string $jsonShemaFile): bool
    {
        $fullPath = cfg::baseDir() . cfg::JSON_SCHEMA . cfg::DS;
        $jsonSchema = $fullPath . $jsonShemaFile;

        if (Json::validate($data, $jsonSchema)) {
            return true;
        }

        return false;
    }
protected static function inputValidate($data, string $jsonShemaFile): bool
    {
        $fullPath = cfg::baseDir() . cfg::JSON_SCHEMA . cfg::DS;
        $jsonSchema = $fullPath . $jsonShemaFile;

        if (Json::validate($data, $jsonSchema)) {
            return true;
        }

        return false;
    }
protected static function inputValidate ( $ data , string $ jsonShemaFile ) : bool { $ fullPath = cfg :: baseDir ( ) . cfg :: JSON_SCHEMA . cfg :: DS ; $ jsonSchema = $ fullPath . $ jsonShemaFile ; if ( Json :: validate ( $ data , $ jsonSchema ) ) { return true ; } return false ; }
Validate the inpute of request

@author Edson B S Monteiro <bruno.monteirodg@gmail.com>
@since 1.0
@param \stdClass|array $data
@param string $jsonShemaFile
@return bool
Validate the inpute of request