Skip to content

Commit e409146

Browse files
committed
Exclude webAuth methods from graphql docs
1 parent 05dba63 commit e409146

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/SDK/Language/GraphQL.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ public function getParamExample(array $param): string
156156
$output .= 'false';
157157
break;
158158
case self::TYPE_STRING:
159-
$output .= "";
159+
$output .= '""';
160160
break;
161161
case self::TYPE_OBJECT:
162-
$output .= '{}';
162+
$output .= '"{}"';
163163
break;
164164
case self::TYPE_ARRAY:
165165
$output .= '[]';
@@ -197,6 +197,10 @@ public function getFiles(): array
197197
'scope' => 'method',
198198
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
199199
'template' => '/graphql/docs/example.md.twig',
200+
'exclude' => [
201+
'services' => [['name' => 'graphql']],
202+
'methods' => [['type' => 'webAuth']],
203+
],
200204
],
201205
];
202206
}

0 commit comments

Comments
 (0)