Add OAS3 allowEmptyValue for query params (#10312)

* add the special case of empty query parameters to the fake API
This commit is contained in:
Peter Leibiger
2021-09-03 10:32:51 +02:00
committed by GitHub
parent 490c747c2b
commit a558554961
39 changed files with 288 additions and 89 deletions

View File

@@ -554,6 +554,11 @@ class FakeController extends Controller
}
$context = $input['context'];
if (!isset($input['allowEmpty'])) {
throw new \InvalidArgumentException('Missing the required parameter $allowEmpty when calling testQueryParameterCollectionFormat');
}
$allowEmpty = $input['allowEmpty'];
$language = $input['language'];