Questions tagged «openapi»

2
Swagger / OpenAPI-使用$ ref传递可重用的已定义参数
假设我有一个类似的参数limit。这个地方到处都是,如果我需要更新它,那么到处都必须更改它是一个痛苦的事情: parameters: - name: limit in: query description: Limits the number of returned results required: false type: number format: int32 我可以使用$ ref在其他地方定义它并使其可重用吗?我碰到了这张票,暗示有人想更改或改进功能,但是我不知道它是否已经存在?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.