Traits fixtures use a target that is not RFC 9535 (`@.x-oai-traits`)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 84/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, yaml
- Ambito
- testing
Direzione di ricerca
Aggiorna le voci target in tests/v1.0/pass/actions-traits-example.yaml, tests/v1.1/pass/actions-traits-example.yaml e tests/v1.2-dev/pass/actions-traits-example.yaml in modo che corrispondano all’esempio corretto dei traits nella specifica. Inizia confrontando questi fixture con l’esempio nell’issue, poi esegui la suite di test dello schema sui fixture. Il lavoro è completato quando tutti e tre usano il target corretto e selezionano le operazioni previste.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 122
- Fork
- 38
- Merge medio
- 1g 17h
- PR unite (30g)
- 9
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OAI/Overlay-Specification
-
ci: update the agenda template to lead us down the path of checking the spec repoForse già presa @baywet l’ha presa 10 giorni fa. Aperta
OAI/Overlay-Specification#411 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
ci: add automation to sync from main -> dev -> vX.Y-dev branchesForse già presa @baywet l’ha presa 10 giorni fa. Aperta
OAI/Overlay-Specification#410 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Revisit: should Overlays declare their target document format? (follow-up to #268)Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OAI/Overlay-Specification#367 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OAI/Overlay-Specification#358 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
OAI/Overlay-Specification#299 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OAI/Overlay-Specification
Issue simili
-
change request evaluating
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
sindresorhus/eslint-plugin-unicorn#3907 ·
I maintainer di solito rispondono entro 1 giorno
-
Android bug feature/error-tracking react-native team/error-tracking
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
PostHog/posthog-js#5310 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add Prettier and a format-check CI jobForse già presa @ezekielnathaniel070-ai l’ha presa oggi. Apertabackend frontend good first issue Stellar Wave
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OlaGreat/starbound-realms#98 · 1 commento ·
-
Add AudiobookshelfApertaapp request good first issue help wanted self-hosted app
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Secra-Solutions/Conector#15 ·
-
Complexity: See issue making label epic good first issue Issue Making: Level 1 P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt time sensitive
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno