[Feature]: Response Validation Sampling

Abierto
#1,142 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
32/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
api, testing

Línea de trabajo

The issue names no files, tests, or entry points. Start by locating the response validator and its array-handling tests, then determine how an optional sampling setting should apply to nested arrays. Done means the option limits validation to random array items while preserving existing full-validation behavior when it is not enabled.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

kind/enhancement
Suggested Behavior

An option that can be passed which has the validator just take a small sample of random items in arrays

Why is this needed?

When validating responses which contain large arrays the validation process slows by quite a bit. Anecdotally, for responses which contain a nested array which is holding ~8k objects, parsing takes approximately 11 seconds. If there was an option to randomly sample a few entries in arrays that would drastically cut down processing time while still allowing some spot checking of responses

References

No response

Would you like to implement a feature?

None

Lenguaje dominante
Python
Estrellas
368
Forks
140
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de python-openapi/openapi-core

Todos los issues de python-openapi/openapi-core

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.