Skip to content

Commit 0a1104a

Browse files
committed
Comment on cookies not being supported
1 parent 1e895cf commit 0a1104a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OpenAPI/Processor/Request.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ private function formatPsr7(FieldName $parentFieldName, ServerRequestInterface $
100100
'path' => $request->getUri()->getPath(),
101101
'query' => $request->getUri()->getQuery(),
102102
'header' => $this->filterHeaders($request->getHeaders()),
103-
//@TODO 'cookie' => $request->getCookieParams() cannot recall why this is commented out
103+
//@TODO 'cookie' => $request->getCookieParams()
104+
// Cannot recall exact reasons, but possibly:
105+
// - Return types from getCookieParams come back as arrays making it difficult to validate types
104106
]);
105107

106108
//There should only be one content type header; PHP ignores additional header values

0 commit comments

Comments
 (0)