Forum Discussion

ReiVen's avatar
ReiVen
New Contributor
2 years ago

External value not being recognize by swaggerUI 3.0.0

I have a payload with a field called raw_data who is super long. So i decided to use an external value and call it in swaggerUI 

i'm using these url : https://mywebsite/tremorData.json wich its being called. is just a JSON file. Is possible that the problems is cause because the JSON file is not being parsed ? 

I tried several diferent things but it never work.

these is my code:

/**
 * @swagger
 * /data/tremor:
 *   post:
 *
 *     security:
 *     -  bearerAuth: []
 *
 *     tags: [data/ Tremor]
 *
 *     requestBody:
 *        required: true
 *        content:
 *           application/json:
 *              examples:
 *               jsonObject:
 *                 summary: A sample object
 *                 externalValue: 'https://mywebsite/tremorData.json'
 *            
 *     responses:
 *       200:
 *         description: Successful operation
 *       400:
 *         description: validation Fail /or/ Unexpected token, in JSON at position 108
 */

 


 

No RepliesBe the first to reply