Skip to content

Commit a598c08

Browse files
author
František Mazura
committed
add support of examples
1 parent 5914b12 commit a598c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DocParseHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function addCommentsToSchema(string $phpDoc, Schema $schema): Sche
112112
$schema = $schema->description(implode("\n", array_slice($comments, 1)));
113113
}
114114
if (!empty($examples)) {
115-
$schema = $schema->example(implode(', ', $examples));
115+
$schema = $schema->example(implode('|', $examples));
116116
}
117117
}
118118

0 commit comments

Comments
 (0)