There are several options for that (I'm talking about the design-first approach here), like dedicated tooling (Swagger, Stoplight, whatnot) or just bare IDE / code editor experiences (just writing JSON / YAML in VS Code, for instance).
What do you prefer personally, and why?