You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
zf-apigility-documentation\src\ApiFactory.php seems to iterate only over the input_filter array, and it doesn't look POST, PUT and other custom validation elements:
if (isset($this->config['zf-content-validation'][$serviceClassName]['input_filter'])) {
$validatorName = $this->config['zf-content-validation'][$serviceClassName]['input_filter'];
$fields = array();
if (isset($this->config['input_filter_specs'][$validatorName])) {
foreach ($this->config['input_filter_specs'][$validatorName] as $fieldData) {
$fields[] = $field = new Field();
$field->setName($fieldData['name']);
if (isset($fieldData['description'])) {
$field->setDescription($fieldData['description']);
}
$field->setRequired($fieldData['required']);
}
$service->setFields($fields);
$hasFields = true;
}
}
The text was updated successfully, but these errors were encountered:
Good idea, I worked on something very similar. But I thought about having validation fields for the default API methods instead of the HTTP methods.
Its likely that you want different validators for fetch() and fetchAll() were both would use the GET fields.
koodikindral
added a commit
to koodikindral/zf-apigility-documentation
that referenced
this issue
Dec 27, 2014
When I try to add some fields for POST method, then they don't appear in documentation:
zf-apigility-documentation\src\ApiFactory.php seems to iterate only over the input_filter array, and it doesn't look POST, PUT and other custom validation elements:
The text was updated successfully, but these errors were encountered: