I have my project in spring boot and we are using spring doc to generate swagger documentation. We have common elements in various classes. Example phoneNo is available in both