Failed validating 'oneOf'
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- backend-api-design
Direzione di ricerca
No files, tests, or entry points are named. Start by reproducing the supplied validation error with the OpenAPI instance, then trace validation of the callbacks property and its oneOf schemas. Done means identifying whether the reported structure is invalid or the validator is producing an incorrect diagnostic, with a focused regression test if a defect is confirmed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello,
I don't understand the following validation error:
{'{$response.header.Location}': {'get': {'requestBody': {}, 'responses': {'301': {'x-scope': ['', '#/components/callbacks/moveProgress'], '$ref': '#/components/responses/MoveProgress'}, '303': {'x-scope': ['', '#/components/callbacks/moveProgress'], '$ref': '#/components/responses/MoveSuccess'}}}}} is not valid under any of the given schemas
Failed validating 'oneOf' in schema['properties']['paths']['patternProperties']['^/']['properties']['put']['properties']['callbacks']['additionalProperties']:
{'oneOf': [{'$ref': '#/definitions/callback'},
{'$ref': '#/definitions/reference'}]}
On instance['paths']['/users/user/{dn}']['put']['callbacks']['move-progress']:
{'{$response.header.Location}': {'get': {'requestBody': {},
'responses': {'301': {'$ref': '#/components/responses/MoveProgress',
'x-scope': ['',
'#/components/callbacks/moveProgress']},
'303': {'$ref': '#/components/responses/MoveSuccess',
'x-scope': ['',
'#/components/callbacks/moveProgress']}}}}}
The x-scope was not added by myself. I don't have any oneOf defined.
Maybe someone can point me to the error?
- Lingua principale
- Python
- Stelle
- 409
- Fork
- 73
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri 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 python-openapi/openapi-spec-validator
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
python-openapi/openapi-spec-validator#400 · 1 commento ·
-
kind/bug/confirmed
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
python-openapi/openapi-spec-validator#373 · 1 commento ·
Tutte le issue di python-openapi/openapi-spec-validator
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
learningequality/ricecooker#747 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
run-llama/llama_index#23199 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
KhronosGroup/glTF-Blender-IO#2769 ·