Conversation
|
I need to think about this a bit. I see the distinction, but I'm always skeptical about adding OpenAPI-only features. I daresay, for most devs in a dynamically-typed language like PHP, a required parameter is functionally equivalent to non-null (in most cases). |
@liverocaisson added more suggestions to #739 |
|
Been busy, will take a look at these sometime this week or next. |
|
Hey, sorry I didn't get back to this! I think I'll accept it. Note that, as you've PRed, this feature only works with the attribute and the validation rule, and only affects the OpenAPI output. This means:
I think I'd like to change the second, but the first will probably stay as is for a while. In the meantime, I'll accept this, but label it "experimental". Thanks for your contribution! |
Support for nullable values for OpenApiSpecs.
If the parameter is not required, if it is specified to be nullable with the BodyParam attribute, or if there is a nullable rule in the validation, this field will be added to the OpenApiSpecs as nullable.