Fixed minor spec bug
This commit is contained in:
parent
f30ab2184c
commit
65285264c7
|
@ -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'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue