Unescaped DELETE control character U+007F fails with "unacceptable character"
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
Línea de trabajo
Start by reproducing the reported command, python -m openapi_spec_validator --schema 2.0 openapi-spec.json, with both the literal U+007F and its \u007f form. The payload names no source file or test, so trace where parsing rejects the character and whether the dependency is responsible. Done means the expected behavior is implemented and covered for both inputs, or the dependency limitation is clearly documented.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Note: I am not entirely sure if the source of this issue lies within the scope of this library of any of its dependencies.
Situation
My (openAPI specification) JSON file contains a string with an unescaped DELETE control character, U+007F.
"examples" : {
"image/png" : "" # should be U+007F (Github seems to redact this character)
},
Output of python -m openapi_spec_validator --schema 2.0 openapi-spec.json is:
unacceptable character #x007f: special characters are not allowed
in "<urllib response>", position 1082
If we replace the character by its encoded equivalent, like this:
"examples" : {
"image/png" : "\u007f"
},
the result is: OK
Expected
In my understanding, RFC 7159 (obsolete) RFC 8259 allows this specific control character to appear escaped and unescaped inside JSON strings: https://tools.ietf.org/html/rfc8259#section-7.
Therefore, I expect OK for both Inputs mentioned above.
- Lenguaje dominante
- Python
- Estrellas
- 409
- Forks
- 73
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 python-openapi/openapi-spec-validator
-
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
python-openapi/openapi-spec-validator#400 · 1 comentario ·
-
kind/bug/confirmed
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
python-openapi/openapi-spec-validator#373 · 1 comentario ·
Todos los issues de python-openapi/openapi-spec-validator
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
learningequality/ricecooker#747 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
run-llama/llama_index#23199 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
KhronosGroup/glTF-Blender-IO#2769 ·