Validate against swagger assertion in shared fragments

book

Article ID: 196349

calendar_today

Updated On:

Products

CA API Gateway API SECURITY CA API Gateway Precision API Monitoring Module for API Gateway (Layer 7) CA API Gateway Enterprise Service Manager (Layer 7) STARTER PACK-7 CA Microgateway

Issue/Introduction

We are currently encountering problems with Validate against Swagger assertion.

When this assertion is used within Policy Fragment that is then used in more than 1 policy that uses different swagger file,

It often gives faulty validation messages when both policies are called at the same time.

 

Cause

The validate swagger assertion is caching the swagger document which can cause problems when the assertion is used in a shared fragment where the document is changing with each call.

Environment

Release : 9.4

Component : API GATEWAY

Resolution

Engineering is aware and is planning to improve the cache handling in a future release, for now we advise not to the the validate swagger assertion in a shared fragment