I'm creating a service with swagger import on 8.1. almost all good.
the swagger file points to the json document schema, and the generated vsi response shows the url of the schema
how do I surface the schema in the service?
I can do JSON protocol filter, which converts it to xml and puts 'parms' on the virtual request, but I have to type the schema in manually.
I can see the 'parms' in the VSE console, transaction inspection view, but cannot access them in the vsi without manually adding them as transaction arguments.
it almost seems like a step was missed..
I don't see any other mechanism, and the Using Data protocols doc doesn't get into this level of detail.
I see I can use an assertion to verify the data matches a schema, but... the schema is in the swagger yaml file, not in a raw json document.
and using the content or a property as the truth of the schema is like having the fox watch the chicken coop!..
again, I am not recording, as none of my service exist yet. so this may be an edge use case.
need help!
I have one VSI which shows the json body document elements as part of the VSI parameters, and I need to do that again as the api spec has changed.
but I cannot figure out how I did it.
the service from yaml gets the urls correct, but never shows any mechanism to map the body to arguments.
I have tried all kinds of protocol filters, json/xml/data copier, in different orders.
the Json protocol filter seems to work but I don't see the properties until the response selection step.
I know I didn't do it by hand, there are 100's of json document elements.