#11010·swagger-ui

请求/响应体中的 readOnly 方案属性渲染取决于扩展顺序

作者: cmilatinov创建于 2026年8月13日更新于 2026年8月13日

Q&A

  • OS: Windows
  • Browser: Chrome
  • Version: 151
  • Installation method: npm
  • Swagger-UI version: 5.32.13
  • Swagger/OpenAPI version: OpenAPI 3.1.0

Content & configuration

Read-only (readOnly: true) property visibility in Swagger UI is not computed per operation/context. Instead, it behaves like a single shared/global state that is set by the order in which operations are expanded, and it applies to every operation — even operations that reference different component schemas.

内容来源: swagger-api/swagger-ui