Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Unescaped DELETE control character U+007F fails with "unacceptable character"

Abierto
#88 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
api

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

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-spec-validator

Todos los issues de python-openapi/openapi-spec-validator

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.