private function isFirstLevelIsDto(\JSONSchema\Structure\Schema $schema)
    {
        $isFirstLevelIsDto = false;

        foreach ($schema->getProperties() as $propertie) {
            if (in_array($propertie->getType(), array('object', 'array')) === false) {
                $isFirstLevelIsDto = true;
            }
        }

        return $isFirstLevelIsDto;
    }
private function isFirstLevelIsDto(\JSONSchema\Structure\Schema $schema)
    {
        $isFirstLevelIsDto = false;

        foreach ($schema->getProperties() as $propertie) {
            if (in_array($propertie->getType(), array('object', 'array')) === false) {
                $isFirstLevelIsDto = true;
            }
        }

        return $isFirstLevelIsDto;
    }
private function isFirstLevelIsDto ( \ JSONSchema \ Structure \ Schema $ schema ) { $ isFirstLevelIsDto = false ; foreach ( $ schema -> getProperties ( ) as $ propertie ) { if ( in_array ( $ propertie -> getType ( ) , array ( 'object' , 'array' ) ) === false ) { $ isFirstLevelIsDto = true ; } } return $ isFirstLevelIsDto ; }
Is there is only array or object at the first level,
its not considered as a metadata but as a collection of it

@param  \JSONSchema\Structure\Schema $schema
@return boolean
Is there is only array or object at the first level its not considered as a metadata but as a collection of it