While we recommend the schema-first approach to OpenAPI in our Let there be docs! A documentation-first approach to Rails API development guide in our blog, the opposite approach has its place in the wild too.
Let’s see how it can be achieved with sometimes unintended usage of various tools (including martian ones!).