admin管理员组

文章数量:1125555

i have types like this

// swagger:type string
type NullString string

in documentation i want them also to have "x-nullable: true" property in documentation, the problem is there is lots of structs that uses this "Nullxxx" and i don't want want to populate the code with lots of

 // Extensions:
// ---
// x-nullable: true
// ---

is there any way to do this in the type definition i am also open to creating a new type just for this

本文标签: Marking type as xnullable in goswaggerStack Overflow