protected function generateArraySchema(array $arrayValue): array
    {
        $schema = ['type' => 'array'];
        $subSchemas = [];
        foreach ($arrayValue as $subValue) {
            $subSchemas[] = $this->generate($subValue);
        }
        $schema['items'] = $this->filterDuplicatesFromArray($subSchemas);
        return $schema;
    }
protected function generateArraySchema(array $arrayValue): array
    {
        $schema = ['type' => 'array'];
        $subSchemas = [];
        foreach ($arrayValue as $subValue) {
            $subSchemas[] = $this->generate($subValue);
        }
        $schema['items'] = $this->filterDuplicatesFromArray($subSchemas);
        return $schema;
    }
protected function generateArraySchema ( array $ arrayValue ) : array { $ schema = [ 'type' => 'array' ] ; $ subSchemas = [ ] ; foreach ( $ arrayValue as $ subValue ) { $ subSchemas [ ] = $ this -> generate ( $ subValue ) ; } $ schema [ 'items' ] = $ this -> filterDuplicatesFromArray ( $ subSchemas ) ; return $ schema ; }
Create a schema for an array structure

@param array $arrayValue
@return array schema
Create a schema for an array structure