This fixes an issue where api definitions are mapped to the
wrong schema, because the index of the api definition is used to map
it to the index of the schema.
For example when the first defined api is down, the schema for the second
service would still be mapped to the first and thus receive the wrong
basePath (and other options).
This fixes an issue where api definitions are mapped to the wrong schema, because the index of the api definition is used to map it to the index of the schema. For example when the first defined api is down, the schema for the second service would still be mapped to the first and thus receive the wrong basePath (and other options).