rstudio/plumber

Use `openapi-schema-validator` for `validate_api_spec()`

开放

#817 创建于 2021年8月9日

 (0 条评论) (1 个反应) (0 位负责人)R (257 个派生)batch import
difficulty: intermediateeffort: lowhelp wantedpriority: mediumtheme: OpenAPI

仓库指标

星标
 (1,437 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Found while resolving #796

npmjs.com/package/openapi-schema-validator has added support for OAS v3. (Live) Example: runkit.com/embed/fitj6h1o17e8

Describe the problem in detail

swagger-parser does not validate OAS v3. https://github.com/APIDevTools/swagger-parser/issues/164#issuecomment-895261437 This is 😢 .

openapi-schema-validator does validate OAS v3 and has a quarter million downloads a week. Should work fine.

Plan, remove swagger-validator and use openapi-schema-validator instead.

贡献者指南