Traits fixtures use a target that is not RFC 9535 (`@.x-oai-traits`)
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.yamltests/v1.1/pass/actions-traits-example.yamltests/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
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 OAI/Overlay-Specification
-
ci: update the agenda template to lead us down the path of checking the spec repoPosiblemente ocupada @baywet la tomó hace 8 días. Abierto
OAI/Overlay-Specification#411 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
ci: add automation to sync from main -> dev -> vX.Y-dev branchesPosiblemente ocupada @baywet la tomó hace 8 días. Abierto
OAI/Overlay-Specification#410 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Revisit: should Overlays declare their target document format? (follow-up to #268)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OAI/Overlay-Specification#367 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OAI/Overlay-Specification#358 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
OAI/Overlay-Specification#299 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de OAI/Overlay-Specification
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
t0ggles
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nolimits4web/swiper#8240 · 1 comentario ·
-
netbox status: backlog topic: testing type: housekeeping
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
netbox-community/netbox#23395 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
[scanner] check:spelling skips blog/ — posts and author metadata are never spell-checkedPosiblemente ocupada @hivecommons-hive la tomó hoy. Abiertoagent/scanner bug hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
cncf/endusers#1452 · 1 comentario ·
Los mantenedores suelen responder en 1 día