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;
    }