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
dsl.Field(0, "id", dsl.String, func() {
// Serialize it with `uuid.UUID`.dsl.Meta("struct:field:type", "uuid.UUID", "github.com/google/uuid")
// Some other stuff, for tags in GO...dsl.Meta("struct:tag:yaml", "id")
})
instead of
dsl.Field(0, "id", dsl.String, func() {
// Use the string formatting checks.dsl.Format(dsl.FormatUUID)
// Some other stuff, for tags in GO...dsl.Meta("struct:tag:yaml", "id")
})
The latter however nicely puts the format: uuid on the openapi spec.
Is there a way to hack that in as well for the first use case which is much more nice to use in Go?