1
0
Fork 0
mirror of synced 2024-05-20 04:32:37 +12:00

Fixed minor spec bug

This commit is contained in:
Eldad Fux 2020-11-19 00:08:29 +02:00
parent f30ab2184c
commit 65285264c7

View file

@ -280,7 +280,7 @@ class OpenAPI3 extends Format
'x-example' => $node['x-example'] ?? null,
];
if(!\is_null($node['default'])) {
if(isset($node['default'])) {
$body['content'][$consumes[0]]['schema']['properties'][$name]['default'] = $node['default'];
}