See the examples in swagger editor [1] Go to File > Open Example > select petstore sample. You can find the responce models under definition in the YAML file. You can define the response schema with json schema [2]
Cheers Jo [1] http://editor.swagger.io/#/ [2] http://json-schema.org/ On Mon, Nov 2, 2015 at 10:24 PM, Rushmin Fernando <[email protected]> wrote: > > Hi Devs. > > $subject please. Is there a special syntax to define the schema or does > Swagger converts a sample payload to a schema ? > > Thanks > Rushmin > -- > *Rushmin Fernando* > *Technical Lead* > > WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware > > email : [email protected] > mobile : +94772310855 > > > -- -- *Joseph Fonseka* WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 772 512 430 skype: jpfonseka * <http://lk.linkedin.com/in/rumeshbandara>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
