IBM Validator `examples` Keyword as Disallowed in OpenAPI Schema
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, openapi
調査の方向性
まず、issue にある OpenAPI 3.1.0 ドキュメントに対して IBM OpenAPI Validator を実行し、エラーを報告している ibm-schema-keywords ルールを調べてください。そのルールがスキーマレベルの examples キーワードをどのように扱うかを確認してください。この有効なドキュメントで、既存のキーワード検証を壊すことなく examples が許可されていないと報告されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
The IBM OpenAPI Validator reports an error for the examples keyword in the OffsetDateTime schema, stating it is a disallowed keyword. However, the examples keyword is valid in OpenAPI 3.1.0, and its usage in the provided schema appears correct.
Details
When validating the following OpenAPI 3.1.0 schema with the IBM OpenAPI Validator, an error is reported:
Validator Error:
Message: Found disallowed keyword: examples
Rule: ibm-schema-keywords
Path: components.schemas.OffsetDateTime.examples
Line: 33
Full OpenAPI Document:
openapi: 3.1.0
components:
schemas:
TestEntity:
type: object
required:
- alias
- number
properties:
createdAt:
anyOf:
- $ref: "#/components/schemas/OffsetDateTime"
- type: "null"
updatedAt:
anyOf:
- $ref: "#/components/schemas/OffsetDateTime"
- type: "null"
alias:
type: string
number:
type: string
id:
type:
- integer
- "null"
format: int64
maximum: 9223372036854775807
minimum: 1
OffsetDateTime:
type: string
format: date-time
examples:
- 2022-03-10T12:15:50-04:00
paths:
/api/v1/tax/test:
post:
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/TestEntity"
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/TestEntity"
tags:
- Test Controller
info:
title: API
version: unspecified
- 主要言語
- JavaScript
- スター
- 635
- フォーク
- 98
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IBM/openapi-validator のほかの issue
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
IBM/openapi-validator#875 · コメント 1 件 ·
-
`Provided ruleset is not an object` error after upgrading from 1.37.12 to 1.37.13再び着手できるかも @diatrcz が 123 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
IBM/openapi-validator#809 · コメント 5 件 · リアクション 2 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
IBM/openapi-validator#748 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
IBM/openapi-validator#643 · コメント 3 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
IBM/openapi-validator#545 · コメント 1 件 ·
IBM/openapi-validator の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jonathanong/no-mistakes#3332 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/gh-aw-workshop#5674 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
awesome-dsh-plugin/awesome-dsh-plugin#14970 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
swc-project/swc-ai-issues#653 ·