fix: merge pdf pipeline validation (#5799)

Co-authored-by: RenzoMXD <[email protected]>
This commit is contained in:
Renzo
2026-03-06 00:14:30 +00:00
committed by GitHub
co-authored by RenzoMXD
parent 30b0924d6b
commit c77242d943
3 changed files with 101 additions and 3 deletions
@@ -25,8 +25,9 @@ public class ApiEndpoint {
}
public boolean areParametersValid(Map<String, Object> providedParams) {
for (String requiredParam : parameters.keySet()) {
if (!providedParams.containsKey(requiredParam)) {
for (Map.Entry<String, JsonNode> entry : parameters.entrySet()) {
boolean isRequired = entry.getValue().path("required").asBoolean(false);
if (isRequired && !providedParams.containsKey(entry.getKey())) {
return false;
}
}