Layer7 API Management

 View Only

schema validation for multiple apis within one swagger file

  • 1.  schema validation for multiple apis within one swagger file

    Posted Mar 27, 2019 10:22 AM

    Hi All, please consider my case, in my bank we are publishing a set of REST APIs. the issue i have is that we are provided with only one swagger file containing all the APIs definitions. and that resulted on each API published on the gateway to have its own schema version [even though some DTOs are common among al the APIs].

    The question is, when these services are published to production, and the structure is modified for one DTO, is there a way to reflect that change without the need to go through all the APIs.

    - if i did it dynamically to get the schema from the end point how would i validate it in run time.

    - i don't want any background processes or service to do that for me in runtime.

     

    Thanks in advance