1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 05:40:24 +02:00

lib: Ignore required attribute on lists an checkboxes

References #1014
This commit is contained in:
logmanoriginal
2019-01-22 18:11:52 +01:00
parent ab2e566ee1
commit 434c12672f
2 changed files with 14 additions and 1 deletions

View File

@@ -196,7 +196,10 @@ class ParameterValidator {
if(isset($data[$id]) && !empty($data[$id])) {
$queriedContexts[$context] = true;
} elseif(isset($properties['required'])
&& $properties['required'] === true) {
&& $properties['required'] === true
&& isset($properties['type'])
&& $properties['type'] !== 'checkbox'
&& $properties['type'] !== 'list') {
$queriedContexts[$context] = false;
break;
}