Closed liverocaisson closed 7 months ago
@bodyParam col_name string name Example: null
The example above, null is ignored and not written in the specification.
It's seems that if we don't put required, the example is ignored.
How to not ignore non-required, intentional null example ?
Can you give me some guidance about the file to modify to allow this logic.
I found why intentional null example are ignored.
I have added a if condition to not ignore null example, if the example is intentionally written as the example below
@bodyParam col_name string name Example: null
Thanks!
Allow null parameter in the generation of API example specification
Example of use We want to put null value in the database. We want to pass null as ID to create a new ID. //presence of parameter required We want to pass null instead of '' string.