Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个不断增长的 Swagger API/openAPI,并且为了记录我们喜欢在路径或参数(可能还有定义)上记录的更改,因为它是可用的 API 版本。
swagger 规范知道该info.version领域,但在paths或parameters我找不到引用此版本的内容。
info.version
paths
parameters
也许以like开头的供应商扩展可能会有所帮助。至少验证不会使用它们失败。x-...x-since
x-...
x-since
但是这个用例可能有任何现有的实现吗?
我不知道 OpenAPI/Swagger 2.0 规范中有任何现有属性可以满足您的需求,因此您应该使用供应商扩展(x-since、x-created-on、x-created-by 等)