Scribe version
4.19.1
Your question
First, thank you for maintaining scribe.
The generated openapi.yml is not usable in swagger or spotlight if there's a property with null value.
Those properties are reported as errors.
OpenAPI v3 allow to use null value by adding the property "nullable".
https://stackoverflow.com/questions/48111459/how-to-define-a-property-that-can-be-string-or-null-in-openapi-swagger
As suggested bellow:
type: string
nullable: true
If we use nullable property, the error is resolved.
It would be very useful if we can set properties as nullable in the specification of parameters with Scribe.
https://scribe.knuckles.wtf/laravel/documenting/query-body-parameters
Thank you.
Docs
Scribe version
4.19.1
Your question
First, thank you for maintaining scribe.
The generated openapi.yml is not usable in swagger or spotlight if there's a property with null value.
Those properties are reported as errors.
OpenAPI v3 allow to use null value by adding the property "nullable".
https://stackoverflow.com/questions/48111459/how-to-define-a-property-that-can-be-string-or-null-in-openapi-swagger
As suggested bellow:
If we use nullable property, the error is resolved.
It would be very useful if we can set properties as nullable in the specification of parameters with Scribe.
https://scribe.knuckles.wtf/laravel/documenting/query-body-parameters
Thank you.
Docs