AnyOf Keyword Not supported
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 22/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- openapi, python
- Ambito
- api, backend-api-design
Direzione di ricerca
Start by reproducing the behavior from the linked gist and the OpenAPI excerpt, focusing on the healthSigns anyOf and animalType oneOf schemas. Trace how these schemas are processed and compare the result with the expected final parse output. Done means both objects are represented correctly in the parse result and the behavior is covered by an appropriate test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is the 'anyOf' keyword supported? It doesn't appear to work.
See here for the full spec example.
Following is an excerpt of the relevant part. Notice that the healthSigns and animalType objects do not appear in the final parse result.
PetCreatePartTwo:
type: object
x-model: PetCreatePartTwo
properties:
position:
$ref: "#/components/schemas/Position"
healthy:
type: boolean
healthSigns:
type: array
items:
anyOf:
- $ref: '#/components/schemas/FreshBreath'
- $ref: '#/components/schemas/ShinyCoat'
- $ref: '#/components/schemas/EyesBright'
animalType:
oneOf:
- $ref: '#/components/schemas/MammalDetails'
- $ref: '#/components/schemas/AvianDetails'
- Lingua principale
- Python
- Stelle
- 368
- Fork
- 140
- 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-core
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
python-openapi/openapi-core#1188 · 2 commenti ·
-
kind/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
python-openapi/openapi-core#1225 · 2 commenti ·
-
kind/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
python-openapi/openapi-core#1212 ·
-
[Bug]: Query parameter validation fails to match empty string when listed as a valid enum value Apertakind/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
python-openapi/openapi-core#1210 ·
-
kind/bug kind/bug/confirmed
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
python-openapi/openapi-core#1180 · 3 commenti ·
Tutte le issue di python-openapi/openapi-core
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
canonical/paas-charm#368 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
addition to tracking list Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
StevenBlack/hosts#3256 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
qualcomm/qai-appbuilder#275 ·