We have this UUID field:
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?