You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea behind this issue is to have some open api tags that we can put on fields on structs to tell to openapi-parser that the field is nullable. The field will be set as nullable only if this tag is present and the field is a pointer to something.
Example:
// Pet struct// @openapi:schematypePetstruct {
ID bson.ObjectIdPointerOfString*string`openapi:"nullable"`PointerOfStruct*Foo
}
In this example, only PointerOfString field should be nullable in the generated openapi file.
The text was updated successfully, but these errors were encountered:
The idea behind this issue is to have some open api tags that we can put on fields on structs to tell to openapi-parser that the field is nullable. The field will be set as nullable only if this tag is present and the field is a pointer to something.
Example:
In this example, only
PointerOfString
field should benullable
in the generated openapi file.The text was updated successfully, but these errors were encountered: