小编Har*_*gde的帖子

OpenAPI 规范 - 如何指定接受一定范围值的输入参数

使用 OpenAPI 3.0.3,我定义了一个接受两个输入查询参数的 API 规范。

- 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
Run Code Online (Sandbox Code Playgroud)

理想情况下,我想将两者结合起来,并且只有一个参数,该参数接受一个范围,例如: [a,b] where a > 0 and b > a > 0。比如说:

- 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 …
Run Code Online (Sandbox Code Playgroud)

specifications openapi

5
推荐指数
1
解决办法
2016
查看次数

如何在 Microsoft Clarity 上排除本地主机会话录音?

如何从 Clarity 录音中排除开发会话?我在他们的设置中找不到任何选项。另外,是否可以将会话录音限制在某些国家/地区?

ms-clarity

5
推荐指数
1
解决办法
1660
查看次数

标签 统计

ms-clarity ×1

openapi ×1

specifications ×1