Skip to content

When there are multiple validation issues only the first one is returned #41

@lukaszkegss

Description

@lukaszkegss

Current behaviour
When there are multiple validation issues in body only the first one is returned

Expected
All validation issues should be returned

Proposed fix:

 if(processingReport != null && !processingReport.isEmpty()) {
            var message = processingReport.stream().map(ValidationMessage::getMessage).collect(Collectors.joining(","));
            status = new Status(VALIDATOR_SCHEMA, message);
        }

https://github.com/mservicetech/openapi-schema-validation/blob/7b77cf791695ae6d0205adc0f23d71da8c7b9b47/src/main/java/com/mservicetech/openapi/validation/SchemaValidator.java#L126

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions