Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Duplicate properties, Duplicate Headers are not being validated #172

@bachi317

Description

@bachi317

Greetings,

We found couple of issues that are not being validated by the 1.0.7 release of the openApiValidator. Here are the details.

Issue #1
When we pass a duplicate field in the request the validation is being passed without throwing any error.

Example:
If I sent a request where field1 is repeated twice the validator is not throwing an error

{
"field1" : "value",
"filed2": "value",
"field1" : value
}

Issue #2
When we pass the same header twice in the request the validation is being passed without throwing any error.

Example:
If we pass "Authorization" header or any header that's defined in the swagger twice there is no validation error being thrown.

Can you please advice if there is a fix for this?

We have MuleSoft in built API validation, which is capturing these 2 types of errors so these are valid scenarios from a schema validation point of view.

Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions