The `submit_permission` dependency causes duplicate validation errors
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
Línea de trabajo
The duplicate errors come from the submit_permission dependency deserialising the request body separately from the main /api/v1/tasks endpoint. Start by finding that dependency and where it reads TaskRequest, then compare it with a test endpoint that has no dependency, which returns one error. Done means one validation error for an invalid TaskRequest on the tasks endpoint, with the existing tests still passing.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found while looking into #1802, if an invalid TaskRequest is passed to the /api/v1/tasks endpoint, two validation errors are returned instead of the expected one.
$ curl -H "Authorization: Bearer ${TOKEN}" http://localhost:8000/api/v1/demo --json '{"name": "count", "params": [], "instrument_session": "cm12345-1"}' | jq
{
"detail": [
{
"type": "dict_type",
"loc": [
"body",
"params"
],
"msg": "Input should be a valid dictionary",
"input": []
},
{
"type": "dict_type",
"loc": [
"body",
"params"
],
"msg": "Input should be a valid dictionary",
"input": []
}
]
}
This seems to be from deserialising the task for the main endpoint, as well as for the submit_permission. Passing the same JSON to a test endpoint without the dependency returns a single error.
- Lenguaje dominante
- Python
- Estrellas
- 14
- Forks
- 15
- Merge medio
- 3 d 2 h
- PR fusionados (30 d)
- 35
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 DiamondLightSource/blueapi
-
bug support: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
DiamondLightSource/blueapi#1802 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
support: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DiamondLightSource/blueapi#1772 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
deployment dev-environment
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DiamondLightSource/blueapi#1623 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
-
Cannot Install SoftiocAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DiamondLightSource/blueapi#1605 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
DiamondLightSource/blueapi#1494 ·
Los mantenedores suelen responder en 2 días
Todos los issues de DiamondLightSource/blueapi
Issues similares
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount duePosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 79/100
developmentseed/titiler-covjson#164 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
awslabs/visual-asset-management-system#2164 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
MakazhanAlpamys/Soup#3589 ·
Los mantenedores suelen responder en 1 día
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día