[api] Validate a config without starting a run
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 54/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 11
- Forks
- 11
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CAVISE/OpenCDA
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
[attacks_research] Research additional service-level attacks for AttackFrameworkPosiblemente ocupada @Austin610 la tomó hace 16 días. Abiertoenhancement
CAVISE/OpenCDA#218 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de CAVISE/OpenCDA
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
-
frontend testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
vendrabuck/HERD#1588 ·
Los mantenedores suelen responder en 1 día
-
Lessons: record the second case of L14 (security updates cover only pip)Posiblemente ocupada @vishwanathj la tomó hoy. Abiertoarea/docs no-test-needed type/docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vishwanathj/ocp_lab.ai#39 · 1 comentario ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
laaielichter/Gulliver#228 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
nyjc-computing/campus#1338 ·
Los mantenedores suelen responder en 1 día