mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
format
This commit is contained in:
parent
c2645be4e1
commit
5a8a900b18
1 changed files with 7 additions and 7 deletions
|
|
@ -44,13 +44,13 @@ class Specs extends Action
|
|||
}
|
||||
|
||||
protected function getFormatInstance(string $format, array $arguments)
|
||||
{
|
||||
return match ($format) {
|
||||
'swagger2' => new Swagger2(...$arguments),
|
||||
'open-api3' => new OpenAPI3(...$arguments),
|
||||
default => throw new Exception('Format not found: ' . $format)
|
||||
};
|
||||
}
|
||||
{
|
||||
return match ($format) {
|
||||
'swagger2' => new Swagger2(...$arguments),
|
||||
'open-api3' => new OpenAPI3(...$arguments),
|
||||
default => throw new Exception('Format not found: ' . $format)
|
||||
};
|
||||
}
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue