$permissions */ $permissions = $endpoint->custom['permissions']; $pathItem['security'] = [ ['default' => $permissions] ]; return $pathItem; } }