Hi Carlo,
Thanks very much for your response. I'm afraid that I have caused some confusion here by not being very clear on what I'm after. I apologize.
When I say "spec" I am referring to the Swagger specification file that defines the API, and is subsequently used as to generate the documentation, the server stubs, and client bindings. This is a YAML file or can also be interchanged as JSON. It is this file, literally the specification of the API, in which I'm interested. It was formerly called the Swagger Specification but is now called the OpenAPI Specification.