cebe / cebe/php-openapi

allOf is not properly merged

Aperta
#31 16 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug help wanted needs investigation
Lingua principale
PHP
Stelle
500
Fork
99
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Given a schema that uses `allOf` to combine two different `object` schemas, the properties of the two schemas are not combined:

```json
{
"components": {
"schemas": {
"identifier": {
"type": "object",
"properties": {
"id": {"type": "string"}
}
},
"person": {
"allOf": [
{"$ref": "#/components/schemas/identifier"},
{
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
]
}
}
}
}
```

Not 100% sure that schema validates, but it should be a good start.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.