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

Traits fixtures use a target that is not RFC 9535 (`@.x-oai-traits`)

Abierto Apto para principiantes
#415 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
84/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
javascript, yaml
Área
testing

Línea de trabajo

Actualiza las entradas target de tests/v1.0/pass/actions-traits-example.yaml, tests/v1.1/pass/actions-traits-example.yaml y tests/v1.2-dev/pass/actions-traits-example.yaml para que coincidan con el ejemplo de traits corregido de la especificación. Empieza comparando esos fixtures con el ejemplo del issue y luego ejecuta la suite de pruebas del esquema sobre los fixtures. La tarea estará terminada cuando los tres usen el target corregido y seleccionen las operaciones esperadas.

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

Descripción

The traits fixtures in the schema test suite use a target that is not a valid RFC 9535 query:

  • tests/v1.0/pass/actions-traits-example.yaml
  • tests/v1.1/pass/actions-traits-example.yaml
  • tests/v1.2-dev/pass/actions-traits-example.yaml
- target: $.paths.*.get[[email protected]]

In RFC 9535, a member name in shorthand notation cannot contain - (section 2.5.1.1: name-char = name-first / DIGIT, and name-first excludes -), so @.x-oai-traits is a syntax error; it would have to be @['x-oai-traits']. The fixtures pass because the schema only checks pattern: ^\$ on target. But an implementation that follows the "RFC9535 Compliance" section ("MUST fully implement RFC9535") has to reject these overlays, so the "pass" fixtures cannot be used to test tools.

Even in bracket notation, the target would filter the members of each get operation, not the operations themselves, and paged is an array element, not a member. #229 fixed the same example in the specification text (now in 1.1.0 and 1.2.0) to:

- target: $.paths[?(@.get['x-oai-traits'][?(@ == 'paged')])].get

Suggestion: use that target in the three fixtures, so that they match the specification's traits example.

Found while running the fixtures against an RFC 9535 implementation that passes the JSONPath Compliance Test Suite; the corrected target parses and selects the expected operations on the specification's example description.

Lenguaje dominante
JavaScript
Estrellas
121
Forks
38
Merge medio
1 d 17 h
PR fusionados (30 d)
9

Preparar el entorno

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 OAI/Overlay-Specification

Todos los issues de OAI/Overlay-Specification

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.