Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If a type of a defined property is nullable, nullable attribute should be added to the generated Doc #1354

Open
emulgeator opened this issue Dec 5, 2022 · 1 comment
Labels
enhancement type handling Type handling / mapping

Comments

@emulgeator
Copy link

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
}
@DerManoMann
Copy link
Collaborator

Yes, this is a good one. #1310 will cover that, although that is slow going at the moment (mostly stalled, to be honest :/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type handling Type handling / mapping
Projects
None yet
Development

No branches or pull requests

2 participants