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.
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.