Using OpenAPI 3.0.3, I am defining an API spec which accepts two input query parameters.
- name: land_area_llimit
in: query
description: Lower limit for land area comparison
required: false
schema:
type: integer
- name: land_area_ulimit
in: query
description: Upper limit for land area comparison
required: false
schema:
type: integer
Ideally, I would like to combine the two and have just one parameter, that accepts a range, like:
[a,b] where a > 0 and b > a > 0
. Say, something like:
- name: land_area
in: query
description: lower and upper bounds for land area comparison
required: false
schema:
type: range
## With some way to specify that this parameter accepts a lower bound and an upper bound.
I am aware of the minimum
and maximum
. That will preset the ranges. I am looking for the ranges to be provided as input.
Can this be achieved?