| @@ 79-83 (lines=5) @@ | ||
| 76 | if ($definition->type == Schema::TYPE_OBJECT) { |
|
| 77 | $propertySchemas = (object)[]; |
|
| 78 | ||
| 79 | if (isset($definition->properties)) { |
|
| 80 | foreach ($definition->properties as $attributeName => $propertyDefinition) { |
|
| 81 | $propertySchemas->$attributeName = $this->create($propertyDefinition); |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | if (isset($definition->allOf)) { |
|
| 86 | foreach ($definition->allOf as $nested) { |
|
| @@ 90-94 (lines=5) @@ | ||
| 87 | if (isset($nested->{'x-ref-id'})) { |
|
| 88 | continue; |
|
| 89 | } |
|
| 90 | if (isset($nested->properties)) { |
|
| 91 | foreach ($nested->properties as $attributeName => $propertyDefinition) { |
|
| 92 | $propertySchemas->$attributeName = $this->create($propertyDefinition); |
|
| 93 | } |
|
| 94 | } |
|
| 95 | } |
|
| 96 | unset($definition->type); |
|
| 97 | } |
|