Spring petclinic (rest version) has an openapi.yml file defined: https://github.com/spring-petclinic/spring-petclinic-rest/blob/master/src/main/resources/openapi.yml
Uptil now I've just been using swagger's annotations and making the DTOs myself, but using openapi.yml seems to be a better way.
Is using openapi.yml considered best practice? And are there tools that make generating them easier? (an alternative to typing out all of this myself)