خرید بک لینک

Vote count: 0

I'm using swagger 2 and Swagger UI to create some API docs. I've got most things rendering how I want, but having issues with the minimum/maximum on query parameters. I have my param defined as:

pagingCount:
  name: count
  in: query
  required: false
  type: integer
  description: The total items to retu.
  default: 1000
  minimum: 0
  maximum: 1000

and referenced in the endpoint as:

parameters: 
  - $ref: '#/parameters/pagingCount'

This shows up correctly in the UI, and the default is set; but there doesn't seem to be any validation on the min or max values and nothing that displays them. Am I doing something wrong, or is this not supported in SwaggerUI?

swagger ui

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 30 خرداد 1395 ساعت: 20:31

صفحه بندی