Please ignore, looks like a SwaggerUI issue. Got fixed in version 2.2.6


On Friday, October 14, 2016 at 3:06:56 PM UTC-7, Ritwik Chatterjee wrote:
>
> Hi,
>
> My swagger file looks like the following:  
>
> paths:
>   /ordercreate:
>
>     post:
>       parameters:
>         - name: OrderCreateRQ
>           in: body
>           description: The OrderCreateRQ request body
>           required: true
>           schema:
>             $ref: '#/definitions/OrderCreateRQ'
>       responses:
>         200:
>           description: Success response
>           schema:
>             $ref: '#/definitions/OrderViewRS'
>
>
> definitions:
>   OrderCreateRQ:
>     $ref: './common/OrderCreateRQ.schema'
>
>
>   OrderViewRS:
>     $ref: './common/OrderViewRS.schema'
>
> I do have the schemas in the "common" folder as valid JSON files. 
>  
> When I am pulling it up on SwaggerUI 2.1.4, it says:
>
> ./common/OrderCreateRQ.schema is not defined!
> ./common/OrderCreateRS.schema is not defined!
>
>
>
> I have tried moving the schema files in the same directory and referring, 
> but it fails. 
> What am I missing here? Can someone help me?
>
> Thanks
> Ritwik 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to