We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff88b05 commit 59f541aCopy full SHA for 59f541a
src/Endpoint/Concerns/BuildsOpenApiPaths.php
@@ -67,17 +67,12 @@ private function buildLinksObject(array $item): array
67
68
return [
69
'type' => 'object',
70
- 'properties' => [
71
- 'self' => [
+ 'properties' => array_map(function (string $uri) {
+ return [
72
'type' => 'string',
73
- 'example' => array_map(function (string $uri) {
74
- return [
75
- 'type' => 'string',
76
- 'example' => $uri,
77
- ];
78
- }, $links),
79
- ],
80
+ 'example' => $uri,
+ ];
+ }, $links),
81
];
82
}
83
0 commit comments