swagger-php
swagger-php copied to clipboard
If a type of a defined property is nullable, nullable attribute should be added to the generated Doc
Probably this is more like a feature request.
For example when the property is defined like this:
#[OA\Property(description: 'Name')]
public readonly ?int $name;
The following should be generated into the documentation:
"name": {
"description": "Name",
"type": "integer",
"nullable": true
}
Yes, this is a good one. #1310 will cover that, although that is slow going at the moment (mostly stalled, to be honest :/)