How to mark field as nullable?
Closed this issue · 2 comments
jrozbicki commented
I would like to mark Name
as nullable
field. How can I achieve that?
type Task struct {
ID int `json:"task_id" gorm:"index:idx_name,unique" required:"true"`
Name string `json:"task_name" required:"true"`
}
I've tried nullable: true
, x-nullable: true
without much success. Returned json doesn't return anything that would resemble nullability.
parvez3019 commented
Hey @jrozbicki Unfortunately this hasn't been implemented yet.
Ref -
go-swagger3/openApi3Schema/oas.go
Line 165 in cc38ece