Layer7 API Management

  • 1.  validate openapi document assertion failure?

    Posted 6 days ago
    Edited by Michael Müller 6 days ago
    Hi Team.
    I am trying to use the "validate openapi document" assertion.

    My openapi doc includes path defintions of

    The GW service resolutionpath is specified as /APITST/v1.0/TST/*

    The test postman call is done to https://gw:port/APITST/v1.0/TST/my_api

    The Service Base property of the assertion is specified as /APITST/v1.0*

    Unfortunately the validate assertion fails, and I don't know what I am doing wrong.
    Does anyone has any idea ?


  • 2.  RE: validate openapi document assertion failure?

    Broadcom Employee
    Posted 2 days ago
    Do you get a specific error ?

    Aran White - [JobTitle]

  • 3.  RE: validate openapi document assertion failure?

    Posted yesterday
    Hi Aran.
    Thanks for coming back to me on this.
    The expandedPath value was set to /APITST/v1.0/TST/my_api
    which of course could not be found in the openapi spec.

    Meanwhile by more testing, I know why. The Service Base value should not include  the trailing star*.
    So , Service Base set to :  /APITST/v1.0*does not work
    But using it without the asterisk is working. Obviously the Service Base value is just removed from the beginning of the incoming service uri.
    I misunderstood the docs stating: "
    Note: The service URI must end with '/*' ..."
    Just quite clear after knowing how it works.

    Thanks and kind regards