Gateway 10.1 CR02 Validate against OpenAPI Document "AllOf" in combination with "additionalProperties": true failing
search cancel

Gateway 10.1 CR02 Validate against OpenAPI Document "AllOf" in combination with "additionalProperties": true failing

book

Article ID: 262192

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

After upgrading from 10.0 -->10.1 -->10.1CR02 we have issues with the Validate against OpenAPI Document assertion.

When there is a path in the OpenApi spec having the combination "AllOf" an "additionalProperties": true  the validation is failing.

It gives the error: Invalid body for null on /validate/not/correct : Validation failed : [$.property: string found, object expected] 

With version 10.1 and it all works fine.  After upgrading it to 10.1CR02 the test are failing.

 

Environment

Release : 10.1

Resolution

This will be resolved in gateway 10.1 CR3 .

When a solution is needed for Gateway 10.1CR2 please raise a support ticket to request a updated assertion for OpenApiAssertion-2.0.6.aar   .

replace the current file in the following gateway directory 

/opt/SecureSpan/Gateway/runtime/modules/assertions.

for the new OpenApiAssertion-2.0.7.aar file.

Make sure the owner and group are set correct and restart the gateway service.

This version will fix the issue for CR2