API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Validate Policy not reflecting the changes in the schema validation

  • 1.  Validate Policy not reflecting the changes in the schema validation

    Posted Sun May 11, 2025 12:40 AM

    Hi Experts,

      I am finding strange issue with validate policy that validates the incoming request payload against a predefined schema definition.

      I am on currently APIC 10.0.5.2-ifix1.

      Validate policy works fine, but when I make a change to any of the property in the schema definition, lets say I changed  the maxlength value of firstName from 50 to 100 and publish it to catalog, it doesnt reflect the change. it still considers maxlength as 50

    It works(allows max length as 100) only when I create a new verison of api and package that new version api in a product.

    I am not sure why is this behavior? Is there any caching happening? and I believe when I publish, it should automatically clear up everything and overwrite with the new one, right?

    Can someone really help and share your valuable and expert suggestions, thoughts? We have so many apis for which we have to update schema definitions and we dont want to create new version of each api  for every small change in the schema definition.

    Looking forward to your response. Thanks!

    Regards

    Ram

       



    ------------------------------
    Ram Poram
    ------------------------------


  • 2.  RE: Validate Policy not reflecting the changes in the schema validation

    Posted Sun May 11, 2025 01:37 AM
    Edited by Srinivas Poram Sun May 11, 2025 01:37 AM

    I actually found the issue.

    When I stage the product from drafts and Publish the staged product from API Manager UI, the changes in schema definition are not taking in to effect.

    But when I publish a product through APIC CLI or just directly Publish Products from Drafts, it works just fine. 



    ------------------------------
    Ram Poram
    ------------------------------