This is mostly out of curiosity. When reading the OpenApi/Swagger 2.0 specs, basePath is described as follows:
"The base path on which the API is served, which is relative to the host. If it is not included, the API is served directly under the host. The value MUST start with a leading slash (/). The basePath does not support path templating." (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md)
I understand why the basePath must start with a leading slash. However, I'm surprised they don't say basePath cannot end with a slash since it would mess up building a full url (i.e. {{host}}{{basePath}}{{path}}
Why is is allowed then?