Skip to main content

If I have a Swagger file, that has a URI parameter, how do I add that parameter to the SmartObject? By Default, the SmartObject only allows me to enter values for the input fields and the parameter field is not included.

 

Is this standard behavior or should the parameter be showing as a field in the smartobject?

Hello,


 


By default the smartobject will only create parameters based off of the swagger definition. Are you able to see the parameter outside of the K2 SmartObject when testing with say the swagger editor?


 


https://editor.swagger.io/?_ga=2.19238776.1306981995.1539026854-1549640557.1538511813


 


If it doesn't show here, there is no way K2 is going to pick up on it as well. If it does show on the swagger editor but not on the K2 smartobject can you attach your descriptor file? Also let us know the exact method and parameter in question.


 


Thanks!


Evan


 


K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.


I figured it out. I had a bad Swagger file. Must include the return properties in the Swagger definition!


Reply