SystangoTechnologies/swagger-generator-koa

How to provide an example for input?

Opened this issue · 0 comments

This is my requestModel:

"0": {
    "body": {
      "startDate": Joi.string(),
      "endDate": Joi.string(),
    },
    "model": "start", // Name of the model
    "group": "Batch", // Swagger tag for apis.
    "description": "Start a batch process, given date in yyyy-mm-dd format",
  },

and is there a way not to use JOI, like specifying a type: 'string'