openapi: "3.0.0"
Swagger-jsdoc: "^6.2.5",
Swagger-ui-express: "^4.3.0",
Node: v18.8.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 this URL: https://mywebsite/tremorData.json which its being called. It is just a JSON file. Is possible that the problems is caused by the JSON file not being parsed?
I tried several things but it never works. In case you know how to add big payload in swaggerUI I'm open to other options.
this 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
*/