I ask because this is something the UK Government is looking at - https://github.com/alphagov/tech-and-data-standards/issues/3...
One alternative I find super interesting lately is defining APIs with grpc and then exposing them with the gateway proxy: https://github.com/grpc-ecosystem/grpc-gateway
In this way, you get strongly-typed interfaces and Swagger is autogenned for you.
When designing an API the hard part is getting it right(tm) and hopefully guarantee some kind of backwards compatibility and providing a clear path for its consumers, in particular documentation. It is possible to auto-generate some parts of the documentation, but such documentation is probably as helpful as auto-generated javadoc without notes provided by humans.