rstudio/plumber

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

オープン

#817 opened on 2021/08/09

 (0 件のコメント) (1 件のリアクション) (0 人の担当者)R (257 件のフォーク)batch import
difficulty: intermediateeffort: lowhelp wantedpriority: mediumtheme: OpenAPI

Repository metrics

Stars
 (1,437 個のスター)
PR merge metrics
 (30d に merged 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.

コントリビューターガイド