struct2oas is a tool to automate the creation of openapi schemas. It will parse the go sourcecode and generate a schema yaml file.