Open
Description
Minimal repoduce:
{
"openapi": "3.1.0",
"info": {
"title": "Test",
"description": "Test",
"version": "1.0"
},
"components": {
"schemas": {
"Test": {
"type": "object",
"properties": {
"A": {
"$ref": "#/components/schemas/TestB",
"nullable": true
}
}
},
"TestB": {
"type": "object",
"properties": {
"join": {
"type": "string"
}
}
}
}
}
}
Test case
<?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
use cebe\openapi\Reader;
$openapi = Reader::readFromJsonFile(realpath('openapi.json'));
assert($openapi->components->schemas['Test']->properties['A']->nullable == true, 'Property A is not null');