[api] Validate a config without starting a run
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by tracing POST /v1/run to find where request configs are merged with default.yaml and where world settings, agents, behavior services, and attacks are checked; review the related work in #214. Add a validation endpoint that runs checks without starting simulator components and returns 200 for valid configs or 422 with field paths for errors. Done means the endpoint accepts the same config shape as /v1/run and reports those results.
索引モデルが issue の本文から書いたものです。
説明
Problem or motivation
Config errors are reported only after POST /v1/run has started the components: with --manage-components, the SUMO and CARLA adapters are started before the scenario reads agents, behavior services and attacks. A client learns about a typo from a failed task.
Scenario Manager builds configs in its editor and needs to show these errors to the user before a run. Without an API for it, the client has to duplicate the config rules of OpenCDA and keep them in sync.
Proposed solution
- Add
POST /v1/validatethat takes the sameconfigasPOST /v1/run. - Merge it with
default.yamland run the config checks that do not need a running simulator: world settings, agents, behavior services and attacks (see #214). - Return 200 for a valid config, otherwise 422 with a list of errors, each with the field path.
Area
Scenario management
- 主要言語
- Python
- スター
- 11
- フォーク
- 11
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 12
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CAVISE/OpenCDA のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 47/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
[attacks_research] Research additional service-level attacks for AttackFramework対応中かも @Austin610 が 16 日前に担当しました。 オープンenhancement
CAVISE/OpenCDA#218 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
-
frontend testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
vendrabuck/HERD#1588 ·
メンテナーはふだん 1 日以内に返信
-
Lessons: record the second case of L14 (security updates cover only pip)対応中かも @vishwanathj が今日担当しました。 オープンarea/docs no-test-needed type/docs
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vishwanathj/ocp_lab.ai#39 · コメント 1 件 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
laaielichter/Gulliver#228 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
nyjc-computing/campus#1338 ·
メンテナーはふだん 1 日以内に返信