We are currently specifying a new REST service API using OpenAPI Service Specification v3 OAS3. Because of a bunch of different reasons we need/want to make the service API versioned from the start (this is mandated by factors not within our control).
The versioning scheme we would like to use is URL path versioning - i.e. something along the lines of .../v1/ourservice
.
Does someone know how such a versioning scheme can be tracked in OAS3 specification?
So far I have only seen a global version
attribute in OAS3 - but nothing that would allow us to easily specify multiple versions in one YAML file (or is this the wrong way to go about this in the first place?).
FYI, we are planning to use a top-down approach, i.e. define our service API as OAS3 YAML and then proceed to generate server and/client side code from that using Swagger generator.