cebe / cebe/php-openapi

allOf is not properly merged

Open
#31 16 comments 0 reactions 0 assignees View on GitHub
bug help wanted needs investigation
Dominant language
PHP
Stars
500
Forks
99
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.