Dhinesh
5 years agoNew Member
After I specified my field as required , still swagger request is sent without that field
/** * @swagger * paths: * tags: * - name: Email * /order_email: * post: * tags: * - Emailendpoints * description: this endpoint is used to send email * consumes: * - application/json * parameters: * - name: body * in: body * schema: * type: object * required: * - order_id * - email * properties: * order_info_id: * type: integer * required: true * email: * type: string * required: true * host: * type: string * responses: * 200: * description: User found and logged in successfully * 401: * description: Bad username, not found in db * 403: * description: Username and password don't match */
I'm using swagger jsdoc