Creating a custom example json encoding for a newtype around string

We use @newtype case class UserName(name: String) for explicitly typing simple types a lot in our application.
When creating tapir endpoints that use these types, the example json that is generated for these types is just the name followed by the wrapped type { "username": "string" }.
At the moment we are creating custom examples for some endpoints of our api using jsonBody[SomeComplexType].example(Vector(???)), but that is quite tedious since the entire example needs to be described for each endpoint.

Is it possible to create an example for all usages of this type instead, so that they apply to all endpoints where that type is used?

I’m not sure I understand the question. Would you like to auto-generate examples for the SomeComplexType type?